Re: latitude, longitude and a data point [message #63421] |
Tue, 11 November 2008 06:22 |
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.")
|
|
|