<html>
<body>
<font size=3><br>
Hi GRADSUSR,<br>
I'm using the tcorr
(<a href="http://grads.iges.org/grads/gadoc/gradfunctcorr.html" eudora="autourl">
http://grads.iges.org/grads/gadoc/gradfunctcorr.html</a>) function in
order to correlate monthly geopotential heigth at 500 mb pressure level
at month -1 (hgt500_month-1) with monthly surface precipitation at
month-0; here follows an example of one of my scripts:<br><br>
<dl>
<dd>'sdfopen gpcp.03.8204.mean.mon.nc'
<dd>'set lon -180 180'
<dd>'set lat -90 90'
<dd>'set t 1 23'
<dd>'define tseries = ave(ave(psg,lon=6,lon=20),lat=37,lat=47)'
<dd>'close 1'
<dd>***************************
<dd>'sdfopen hgt500.02.8204.mean.mon.nc'
<dd>'set lon -180 180'
<dd>'set lat -90 90'
<dd>'d tcorr(tseries,hgt,t=1,t=23)'
<dd>'close 1'
</dl>but it produces the following error:
<dl>
<dd>TCORR: dim = 3, start = 1, end = 23
<dd>Data Request Error: Invalid grid coordinates
<dd> World coordinates convert to non-integer grid coordinates
<dd> Variable = tseries Dimension = 3
<dd>Error from TCORR: Error getting grids
<dd>Operation Error: Error from tcorr function
<dd> Error ocurred at column 1
<dd>DISPLAY error: Invalid expression
<dd> Expression = tcorr(tseries,hgt,t=1,t=23)
</dl>perhaps the time origin of the two files are different (march 1982
for precitpitation, february 1982 for hgt)<br>
Does someone have any suggestions to avoid this problem?<br>
thanks, valerio<br><br>
PS: I include also the ncdump -h out of the two files...<br><br>
</font><font size=3 color="#FF0000">!ncdump -h
gpcp.03.8204.mean.mon.nc</font>
<dl>
<dd><font size=3>netcdf gpcp.03.8204.mean.mon {
<dd>dimensions:
<dd> lat = 72 ;
<dd> lon = 144 ;
<dd> time = 23 ;
<dd>variables:
<dd> float lat(lat) ;
<dd>
lat:title = "LATITUDE" ;
<dd>
lat:units = "degrees_north" ;
<dd> float lon(lon) ;
<dd>
lon:title = "LONGITUDE" ;
<dd>
lon:units = "degrees_east" ;
<dd> float psg(time, lat, lon)
;
<dd>
psg:title = "Precipitation Rate" ;
<dd>
psg:units = "mm/day" ;
<dd>
psg:missing_value = -99999.f ;
<dd> int time(time) ;
<dd>
time:title = "TIME" ;
<dd>
time:units = "days since 1979-01-01" ;</font>
</dl><font size=3 color="#FF0000">!ncdump -h
hgt500.02.8204.mean.mon.nc</font>
<dl>
<dd><font size=3>netcdf hgt500.02.8204.mean.mon {
<dd>dimensions:
<dd> time = UNLIMITED ; // (23
currently)
<dd> lat = 73 ;
<dd> lon = 144 ;
<dd> nbnds = 2 ;
<dd>variables:
<dd> float hgt(time, lat, lon)
;
<dd>
hgt:long_name = "Monthly Geopotential Heights on Pressure
Levels" ;
<dd>
hgt:valid_range = -32765s, 4534s ;
<dd>
hgt:unpacked_valid_range = -1500.f, 35800.f ;
<dd>
hgt:actual_range = -294.4667f, 32301.9f ;
<dd>
hgt:units = "m" ;
<dd>
hgt:missing_value = 32766.f ;
<dd>
hgt:_FillValue = -32767s ;
<dd>
hgt:precision = 0s ;
<dd>
hgt:least_significant_digit = 0s ;
<dd>
hgt:GRIB_id = 7s ;
<dd>
hgt:GRIB_name = "HGT" ;
<dd>
hgt:var_desc = "Geopotential height" ;
<dd>
hgt:dataset = "NCEP/DOE AMIP-II Reanalysis (Reanalysis-2) Monthly
Averages" ;
<dd>
hgt:level_desc = "Pressure Levels" ;
<dd>
hgt:statistic = "Individual Obs" ;
<dd>
hgt:parent_stat = "Other" ;
<dd>
hgt:standard_name = "geopotential_height" ;
<dd>
hgt:cell_methods = "time: mean (montly from 6-hourly values)"
;
<dd> float lat(lat) ;
<dd>
lat:units = "degrees_north" ;
<dd>
lat:actual_range = 90.f, -90.f ;
<dd>
lat:long_name = "Latitude" ;
<dd>
lat:standard_name = "latitude_north" ;
<dd>
lat:axis = "y" ;
<dd>
lat:coordinate_defines = "point" ;
<dd> float level ;
<dd>
level:units = "millibar" ;
<dd>
level:actual_range = 1000.f, 10.f ;
<dd>
level:long_name = "Level" ;
<dd>
level:positive = "down" ;
<dd>
level:GRIB_id = 100s ;
<dd>
level:GRIB_name = "hPa" ;
<dd>
level:axis = "z" ;
<dd>
level:coordinate_defines = "point" ;
<dd> float lon(lon) ;
<dd>
lon:units = "degrees_east" ;
<dd>
lon:long_name = "Longitude" ;
<dd>
lon:actual_range = 0.f, 357.5f ;
<dd>
lon:standard_name = "longitude_east" ;
<dd>
lon:axis = "x" ;
<dd>
lon:coordinate_defines = "point" ;
<dd> double time(time) ;
<dd>
time:units = "hours since 1800-1-1 00:00:00" ;
<dd>
time:long_name = "Time" ;
<dd>
time:actual_range = 1569072., 1796256. ;
<dd>
time:delta_t = "0000-01-00 00:00:00" ;
<dd>
time:avg_period = "0000-01-00 00:00:00" ;
<dd>
time:prev_avg_period = "0000-00-01 00:00:00" ;
<dd>
time:standard_name = "time" ;
<dd>
time:axis = "t" ;
<dd>
time:coordinate_defines = "start" ;
<dd> double time_bnds(time,
nbnds) ;
<dd>
time_bnds:long_name = "Time Boundaries" ;<br>
<br><br></font>
</dl></body>
</html>