Lilliputian numbers

bhatt vihang vihang_75 at YAHOO.COM
Fri Feb 10 04:04:00 EST 2006


--- dear Ben Burford <benb at RESTEC.OR.JP> wrote:

> Hello All,
>
> I want to see individual data values in gridded data
> sets.  I used the
> function:
> set gxout grid
> d data
>
> On the display screen I get grid boxes with tiny
> little (Lilliputian size)
> numbers in them that are too small to read.  If I
> narrow the lat/lon so
> that the grid boxes appear large on the screen, the
> numbers are still tiny
> and too small to read, or, in some cases I don’t see
> numbers at all.  Can
> someone tell me how to force the numbers to a larger
> (readable) size?
yes you can.
have you tried "set digsiz " command? please see grads
reference card (3 pages only)available on net for the
syntex. this reference card is very simple summery of
all grads commands.

>
> Also, is there a way I can list values in the
> command line window?  If I
> narrow to a single grid box, at a single time, then
> d will give me that
> one value.  Is there a way to get a listing of rows
> and columns of numbers
> in the command line window?  As a last resort, is
> there a way to import
> the grid of values as ascii (rows and columns) into
> an editor (Msword?) or
> a spreadsheet (Excel) to look at them (I'm using
> Grads in Windows)?
>
for converting ascii you need to write a small
fortran/c program. i will give you little idea in
fortran.

open(1,file=xxx,access='direct',recl=im*jm) for
windows
open(1,file=xxx,access='direct',recl=im*jm*4) for unix

irec=1
read(1,rec=irec)((arr(i,j),i=1,im),j=1,jm)
irec=irec+1
write(*,*)((arr(i,j),i=1,im),j=1,jm)

this is general idea. you can write in any desired
format. one more thing is that if you are converting
unix (windows) binnaries from windows (unix), you need
to swap the bytes.

>
> Also, one other very basic question.  I have a
> global dataset that I can
> view successfully:
> set gxout contour (or grfill, or shaded)
> d data
>
> But if I subset the data, e.g.:
> set lat 9 11
> set lon -69 -66
> d data
> I get a message “Cannot contour grid – all undefined
> values”
> Can you tell me what I’m doing wrong?
>
nothing. it simply means that data for that region is
matching with number used to avoid plotting. if you
are sure that the data is to be plotted, change the
value of undef in your ctl file.
>
> And finally, the comment for lats4d.gs in the grads
> script library says:
> Writes NetCDF, HDF-SDS or GRIB files from GrADS. See
> additional
> documentation.
> But if I click on the word "documentation" I get a
> “web address no longer
> correct” error.  Can you tell me where to find/see
> the lat4d.gs
> documentation?
>
are you searching for this?
http://web.lasg.ac.cn/grads/gadoc/scripts/lats4d.gs

i am not sure please check.


> As always, thanks very much for your help,
>
 Ben
>
good luck.

vihang bhatt

Vihang Bhatt
Project Scientist
Indian Institute of Technology-Delhi
Hauz Khas
New Delhi
web: http://www.geocities.com/vihang_75/index.html

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



More information about the gradsusr mailing list