source: trunk/src/test/read.jnl @ 30

Last change on this file since 30 was 30, checked in by pinsard, 13 years ago

first plot with ferret

File size: 1.8 KB
Line 
1!+
2!
3! .. _read.jnl:
4!
5!
6! ========
7! read.jnl
8! ========
9!
10!
11! DESCRIPTION
12! ===========
13!
14! read TROPFLUX file ${TROPFLUX_D}/TropFlux_19890101_20091231.nc
15!
16! plot the first time step of swr
17!
18! EXAMPLES
19! ========
20!
21! ferret> CANCEL DATA/ALL
22! ferret> GO read
23!
24! SEE ALSO
25! ========
26!
27! matlab/octave similar program
28!
29! :ref:`read.m`
30!
31!
32! TODO
33! ====
34!
35! usage of $TROFLUX_D
36!
37! make it usable for real end-user
38!
39! learn ferret
40!
41! clean metafiles
42!
43! pb with Fprint on zeus probably because of an mtt problem
44!
45! pb with ferret on adonis
46!
47! pb with underscore in dataset label on zeus
48!
49! pas de floatstr function sur zeus ?!
50! cf http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/handing-string-data-symbols/STRING-FUNCTIONS?searchterm=floatstr
51!
52! EVOLUTIONS
53! ==========
54!
55! - fplod 20110106T164602Z aedon.locean-ipsl.upmc.fr (Darwin)
56!
57!   * add plot
58!
59! - fplod 20110106T090443Z aedon.locean-ipsl.upmc.fr (Darwin)
60!
61!   * creation thanks to ACP
62!
63!-
64!
65! pour creer des metafile convertible en ps
66set mode metafile
67! pour avoir des traits plus gros
68go bold
69
70LET yyyymmdd_b = "19890101"
71LET yyyymmdd_e = "20091231"
72
73! ++ pb floatstr si yyyymmdd_b est un entier LET fullfilename = "/usr/zeus/incas/fplod/tropflux_d"+"TropFlux_" + floatstr(yyyymmdd_b,"(I8.8)") + "_" + floatstr(yyyymmdd_e,"(I8.8)") + ".nc"
74LET filename = "TropFlux_" + yyyymmdd_b + "_" + yyyymmdd_e + ".nc"
75LET fullfilename = "/usr/zeus/incas/fplod/tropflux_d/" + filename
76LIST fullfilename
77! open
78! ++ use fullfilename
79use "/usr/zeus/incas/fplod/tropflux_d/TropFlux_19890101_20091231.nc"
80!
81! plot the first timestep of swr
82shade/l=1 swr
83!
84! plot world map
85go land
86!
87! create a Postscript file
88!++ sp Fprint -l cps -p portrait -o TropFlux_19890101_20091231.ferret.ps metafile.plt
89!
90!  create a GIF file
91frame/file=TropFlux_19890101_20091231.ferret.gif
92!
93!++exit
Note: See TracBrowser for help on using the repository browser.