<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
I'm trying to use the template option to generate a timeseries and am
getting I/O errors. Please refer to the CTL file and GrADS session
below.<br>
<br>
I could not locate anything in the Users List.<br>
<br>
Just FYI .... I can use the same CTL file below and display the MEAN of
a parameter using:<br>
<br>
set lat 20 80<br>
set lon -120 0<br>
set lev 1000<br>
define tempc=(TMPprs-273.16)<br>
d mean(tempc, t=1, t=30)<br>
<br>
I MUST define the tempc variable however or I get the similar I/O
errors.<br>
<br>
<br>
<b>Below is the CTL file </b>(20080512Z.ctl) <b>using the Template
Option:</b><br>
<br>
<pre wrap="">dset /raid/data/fnmoc_models/fnmoc_model_058058240/g2008/g200805<b>%d2</b>12_058058240.000
index /raid/data/fnmoc_models/fnmoc_model_058058240/g2008/g2008050112_058058240.000.idx
title g2008050112_058058240.000
<b>options template</b>
undef 9.999E+20
* produced by grib2ctl v0.9.12.5p13
dtype grib 240
xdef 360 linear 0 1
ydef 181 linear -90 1
tdef 30 linear 12Z01may2008 24hr
zdef 18 levels
1000 975 950 925 850 700 500 400 300 250 200 150 100 70 50 30 20 10
vars 33
ABSDprs 4 42,100,0 ** Absolute divergence [/s]
ABSVprs 10 41,100,0 ** Absolute vorticity [/s]
DEPRprs 16 18,100,0 ** Dew point depression [K]
DISTsfc 0 8,1,0 ** Geometric height [m]
HCDCsfc 0 75,1,0 ** High level cloud cover [%]
HGTprs 17 7,100,0 ** Geopotential height [gpm]
ITEMPsfc 0 133,1,0 ** FNMOC Interface (ground or water) Temp [K]
LCDCsfc 0 73,1,0 ** Low level cloud cover [%]
LHTFLsfc 0 121,1,0 ** Latent heat flux [W/m<sup class="moz-txt-sup">2</sup>]
MCDCsfc 0 74,1,0 ** Mid level cloud cover [%]
NSWRSsfc 0 111,1,0 ** Net short wave (surface) [W/m<sup
class="moz-txt-sup">2</sup>]
PRMSLmsl 0 2,102,0 ** Pressure reduced to MSL [Pa]
SHLTFLsfc 0 221,1,0 ** FNMOC Sensible latent heat flux [W/m<sup
class="moz-txt-sup">2</sup>]
SNODsfc 0 66,1,0 ** Snow depth [m]
STRMprs 0 35,100,250 ** Stream function [m<sup class="moz-txt-sup">2</sup>/s]
TCDCprs 0 71,100,250 ** Total cloud cover [%]
TCDCclm 0 71,200,0 ** Total cloud cover [%]
TMPprs 17 11,100,0 ** Temp. [K]
TMP2m 0 11,105,2 ** Temp. [K]
TTLFLsfc 0 222,1,0 ** FNMOC Total heat flux [W/m<sup
class="moz-txt-sup">2</sup>]
UGRDprs 18 33,100,0 ** u wind [m/s]
UGRD10m 0 33,105,10 ** u wind [m/s]
UGRDhag 0 33,105,19 ** u wind [m/s]
USTRsfc 0 124,1,0 ** FNMOC wind stress U [N/m<sup class="moz-txt-sup">2</sup>]
VAPPsfc 0 55,1,0 ** Vapor pressure [Pa]
VAPPprs 14 55,100,0 ** Vapor pressure [Pa]
VGRDprs 18 34,100,0 ** v wind [m/s]
VGRD10m 0 34,105,10 ** v wind [m/s]
VGRDhag 0 34,105,19 ** v wind [m/s]
VPOTprs 0 36,100,250 ** Velocity potential [m<sup class="moz-txt-sup">2</sup>/s]
VSTRsfc 0 125,1,0 ** FNMOC wind stress V [N/m<sup class="moz-txt-sup">2</sup>]
VVELprs 11 39,100,0 ** Pressure vertical velocity [Pa/s]
WINDhag 0 32,105,19 ** Wind speed [m/s]
ENDVARS
</pre>
<b>Below are the results of a GraDS session:</b><br>
<br>
<pre wrap="">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 lats printim
Issue 'q config' command for more information.
GX Package Initialization: Size = 11 8.5
ga-> open 20080512Z.ctl
Scanning description file: 20080512Z.ctl
Data file /raid/data/fnmoc_models/fnmoc_model_058058240/g2008/g200805%d212_058058240.000 is open as file 1
LON set to 0 360
LAT set to -90 90
LEV set to 1000 1000
Time values set: 2008:5:1:12 2008:5:1:12
ga-> q file
File 1 : g2008050112_058058240.000
Descriptor: 20080512Z.ctl
Binary: /raid/data/fnmoc_models/fnmoc_model_058058240/g2008/g200805%d212_058058240.000
Type = Gridded
Xsize = 360 Ysize = 181 Zsize = 18 Tsize = 30
Number of Variables = 33
absdprs 4 42 ** Absolute divergence [/s]
absvprs 10 41 ** Absolute vorticity [/s]
deprprs 16 18 ** Dew point depression [K]
distsfc 0 8 ** Geometric height [m]
hcdcsfc 0 75 ** High level cloud cover [%]
hgtprs 17 7 ** Geopotential height [gpm]
itempsfc 0 133 ** FNMOC Interface (ground or water) Temp [K]
lcdcsfc 0 73 ** Low level cloud cover [%]
lhtflsfc 0 121 ** Latent heat flux [W/m<sup class="moz-txt-sup">2</sup>]
mcdcsfc 0 74 ** Mid level cloud cover [%]
nswrssfc 0 111 ** Net short wave (surface) [W/m<sup
class="moz-txt-sup">2</sup>]
prmslmsl 0 2 ** Pressure reduced to MSL [Pa]
shltflsfc 0 221 ** FNMOC Sensible latent heat flux [W/m<sup
class="moz-txt-sup">2</sup>]
snodsfc 0 66 ** Snow depth [m]
strmprs 0 35 ** Stream function [m<sup class="moz-txt-sup">2</sup>/s]
tcdcprs 0 71 ** Total cloud cover [%]
tcdcclm 0 71 ** Total cloud cover [%]
tmpprs 17 11 ** Temp. [K]
tmp2m 0 11 ** Temp. [K]
ttlflsfc 0 222 ** FNMOC Total heat flux [W/m<sup class="moz-txt-sup">2</sup>]
ugrdprs 18 33 ** u wind [m/s]
ugrd10m 0 33 ** u wind [m/s]
ugrdhag 0 33 ** u wind [m/s]
ustrsfc 0 124 ** FNMOC wind stress U [N/m<sup class="moz-txt-sup">2</sup>]
vappsfc 0 55 ** Vapor pressure [Pa]
vappprs 14 55 ** Vapor pressure [Pa]
vgrdprs 18 34 ** v wind [m/s]
vgrd10m 0 34 ** v wind [m/s]
vgrdhag 0 34 ** v wind [m/s]
vpotprs 0 36 ** Velocity potential [m<sup class="moz-txt-sup">2</sup>/s]
vstrsfc 0 125 ** FNMOC wind stress V [N/m<sup class="moz-txt-sup">2</sup>]
vvelprs 11 39 ** Pressure vertical velocity [Pa/s]
windhag 0 32 ** Wind speed [m/s]
ga-> set lat 20
LAT set to 20 20
ga-> set lon 120
LON set to 120 120
ga-> set lev 1000
LEV set to 1000 1000
ga-> set t 1
Time values set: 2008:5:1:12 2008:5:1:12
ga-> d tmpprs
Result value = 300.277
ga-> <b>set t 1 30</b>
Time values set: 2008:5:1:12 2008:5:30:12
ga-> <b>d tmpprs</b>
GRIB I/O Error: Bit Map I/O
<b>Data Request Error: Error for variable 'tmpprs'
Error ocurred at column 1
DISPLAY error: Invalid expression
Expression = tmpprs</b>
ga-> quit
</pre>
<br>
</body>
</html>