Project

General

Profile

Viewing Climate Indices Output

Added by Sarah O'Keefe almost 13 years ago

Hi, I am a beginning user and would really appreciate some help. I posted to this forum a while ago and your response (UWE) was GREAT. Totally helped. Here is my new issue. Any help would be appreciated.

I took a daily model run and performed an operation using CDO that gave me the number of consecutive dry days for each grid box for the time period selected. I then open this in GRADS. When I try to view the results on a map GRADS keeps giving me an error that indicates index is not a variable name. I tried to open the file in XCONV to modify the variable name - but XCONV won't open the file. Both programs just DON'T LIKE the float variable given by CDO. As a beginning user my skill set to solve these problems is quite limited. Does anyone know what I should do? All I want to do is be able to put this on a world map in GRADs.

CDO PERFORMED: cdo eca_cdd echam5.daily.pr_2081-2100.nc echam5.dryindex.2081-2100.nc
cdo eca_cdd: Processed 134627328 values from 1 variable over 7304 timesteps. ( 9.05s )

FILE INFO
ncdump echam5.dryindex.2081-2100.nc | more
netcdf echam5.dryindex.2081-2100 {
dimensions:
lon = 192 ;
nv = 2 ;
lat = 96 ;
time = UNLIMITED ; // (1 currently)
variables:
double lon(lon) ;
lon:long_name = "longitude" ;
lon:units = "degrees_east" ;
lon:standard_name = "longitude" ;
lon:axis = "X" ;
lon:bounds = "lon_bounds" ;
double lon_bounds(lon, nv) ;
double lat(lat) ;
lat:long_name = "latitude" ;
lat:units = "degrees_north" ;
lat:standard_name = "latitude" ;
lat:axis = "Y" ;
lat:bounds = "lat_bounds" ;
double lat_bounds(lat, nv) ;
double time(time) ;
time:units = "minutes since 1955-01-01 00:00:00" ;
time:calendar = "proleptic_gregorian" ;
float consecutive_dry_days_index_per_time_period(time, lat, lon) ;

GRADS COMMAND: d consecutive_dry_days_index_per_time_period
GRADS RESPONSE
Syntax Error: Invalid Operand
'consecutive_dry_d' not a variable or function name
Error ocurred at column 1
DISPLAY error: Invalid expression
Expression = consecutive_dry_days_index_per_time_period


Replies (1)

RE: Viewing Climate Indices Output - Added by Ralf Mueller almost 13 years ago

Hi Sarah!

I'm not a GRADS expert, but its error message indecates, that the variable name is to long for GRADS:

Syntax Error: Invalid Operand
'consecutive_dry_d' not a variable or function name
Error ocurred at column 1

You might set the name of the first variable with setname and recheck the output with GRADS.

    (1-1/1)