[gradsusr] defined variables
Semyon Grodsky
senya at atmos.umd.edu
Thu Jul 29 12:46:33 EDT 2010
Jennifer,
I just open file (Reynolds and Smithh OI v2 SST),then define TEMP for the
entire spatial field at t=1 (see below).
Thanks,
--Senya
-------------------------------------
/data/arctic1/senya/SODA224> gradsnc
Grid Analysis and Display System (GrADS) Version 1.9b4
Copyright (c) 1988-2005 by Brian Doty and IGES
Center for Ocean-Land-Atmosphere Studies (COLA)
Institute for Global Environment and Society (IGES)
GrADS comes with ABSOLUTELY NO WARRANTY
See file COPYRIGHT for more information
Config: v1.9b4 32-bit little-endian readline sdf/xdf netcdf lats printim
Issue 'q config' command for more information.
Landscape mode? (no for portrait):
GX Package Initialization: Size = 11 8.5
ga-> open sst_month.ctl
Scanning description file: /mnt/data/senya/pacific/sst/sst_month
Data file /mnt/data/senya/pacific/sst/sst_month_v2_%y4.dat is open as file
1
LON set to 0 360
LAT set to -89.5 89.5
LEV set to 0 0
Time values set: 1981:11:1:0 1981:11:1:0
*sst is original variable from VARS in sst_month.ctl
*temp is defined variable
ga-> temp=sst
Define memory allocation size = 260640 bytes
ga-> set lat 0
LAT set to 0.5 0.5
ga-> set lon 0
LON set to 0.5 0.5
ga-> d sst(y+0)
Result value = 26.837
ga-> d temp(y+0)
Data Request Error: Invalid grid coordinates
World coordinates convert to non-integer grid coordinates
Variable = temp Dimension = 1
Error ocurred at column 1
DISPLAY error: Invalid expression
Expression = temp(y+0)
ga->
On Thu, 29 Jul 2010, Jennifer Adams wrote:
> Senya --
> I cannot reproduce this error with version 1.9 or 2.0. Did you change the
> default file or the X dimension environment between issuing your define
> command to establish tempnew and your display request. What exactly are you
> trying to accomplish with the expression temp(y+0) ?
> --Jennifer
>
>
> On Jul 28, 2010, at 11:43 AM, Semyon Grodsky wrote:
>
>> Dear experts,
>> suppose TEMP is a variable of an open file.
>> I define new variable
>>
>> TEMPNEW=TEMP
>>
>> set x 1
>> set y 1
>> set z 1
>> set t 1 last
>>
>> the following command works OK
>> d temp(y+0)
>>
>> but
>>
>> d tempnew(y+0)
>>
>> returns error
>> World coordinates convert to non-integer grid coordinates
>> Variable = tempnew Dimension = 0
>>
>> What is wrong?
>> GRADS 1.94 on LINUX machine
>>
>> Thanks
>> --Senya
>>
>> -----------------------------------------------------------
>> Semyon Grodsky
>> Computer and Space Science Building (Bldg. #224), Room 2409
>> Department of Atmospheric and Oceanic Science
>> University of Maryland
>> College Park, MD 20742
>>
>> Phone: 301-405-5330
>> Fax: 301-314-9482
>> E-mail: senya at atmos.umd.edu
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>
> --
> Jennifer M. Adams
> IGES/COLA
> 4041 Powder Mill Road, Suite 302
> Calverton, MD 20705
> jma at cola.iges.org
>
>
>
-----------------------------------------------------------
Semyon Grodsky
Computer and Space Science Building (Bldg. #224), Room 2409
Department of Atmospheric and Oceanic Science
University of Maryland
College Park, MD 20742
Phone: 301-405-5330
Fax: 301-314-9482
E-mail: senya at atmos.umd.edu
More information about the gradsusr
mailing list