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

Home » Public Forums » archive » Re: Digital Chart of World (WorldMap)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Digital Chart of World (WorldMap) [message #13692] Mon, 07 December 1998 00:00 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Nando Iavarone wrote in message <36672204.665D0EDC@acsys.it>...
> Hi all,
> I need to access to the IDL database of DCW.
>
> Particularly I need a function returning a vector
> of lat/lon coordinates of a feature (e.g. rivers or coasts)
> in a region of interest,

In map_continents.pro, there is a function called MAP_GETINDEX which reads
the index data (position in file, number of points, lon/lat range for each
segment) in a map index file. The index files have names like

.../IDL52/resource/maps/high/*.ndx
.../IDL52/resource/maps/low/*.ndx

Attached is code for a function, MAP_GETDATA, which reads the lon/lat data
for a specified segment. The data files have names like

.../IDL52/resource/maps/high/*.dat
.../IDL52/resource/maps/low/*.dat

MAP_GETDATA calls FDECOMP from the IDL Astronomy Users Library
(http://idlastro.gsfc.nasa.gov/homepage.html)

To find all the segments for a specified ROI, you need to read in the index
data then search for lon/lat ranges that match the ROI. Unfortunately,
segments don't correspond very well to "features", ie a coastline or river
may be split into several segments.

--
Mark Hadfield, m.hadfield@niwa.cri.nz http://www.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
[Message index]
 
Read Message
Read Message
Previous Topic: Chuckle - idl map files
Next Topic: outputting formated text version of code

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

Current Time: Sat Oct 11 09:48:52 PDT 2025

Total time taken to generate the page: 1.35610 seconds