source: trunk/UTIL/PYTHON/sparse/README.SPARSE @ 3567

Last change on this file since 3567 was 943, checked in by aslmd, 12 years ago

clean and organized UTIL/PYTHON folder

File size: 3.5 KB
Line 
1*****************************************
2*****************************************
3*****************************************
4         SPARSE.PY EXAMPLES
5*****************************************
6               Author : TN
7*****************************************
8  DON'T FORGET YOUR BEST FRIEND IS
9   sparse.py -h [or] sparse.py --help
10*****************************************
11*****************************************
12*****************************************
13
14*****************************************
15SIMPLE EXAMPLES on a SAMPLE TES DATA FILE
16*****************************************
17
18sparse.py reads sparse data, i.e. not binned in a lat/lon/vert/time grid and does plots.
19
20
21Goal: I would like to plot surface temperature vs. latitude for a .sav file from IDL.
22sparse.py -f TES_MY26_90_120.sav -X lat -Y surft
23[files in /planeto/lmlmd/TESdata/]
24
25Goal: I would like the same plot, but with local time for points color.
26sparse.py -f TES_MY26_90_120.sav -X lat -Y surft -C loctime
27
28Goal: I would like the same plot, but for local time > 10.
29sparse.py -f TES_MY26_90_120.sav -X lat -Y surft -C loctime -w 'loctime>12'
30
31Goal: I would like the same plot, but for longitude between 170 and 180.
32sparse.py -f TES_MY26_90_120.sav -X lat -Y surft -C loctime -w 'loctime>12,lon>170,lon<180'
33
34Goal: I would like another plot for local time < 12.
35sparse.py -f TES_MY26_90_120.sav -X lat -Y surft -C loctime -w 'loctime>12,lon>170,lon<180' -w 'loctime<12,lon>170,lon<180'
36
37Goal: I would the same plot with the same 'spectral' colorbar.
38sparse.py -f TES_MY26_90_120.sav -X lat -Y surft -C loctime -w 'loctime>12,lon>170,lon<180' -w 'loctime<12,lon>170,lon<180' -c spectral -m 0 -M 24
39
40Goal: I would like to map surface temperature on a polar projection.
41sparse.py -f TES_MY26_90_120.sav -X lon -Y lat -C surft -w 'lat>70,loctime>12' -p npstere --blat 70
42
43Goal: I would like to plot surface temperature vs LS for Northern pole ice deposits for two different files.
44sparse.py -f TES_MY26_90_120.sav,TES_MY26_120_150.sav -X areoc -Y lat -C surft -w 'lat>70,loctime>10,lon>160,lon<180'
45
46Goal: I would like the same plot, but with merged data from the two files.
47sparse.py -f TES_MY26_90_120.sav,TES_MY26_120_150.sav -X areoc -Y lat -C surft -w 'lat>70,loctime>10,lon>160,lon<180' --merge
48
49Goal: I would like to plot surface temperature occurences for day and night.
50sparse.py -f TES_MY26_90_120.sav -X surft -w 'loctime>12,areoc>110' -w  'loctime<12,areoc>110' --div 50
51
52Goal: I would like the plot surface temperature and surface pressure for z-axis.
53sparse.py -f TES_MY26_90_120.sav -X lat -Y lon -C surft -Z surfp -w 'loctime>12,lon>170,lon<180,lat>75'
54
55Goal: I would like to plot data from .txt files, knowing that 1st column is latitude, 2nd is longitude and 3rd is water vapor.
56sparse.py -f media_prum_SPICAM.dat,media_prum_TES.dat,media_prum_OMEGA.dat -X 1 -Y 2 -C 3 -c 'spectral' -w '3>1' -m 0 -M 65
57[files in /planeto/tnalmd/data/water_vapor]
58
59
60sparse.py also supports min and max options (--xmin,--xmax,-m,-M,etc..), background (-b) and
61transparency (--trans) options from planetoplot.
62
63
64carte opacite poussiere
65sparse.py -f /planeto/lmlmd/TESdata/TES_MY25_180_210.sav -X lon -Y lat -C coldust -p ortho --blon 90 -m 0. -M 1. -c spectral -w 'areoc>180,areoc<185' -b molabw
66
67*****************************************
68to do:
69*****************************************
70- read other formats than txt and sav ?
71- variable that depends on 2 variables, such as atmospheric temperatures measurements
72- interface with binned data for comparison with simulations (use of writeascii in planetoplot, etc...)
73
74
75
Note: See TracBrowser for help on using the repository browser.