Re: Trouble with plotting ASCII grid. [message #64483] |
Sat, 03 January 2009 19:15 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
mbweller@gmail.com writes:
> How do you plot a simple ascii grid of values spatially? I have a .dat
> file that contains 180 rows and 360 columns corresponding to a range
> of 90 to -90 (180:rows:latitude) and 0 to 360
> (360:columns:longitude). I believe that the position of the cell at
> Column 1, Row 1 corresponds to a cell of position 90n, 89n, 180w, 179w
> but
> cannot be sure until it is mapped. So, I need each cell value to
> correspond to a 1x1 deg lat/lon cell size when plotting. Is there a
> way to do this easily?
I don't know. I've seen this request twice, and it still looks like
an image to me, but what do I know. :-(
I'd display it like this:
IDL> ImgWin, asciiData, XRange=[0,360], YRange=[-90,90]
Then, you can interactively play around with the data
and learn its value at a particular latitude and longitude.
http://www.dfanning.com/catalyst/imgwin.html
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.")
|
|
|