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

Home » Public Forums » archive » Formatting strings to coordinates
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Formatting strings to coordinates [message #20144] Fri, 19 May 2000 00:00 Go to previous message
Simon de Vet is currently offline  Simon de Vet
Messages: 36
Registered: May 2000
Member
The data analysis adventure continues... I have read in the data, and am
now working on the various plots.

I have a string array, taken from the text file, of coordinates.
However, they are in the form "43.92�S" ,and "176.50�W".

I would like to be able to take this array of strings and convert it to
a numerical array or real latitudes and longitudes, from -90 to 90 and 0
to 360 so that they can eventually be plotted onto a globe.

I've figured out how to use strings to generate numerical values (ie:
'Jan' -> 1, 'Feb' -> 2, etc..), but not how to handle parts of strings
to modify the other parts.

Any suggestions? This group has been a major help so far!

Thanks,

Simon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI and the IDL Virtual Machine
Next Topic: Re: XVOLUME in batch?

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

Current Time: Sat Oct 11 12:25:36 PDT 2025

Total time taken to generate the page: 1.12056 seconds