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 | ***************************************** |
---|
15 | SIMPLE EXAMPLES on a SAMPLE TES DATA FILE |
---|
16 | ***************************************** |
---|
17 | |
---|
18 | sparse.py reads sparse data, i.e. not binned in a lat/lon/vert/time grid and does plots. |
---|
19 | |
---|
20 | |
---|
21 | Goal: I would like to plot surface temperature vs. latitude for a .sav file from IDL. |
---|
22 | sparse.py -f TES_MY26_90_120.sav -X lat -Y surft |
---|
23 | [files in /planeto/lmlmd/TESdata/] |
---|
24 | |
---|
25 | Goal: I would like the same plot, but with local time for points color. |
---|
26 | sparse.py -f TES_MY26_90_120.sav -X lat -Y surft -C loctime |
---|
27 | |
---|
28 | Goal: I would like the same plot, but for local time > 10. |
---|
29 | sparse.py -f TES_MY26_90_120.sav -X lat -Y surft -C loctime -w 'loctime>12' |
---|
30 | |
---|
31 | Goal: I would like the same plot, but for longitude between 170 and 180. |
---|
32 | sparse.py -f TES_MY26_90_120.sav -X lat -Y surft -C loctime -w 'loctime>12,lon>170,lon<180' |
---|
33 | |
---|
34 | Goal: I would like another plot for local time < 12. |
---|
35 | sparse.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 | |
---|
37 | Goal: I would the same plot with the same 'spectral' colorbar. |
---|
38 | sparse.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 | |
---|
40 | Goal: I would like to map surface temperature on a polar projection. |
---|
41 | sparse.py -f TES_MY26_90_120.sav -X lon -Y lat -C surft -w 'lat>70,loctime>12' -p npstere --blat 70 |
---|
42 | |
---|
43 | Goal: I would like to plot surface temperature vs LS for Northern pole ice deposits for two different files. |
---|
44 | sparse.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 | |
---|
46 | Goal: I would like the same plot, but with merged data from the two files. |
---|
47 | sparse.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 | |
---|
49 | Goal: I would like to plot surface temperature occurences for day and night. |
---|
50 | sparse.py -f TES_MY26_90_120.sav -X surft -w 'loctime>12,areoc>110' -w 'loctime<12,areoc>110' --div 50 |
---|
51 | |
---|
52 | Goal: I would like the plot surface temperature and surface pressure for z-axis. |
---|
53 | sparse.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 | |
---|
55 | Goal: I would like to plot data from .txt files, knowing that 1st column is latitude, 2nd is longitude and 3rd is water vapor. |
---|
56 | sparse.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 | |
---|
60 | sparse.py also supports min and max options (--xmin,--xmax,-m,-M,etc..), background (-b) and |
---|
61 | transparency (--trans) options from planetoplot. |
---|
62 | |
---|
63 | |
---|
64 | carte opacite poussiere |
---|
65 | sparse.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 | ***************************************** |
---|
68 | to 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 | |
---|