[gradsusr] netcdf group variable

M.Mahakur mmahakur at tropmet.res.in
Mon Nov 20 13:55:01 EST 2023


Dear All, 

I like to display the variable "value" from the attached small netcdf file. I feel the pressure level variable is in the group 'IWC/PressureGrid'. For this I created the ctl : 

dset MLS-Aura_L3DB-IWC_v04-24-c01_2022d365.nc 
title MLS IWC 
dtype netcdf 
undef -999.99 
xdef 72 linear -177.5 5.0 
ydef 45 linear -88.0 4.0 
zdef 29 levels 1000, 825.4042, 681.2921, 562.3413, 464.1589, 383.1187, 316.2278, 261.0157, 215.4435, 177.8279, 146.7799, 121.1528, 100, 82.54042, 68.1292, 56.23413, 46.41589, 38.31187, 31.62278, 26.10157, 21.54435, 17.78279, 14.67799, 12.11528, 10, 1, 0.1, 0.01, 0.001 
tdef 1 linear 1DEC2022 1dy 
vars 1 
/IWC/PressureGrid/value=>val 29 t,z,x,y IWC (mg/m3) 
endvars 

But, it does not works. It seems it does not matches with the variable! 

ga-> d val 
Error: Variable /IWC/PressureGrid/value not in netcdf file 
Data Request Error: Error for variable 'val' 
Error ocurred at column 1 
DISPLAY error: Invalid expression 
Expression = val 

i am using Grads 2.0.a9. A portion from the ncdump is: 

========================= 

group: IWC\ PressureGrid { 
dimensions: 
lat = 45 ; 
lon = 72 ; 
lev = 29 ; 
time = 1 ; 
nv = 2 ; 
variables: 

.... 
... 

float value(time, lev, lon, lat) ; 
string value:long_name = "Average Value of Cloud Ice" ; 
string value:units = "mg/m!U3!N" ; 
value:_FillValue = -999.99f ; 
string value:comments = "The average value in a bin" ; 
============================ 

Please suggest, where to modify in the ctl. 

Thanks and Regards, 

Mahakur 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20231121/4f6f8f08/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MLS-Aura_L3DB-IWC_v04-24-c01_2022d365.nc
Type: application/x-netcdf
Size: 424232 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20231121/4f6f8f08/attachment-0001.nc>


More information about the gradsusr mailing list