[Thread Prev][Thread Next][Index]
Re: LIST command
Hi Emilie,
Hope all you want is to include the information about the
pressure level along with the data. Here is an example....
suppose the dimension is along depth axis ie Z-axis
( for simplicity /file=filename is dropped from list command)
yes? define axis/z=50:500:50 pres
yes? let temp = Z[gz=pres]/-10 ! variable with 1d grid
yes? list temp ! without format
VARIABLE : Z[GZ=PRES]/-10
SUBSET : 10 points (Z)
50 / 1: -5.00
100 / 2: -10.00
150 / 3: -15.00
200 / 4: -20.00
250 / 5: -25.00
300 / 6: -30.00
350 / 7: -35.00
400 / 8: -40.00
450 / 9: -45.00
500 / 10: -50.00
yes? list/format=(2f7.2) Z[gz=pres],temp ! with format , for pressure
! level values you have to
! specify the grid
Z: 25 to 525
Column 1: Z is Z (axis PRES)
Column 2: TEMP is Z[GZ=PRES]/-10
50.00 -5.00
100.00 -10.00
150.00 -15.00
200.00 -20.00
250.00 -25.00
300.00 -30.00
350.00 -35.00
400.00 -40.00
450.00 -45.00
500.00 -50.00
Since you had used 'i' along with 'temp' it seems your dimension(1D)
is along abstract axis I ( ie. coordinate axis X) in that case
list/format(2f7.2) X[gx=temp], temp
Hope this helps
With regards
Jaison
On Mon, 5 Apr 2004, Emilie Vanvyve wrote:
> Hello !
>
> I try to list a variable and put the result into a file. Say this
> variable is called "temp" and has 1 dimension (vertically : 10 pressure
> levels : 50 hPa, 100 hPA, 150 hPa, ..., 500 hPa).
>
> When I do this :
>
> define symbol filename = list.dat
> list/append/file=($filename) temp
>
> I get something like this :
>
> 50 / 1: -65.65
> 100 / 2: -63.50
> 150 / 3: -60.37
> 200 / 4: -58.62
> 250 / 5: -54.09
> 300 / 6: -48.06
> 350 / 7: -41.80
> 400 / 8: -35.56
> 450 / 9: -29.70
> 500 / 10: -24.40
>
> If I want to use the format (because indeed I will have 11 temp-like
> variables to list in columns) and I do this :
>
> define symbol filename = list.dat
> list/append/file=($filename)/format=(f7.2) i, temp
>
> I get something like this :
>
> J / 1: 1.00 -65.65
> J / 2: 2.00 -63.50
> J / 3: 3.00 -60.37
> J / 4: 4.00 -58.62
> J / 5: 5.00 -54.09
> J / 6: 6.00 -48.06
> J / 7: 7.00 -41.80
> J / 8: 8.00 -35.56
> J / 9: 9.00 -29.70
> J / 10: 10.00 -24.40
>
> ... and I have lost the information about the pressure-levels values
> (50, 100, ..., 500 hPa).
>
> So, how can I get back the "values" of my pressure levels included in
> my i-axis ? My pressure levels do not appear in my data file as a
> standard variable, they are included in the vertical axis (I have
> called i here) and I don't really want to introduce them in my data
> file as a variable.
>
> Thanks for any help !!!
>
> Emilie V.
>
> ____________________________________________________________
> Emilie VANVYVE
> Physicist, PhD student
>
> Université catholique de Louvain (UCL)
> Institut d'astronomie et de géophysique G. Lemaître (ASTR)
> Chemin du Cyclotron, 2
> 1348 Louvain-la-Neuve (Belgium)
> Phone : +32-(0)10-473300
> Fax : +32-(0)10-474722
> E-mail : vanvyve@astr.ucl.ac.be
> Web : www.astr.ucl.ac.be
--
___________________________________________________
Jaison Kurian
Centre for Atmospheric and Oceanic Sciences
Indian Institute of Science
B A N G A L O R E 560 012
Ph: +91-80-3942505
+91-80-3600450
Fax:+91-80-3600865
___________________________________________________
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement