Variable define and/or aave oddity

Jennifer Adams jma at COLA.IGES.ORG
Tue Sep 22 11:07:34 EDT 2009


Hi, Colleen --
I am unable to reproduce this problem. The result of a global aave()
on a data variable and a defined variable are the same no matter what
I try. One thing you didn't show was the output from 'q dims' -- I
wonder if you had a funky dimension environment set. In any event, if
this problem can be reliably reproduced with your file
sfcdn_new.binary, please send it to me (not to gradsusr).
--Jennifer


On Sep 14, 2009, at 10:57 AM, Colleen Mikovitz wrote:

> I am working though a script to do simple global maps of variables
> with annotations of the global average.  But I noticed that when I use
> the define command,  aave returns a different value on that newly
> defined variable than on the original variable.  I just installed the
> newest release to see if that would correct it, but I get the same
> thing.
>
> Could someone look at the following to see if I am doing anything odd
> or if this is a known/unknown problem?
>
> Thanks,
> Colleen
>
> *********************
> ga-> q config
> Config: v2.0.a7.1 little-endian readline printim grib2 netcdf hdf4-sds
> hdf5 geotiff
> Grid Analysis and Display System (GrADS) Version 2.0.a7.1
> Copyright (c) 1988-2009 by Brian Doty and the
> Institute for Global Environment and Society (IGES)
> This program is distributed WITHOUT ANY WARRANTY
> See file COPYRIGHT for more information.
>
> Built Fri Aug  7 18:15:20 EDT 2009 for i386-apple-darwin9.7.0
>
> ga-> q ctlinfo
> dset /Users/colleen/lib/sfcdn_new.binary
> title GLW
> undef -999
> xdef 360 linear 0.5 1
> ydef 180 linear -89.5 1
> zdef 1 linear 1000 1
> tdef 1 linear 00Z01JAN2002 180mn
> vars 1
> prop  1  0  check var
> endvars
>
>
> ga-> d prop
> Contouring: 100 to 450 interval 50
> ga-> define newvar=prop
> Define memory allocation size = 527072 bytes
> ga-> d aave(prop,g)
> Result value = 335.076
> ga-> d aave(newvar,g)
> Result value = 324.465
> ga-> d prop-newvar
> Constant field.  Value = 0

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/3d35b3c4/attachment.html 


More information about the gradsusr mailing list