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

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

add draft tests of reading with ferret, matlab and python

File size: 1.2 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 ++
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! pas de floatstr function sur zeus ?!
42! cf http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/handing-string-data-symbols/STRING-FUNCTIONS?searchterm=floatstr
43!
44! EVOLUTIONS
45! ==========
46!
47! - fplod 20110106T090443Z aedon.locean-ipsl.upmc.fr (Darwin)
48!
49!   * creation
50!
51!-
52!
53LET yyyymmdd_b = "19890101"
54LET yyyymmdd_e = "20091231"
55
56! ++ 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"
57LET filename = "TropFlux_" + yyyymmdd_b + "_" + yyyymmdd_e + ".nc"
58LET fullfilename = "/usr/zeus/incas/fplod/tropflux_d/" + filename
59LIST fullfilename
60! open
61! ++ use fullfilename
62use "/usr/zeus/incas/fplod/tropflux_d/TropFlux_19890101_20091231.nc"
63plot/t=1:1 swr ++
64!
65exit
Note: See TracBrowser for help on using the repository browser.