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

Home » Public Forums » archive » Re: Trouble with plotting ASCII grid.
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: Trouble with plotting ASCII grid. [message #64483] Sat, 03 January 2009 19:15
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Trouble with plotting ASCII grid.
Next Topic: Re: Help converting different data sets into one data set and correcting for mismatch

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

Current Time: Wed Oct 08 19:55:13 PDT 2025

Total time taken to generate the page: 0.00499 seconds