1 | ************************************** |
---|
2 | ************************************** |
---|
3 | ************************************** |
---|
4 | MCS.PY DOCUMENTATION |
---|
5 | ************************************** |
---|
6 | Authors : AC |
---|
7 | ************************************** |
---|
8 | DON'T FORGET YOUR BEST FRIEND IS |
---|
9 | mcs.py -h [or] mcs.py --help |
---|
10 | ************************************** |
---|
11 | ************************************** |
---|
12 | ************************************** |
---|
13 | |
---|
14 | mcs.py transforms diagfi files from |
---|
15 | a GCM format (i.e. spatial and temporal grid, with spatial-dependent localtime-binning) |
---|
16 | to a certain degree of the MCS format. |
---|
17 | |
---|
18 | Examples: |
---|
19 | |
---|
20 | ------- |
---|
21 | I have a diagfi.nc that I want to compare to MCS data |
---|
22 | by binning temperatures and co2ice at the correct localtimes as given in the MCS MY29 file. |
---|
23 | However, I want to keep my gcm grid ! |
---|
24 | |
---|
25 | command -> mcs.py -f $YourSimulation/diagfi.nc -m /d5/lmlmd/MCS_processeddata/MCSdata_binned_MY29.nc --var temp,co2ice |
---|
26 | outputs -> diagfi_MCS.nc |
---|
27 | ------- |
---|
28 | ------- |
---|
29 | Ok, but after all, I want to interpolate these fields on the vertical grid used in the MCS data... (make sure to have rho in |
---|
30 | your file for a better interpolation. You also need aps, bps, ps and phisinit, at least in diagfi.nc or phisinit.nc.) |
---|
31 | |
---|
32 | command -> mcs.py -f $YourSimulation/diagfi.nc -m /d5/lmlmd/MCS_processeddata/MCSdata_binned_MY29.nc --var temp,co2ice -i |
---|
33 | outputs -> diagfi_P.nc , diagfi_P_MCS.nc |
---|
34 | ------- |
---|
35 | ------- |
---|
36 | Ok, but I dont care for the intermediary diagfi_P.nc file, it takes too much space. I want to remove it automatically |
---|
37 | after the computation |
---|
38 | |
---|
39 | command -> mcs.py -f $YourSimulation/diagfi.nc -m /d5/lmlmd/MCS_processeddata/MCSdata_binned_MY29.nc --var temp,co2ice -i --ditch |
---|
40 | output -> diagfi_P_MCS.nc |
---|
41 | ------- |
---|
42 | ------- |
---|
43 | I would also like to interpolate on the horizontal grid of MCS... |
---|
44 | |
---|
45 | command -> mcs.py -f $YourSimulation/diagfi.nc -m /d5/lmlmd/MCS_processeddata/MCSdata_binned_MY29.nc --var temp,co2ice -i --ditch -H |
---|
46 | output -> diagfi_h_P_MCS.nc |
---|
47 | ------- |
---|
48 | ------- |
---|
49 | I would like to use this command in a bash script in an automated way. As such, I dont want the script to recompute the recasted files |
---|
50 | if it is already there, and I want the script to use this recasted file instead. |
---|
51 | |
---|
52 | command -> mcs.py -f $YourSimulation/diagfi.nc -m /d5/lmlmd/MCS_processeddata/MCSdata_binned_MY29.nc --var temp,co2ice -i -H |
---|
53 | output -> diagfi_h_P_MCS.nc |
---|
54 | ------- |
---|
55 | ------- |
---|
56 | On the contrary, I want my script to override those already present files... |
---|
57 | |
---|
58 | command -> mcs.py -f $YourSimulation/diagfi.nc -m /d5/lmlmd/MCS_processeddata/MCSdata_binned_MY29.nc --var temp,co2ice -i -H --override |
---|
59 | output -> diagfi_P.nc , diagfi_h_P.nc , diagfi_h_P_MCS.nc |
---|
60 | ------- |
---|