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

Home » Public Forums » archive » Re: latitude, longitude and a data point
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: latitude, longitude and a data point [message #63421] Tue, 11 November 2008 06:22
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
kramerpeterk@gmail.com writes:

> I have 3 one dimension arrays,
>
> LATITUDE FLOAT = Array[15979]
> LONGITUDE FLOAT = Array[15979]
> VALUES LONG = Array[15979]
>
> and I want to be able to create a 2D array where each X,Y pair is the
> value at a particular latitude and longitude. To do this i've tried
> using David Fanning's scatter3d_on_map which I think plotted it
> correctly (hard for me to tell in direct graphics), but I am still
> not sure how to retrieve my 2D array with the floating values I
> want.
>
> I'm sure someone will give me an exceedingly simple 1 line solution
> but any help would be appreciated =)

If you just want a 2D array, and you know the dimensions
of the rectangle (I would guess 177 by 90), then you can
just reform your array:

values = Reform(values, 177, 90)

If you want a *projected* 2D array, then I would use
MAP_PATCH to create one. You will have to set up the
correct map projection first.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: workbench print variable problem
Next Topic: Re: usersym keywords -- why?

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

Current Time: Fri Oct 10 01:00:48 PDT 2025

Total time taken to generate the page: 1.04348 seconds