[29] | 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 | ! |
---|
[30] | 16 | ! plot the first time step of swr |
---|
[29] | 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 | ! |
---|
[30] | 39 | ! learn ferret |
---|
[29] | 40 | ! |
---|
[30] | 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 | ! |
---|
[29] | 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 | ! |
---|
[30] | 55 | ! - fplod 20110106T164602Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 56 | ! |
---|
| 57 | ! * add plot |
---|
| 58 | ! |
---|
[29] | 59 | ! - fplod 20110106T090443Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 60 | ! |
---|
[30] | 61 | ! * creation thanks to ACP |
---|
[29] | 62 | ! |
---|
| 63 | !- |
---|
| 64 | ! |
---|
[30] | 65 | ! pour creer des metafile convertible en ps |
---|
| 66 | set mode metafile |
---|
| 67 | ! pour avoir des traits plus gros |
---|
| 68 | go bold |
---|
| 69 | |
---|
[29] | 70 | LET yyyymmdd_b = "19890101" |
---|
| 71 | LET 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" |
---|
| 74 | LET filename = "TropFlux_" + yyyymmdd_b + "_" + yyyymmdd_e + ".nc" |
---|
| 75 | LET fullfilename = "/usr/zeus/incas/fplod/tropflux_d/" + filename |
---|
| 76 | LIST fullfilename |
---|
| 77 | ! open |
---|
| 78 | ! ++ use fullfilename |
---|
| 79 | use "/usr/zeus/incas/fplod/tropflux_d/TropFlux_19890101_20091231.nc" |
---|
| 80 | ! |
---|
[30] | 81 | ! plot the first timestep of swr |
---|
| 82 | shade/l=1 swr |
---|
| 83 | ! |
---|
| 84 | ! plot world map |
---|
| 85 | go 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 |
---|
| 91 | frame/file=TropFlux_19890101_20091231.ferret.gif |
---|
| 92 | ! |
---|
| 93 | !++exit |
---|