<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt><big>Jeffrey,<br>
Assuming that R is not a function of Z, instead of writing R and Z to
the file as data, put them into the CTL file as the dimension levels,
something like this:</big><br>
<br>
</tt>
<p>DSET 0.3sf_grads.dat<br>
byteswapped<br>
TITLE Sample<br>
UNDEF -9999<br>
XDEF 30 levels 0 (add other radius values here) 155<br>
YDEF 1 linear 1 1<br>
ZDEF 32 levels 39 (add other heights here) 18000<br>
TDEF 4 linear 12:00Z15SEP1999 180MN<br>
vars <big></big>1<br>
t_az 32
99 TEMP AZ. AVG.<br>
endvars<br>
</p>
<p><br>
(NOTE: If X is equally spaced, then you can use<br>
XDEF 30 LINEAR startingX incrementX <br>
Same with the ZDEF.)<br>
</p>
<p>Write only the t_az data to the file.<br>
</p>
<p>When you plot, "set z 1 32", set your time, and display.<br>
</p>
<p>-MJ<br>
</p>
<br>
<br>
JEFFREY S GALL wrote:
<blockquote cite="mid1170860188l.798856l.0l@psu.edu" type="cite">I was
hoping someone could help me with this problem that I have been stuck
on
for a while. <br>
I want to make a height-radius contour plot of temperature at 1 given
time, i.e.
have <br>
radius from 0 to 150km on the x-axis and height z=39m to 18000m on the
y-axis.<br>
<br>
I open the file using:<br>
<br>
OPEN(541,FILE='0.3sf_grads.dat',FORM='UNFORMATTED',<br>
& ACCESS='DIRECT',RECL=KX*IX*4)<br>
<br>
where IX=32 and KX=30, that is 32 points in the x-dir and 30 points in
the
y-dir.<br>
<br>
I then write the radius, height and temperature to the file:<br>
<br>
IREC=1 <br>
WRITE(541,REC=IREC) ((R(K,I),K=1,KX),I=1,IR)<br>
IREC=IREC+1<br>
WRITE(541,REC=IREC) ((Z(K,I),K=1,KX),I=1,IR)<br>
IREC=IREC+1<br>
WRITE(541,REC=IREC) ((T(K,I),K=1,KX),I=1,IR)<br>
IREC=IREC+1<br>
<br>
It should be noted that R(K,1)=0.0 and R(K,IR)=155.0km. Also,
Z(1,I)=39.0m
and <br>
Z(KX,I)=18000m.<br>
<br>
Now, I want to create the corresponding .ctl file (0.3sf_grads.ctl)
such that
temperature <br>
is contoured on the r-z place. I have checked my tempearture, radius,
and
height values <br>
and I know they are correct. I would like the distance (radius) in km
to
be plotted on <br>
the x-axis and height in m on the y-axis.<br>
<br>
Any help in fixing this problem would be most appreciated, as I havent
been able
to find <br>
a solution to the problem. Thanks. <br>
<br>
Jeff
<p><br>
<br>
<br>
</p>
</blockquote>
</body>
</html>