[gradsusr] two-dimensional (R-Z) data files
Sim Aberson
sim.aberson at noaa.gov
Fri Oct 28 16:52:57 EDT 2022
I have code that creates an azimuthal average around the center of a TC
and writes the values out into a file with a control file for GrADS. I
have attached them both. The grid is 350 points in the radial direction
at 0.5-km intervals, with 24 pressure levels.
XDEF 350 LINEAR 0 0.5
YDEF 1 LINEAR 0 0.5
ZDEF 24 levels
1000 975 950 925 900 875 850 825 800 775 750 700 650 600 550 500 450
400 350 300 250 200 150 100
I've checked the values in the data file and they look good.
When I run GrADS and try to plot any variable, I get:
ga-> open azim.ctl
Scanning description file: azim.ctl
Data file azim.dat is open as file 1
LON set to 0 174.5
LAT set to 0 0
LEV set to 1000 100
Time values set: 2011:10:27:13 2011:10:27:13
E set to 1 1
ga-> d azimhgt
Data Request Warning: Varying Z dimension environment...
but the requested variable has no Z dimension
Entire grid contents are set to missing data
Warning issued for variable = azimhgt
Cannot contour grid - all undefined values
I get the same result if I set z 1 24 before trying to display. It
seems like this should be extremely easy, but I'm stumped.
Thanks,
Sim
--
Sim Aberson (he/him/his)
NOAA/AOML/Hurricane Research Division Miami, FL
https://www.aoml.noaa.gov/hrd/people/simdaberson/
AOML stands on the land of the Tequesta, Calusa, Miccosukee and Seminole
peoples. This acknowledgment is one way to educate ourselves about this
land, its history, and our relationships with the land and each other.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: azim.dat
Type: application/octet-stream
Size: 202752 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20221028/65a1bbff/attachment-0001.obj>
-------------- next part --------------
DSET ^azim.dat
TITLE Azimuthal Average
OPTIONS sequential
UNDEF 9.999E+20
XDEF 350 LINEAR 0 0.5
YDEF 1 LINEAR 0 0.5
ZDEF 24 levels
1000 975 950 925 900 875 850 825 800 775 750 700 650 600 550 500 450 400 350 300 250 200 150 100
TDEF 1 LINEAR 13Z27oct2011 1mo
VARS 6
azimhgt 0 7,100,0 ** (profile) Geopotential height [gpm]
azimtemp 0 11,100,0 ** (profile) Temp. [K]
azimdwpt 0 17,100,0 ** (profile) Dew point temp. [K]
azimdzdt 0 40,100,0 ** (profile) Geometric vertical velocity [m/s]
azimrwind 0 33,100,0 ** (profile) radial wind [m/s]
azimtwind 0 33,100,0 ** (profile) tangential wind [m/s]
ENDVARS
More information about the gradsusr
mailing list