source: trunk/MESOSCALE/PLOT/SPEC/quick_plot2.pro @ 205

Last change on this file since 205 was 85, checked in by aslmd, 14 years ago

LMD_MM_MARS et LMD_LES_MARS: ajout des routines IDL pour tracer les sorties --> voir mesoscale/PLOT

File size: 1.8 KB
Line 
1pro script_con
2
3;;;;;;;
4file_user='/home/aslmd/EXOMARS/LMD_MM_MARS_Meridiani_S114_Ls247_LT0-23.nc'
5var_user = 'TSURF'
6var_user2 = 'HGT'
7nt = 5
8format = '(I0)'
9pal=33
10;;;;;;;
11
12PS_START, file='toto.ps'
13
14
15cdfid = ncdf_open(file_user)
16varid=ncdf_varid(cdfid,var_user)
17ncdf_varget, cdfid, varid, champ
18
19cdfid = ncdf_open(file_user)
20varid=ncdf_varid(cdfid,var_user2)
21ncdf_varget, cdfid, varid, champ2
22
23cdfid = ncdf_open(file_user)
24varid=ncdf_varid(cdfid,'XLONG')
25ncdf_varget, cdfid, varid, lon
26
27cdfid = ncdf_open(file_user)
28varid=ncdf_varid(cdfid,'XLAT')
29ncdf_varget, cdfid, varid, lat
30
31
32
33nx = 25
34ny = 25
35what_I_plot = reform(champ(nx,ny,*))
36
37plot, what_I_plot
38
39PS_END, /PNG
40
41end
42
43
44
45what_I_plot = reform(champ(*,*,nt))
46overcontour = reform(champ2(*,*,nt))
47longi = reform(lon(*,0))
48lati = reform(lat(0,*))
49
50map_latlon, $
51        what_I_plot, $                          ; 2D field
52        longi, $                                  ; 1D latitude OR 2D
53        lati, $                                  ; 1D longitude OR 2D
54;        minfield=minfield_init, $               ; minimum value of plotted field (=0: calculate)
55;        maxfield=maxfield_init, $               ; maximum value of plotted field (=0: calculate)
56        overcontour=overcontour, $              ; another 2D field to overplot with contour lines (=0: no)
57;        overvector_x=overvector_x, $            ; wind vector - x component (=0: no)
58;        overvector_y=overvector_y, $            ; wind vector - y component (=0: no)
59        ct=pal, $                               ; color table (33-rainbow is default)
60;        colors=colors, $                        ; number of colors/levels (32 is default)
61;        title=title_user, $                     ; title of the plot ('' is default)
62        format=format                           ; format of colorbar annotations ('(F6.2)' is default)
63
64
65PS_END, /PNG
66
67end
Note: See TracBrowser for help on using the repository browser.