source: trunk/src/test/average_pb.jnl @ 105

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

improve average problem diag. (to be cont.)

  • Property svn:keywords set to Id URL
File size: 3.3 KB
Line 
1!+
2!
3! .. _average_pb.jnl:
4!
5!
6! ==============
7! average_pb.jnl
8! =============
9!
10! DESCRIPTION
11! ===========
12!
13! EXAMPLES
14! ========
15!
16! ::
17!
18!  ferret> GO average_pb
19!
20! or::
21!
22!  $ ferret -nojnl -script average_pb.jnl
23!
24! SEE ALSO
25! ========
26!
27! TODO
28! ====
29!
30! find a solution (with /bad or missing function)
31!
32! log
33!
34! save figure
35!
36! save data to be compare to equivalent nco or cdo or .. implementation
37!
38! do the same with levitus, coads (ie a well known dataset)
39! see http://www.oc.nps.edu/~bird/oc3030/ferret/ferret_notes.html
40! ocean_atlas_subset.nc seems to be the closest dataset provided by ferret
41! to tropflux one because of xt,x,y,z axis of temp variable
42!
43! see in http://lpas.epfl.ch/MOD/manuals/ferret/chapter3.html : default missing value is 1.E+34
44!
45! get PROJECT_ID
46!
47! EVOLUTIONS
48! ==========
49!
50! $Id$
51!
52! $URL$
53!
54! - fplod 20111107T113100Z aedon.locean-ipsl.upmc.fr (Darwin)
55!
56!   * no more crash
57!   * confirm pb
58!
59! - fplod 20111104T130249Z aedon.locean-ipsl.upmc.fr (Darwin)
60!
61!   * creation to try to answer to [TropFlux:7] mail::
62!
63!     I have downloaded Tropslux SST daily data from the site
64!     http://www.locean-ipsl.upmc.fr/~tropflux/data/daily. While using the
65!     data in ferret i encountered some problems.  In ferret
66!     list/t=01-may-2001:30-jun-2001 sst[x=66:78@ave,y=6:18@ave] gives no
67!     result whereas  list/t=01-may-2001:30-jun-2001
68!     sst[x=66:70@ave,y=6:18@ave] gives the desired result...
69!     (the only change being the longitude changing from 78 to 70 and hence
70!     less influence of land coming into play). Can you please suggest any
71!     solution/workaround?
72!
73!     inspired by
74!     /opt/ferret-6.6.5/examples/tutorial.jnl
75!     for ploting
76!-
77CANCEL DATA/ALL
78CANCEL SYMBOL/ALL
79!
80! pour creer des metafile convertible en ps
81set mode metafile
82! pour avoir des traits plus gros
83GO bold
84!
85! pour les log
86! http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2009/msg00036.html
87let date = "($session_date)"
88let datetime = "($session_date) ($session_time)"
89!
90DEFINE SYMBOL tropflux_d = /usr/lodyc/incas/fplod/tropflux_d/daily
91DEFINE SYMBOL filename = sst_tropflux_1d_1989_2010.nc
92DEFINE SYMBOL fullfilename = ($tropflux_d)/sst_tropflux_1d_1989_2010.nc
93show symbol fullfilename
94use "($fullfilename)"
95!
96! have a look to data structure
97SHOW DATA/VARIABLES
98SHOW GRID sst
99! have a look to memory
100SHOW MEMORY
101SET MODE DESPERATE ! ++ en attendant de trouver le pb
102!
103! original statement in [tropflux:7]
104! list/t=01-may-2001:30-jun-2001 sst[x=66:78@ave,y=6:18@ave]
105!++ pb format E pour voir les vrais valeurs au lieu de ... à la place de vm
106!++list/format=(E)/t=01-may-2001:30-jun-2001 sst[x=66:78@ave,y=6:18@ave]
107list/t=01-may-2001:30-jun-2001 sst[x=66:78@ave,y=6:18@ave]
108LET sst_ave1 = sst[x=66:78@ave,y=6:18@ave,t=01-may-2001:30-jun-2001]
109PLOT sst_ave1
110LET/TITLE="SST anomaly x=66:78" sst_anom1 = sst - sst_ave1
111!++PLOT sst_anom1
112!
113! original statement in [tropflux:7]
114! list/t=01-may-2001:30-jun-2001 sst[x=66:70@ave,y=6:18@ave]
115list/t=01-may-2001:30-jun-2001 sst[x=66:70@ave,y=6:18@ave]
116LET sst_ave2 = sst[x=66:70@ave,y=6:18@ave,t=01-may-2001:30-jun-2001]
117PLOT sst_ave2
118!++LET/TITLE="SST anomaly x=66:70" sst_anom2 = sst - sst_ave2
119!++PLOT sst_anom2
120!
121! save data
122! ++ LIST/file=average_pb.output/format=(20E11.3)/order=xy/L=7 sst_ave1 sst_ave2
123!
124! save figure++
125!++exit
Note: See TracBrowser for help on using the repository browser.