comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL Procedure to read/write USGS DEMs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL Procedure to read/write USGS DEMs [message #17295] Wed, 29 September 1999 00:00
Kelly Dean is currently offline  Kelly Dean
Messages: 92
Registered: March 1997
Member
Reading DEMs are pretty simple. Below is an sample of a routine I used to
read the GTOPO30 Elevation data from the CD. Swapping is required if you
are on a PC.

Kelly Dean
CSU/CIRA

========================Colsm.pro=========================

PRO COLsm
;
; Retrieve an area around Colorado
;
topo = INTarr(4800,6000)

OpenR, 1, 'e:\w140n90\w140n90.dem', /swap_endian ; Swapping required on PCs

ReadU, 1, topo
Close, 1

; Rotating not really required, IDL displays from bottom to top. Just my
preferred method.
topo = ROTATE(TEMPORARY(topo),7)

toposmall = topo(4150:4249, 0:99) ; Retrieve Colorado

SHADE_Surf, toposmall, shades = BYTscl(toposmall), ax=83, az=0
LoadCT, 11

END
=========================================================
John Brock wrote:

> I am working on integrating topographic data at various spatial
> resolutions within a single
> USGS 7.5 minute DEM. This requires changing the data structure for a
> DEM to
> handle sections of variable resolution.
>
> Does anyone know of an existing IDL procedure that reads or writes USGS
> DEMs?
> (DEM = digital elevation model). If so, I would like to use it as a
> starting point.
>
> Thanks,
>
> John Brock
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: VIP 1.0 Now Available for Download
Next Topic: exporting IDL data to matlab

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 06:55:44 PDT 2025

Total time taken to generate the page: 7.52131 seconds