Difference between revisions of "Tool Box Mars PEM"
(→Merging the PEM outputs into one NetCDF file (post-processing)) |
(*.py) |
||
Line 1: | Line 1: | ||
− | There are few tools provided along the PEM which can be found in the directory <code>LMDZ. | + | There are few tools provided along the PEM which can be found in the directory <code>LMDZ.COMMON/libf/evolution/deftank/</code>. A <code>README</code> text file gives information about the different files that this directory contains. |
− | + | The current tools available for the PEM in this directory are: | |
− | < | + | * <code>clean.sh </code> |
− | modify_startfi_orbit.sh | + | * <code>concat_diagpem.sh </code> |
− | </ | + | * <code>inipem_orbit.sh </code> |
+ | * <code>modify_startfi_orbit.sh </code> | ||
+ | * <code>modify_startfi_var.sh </code> | ||
+ | * <code>multiple_exec.sh </code> | ||
+ | * <code>visu_evol_layering.py </code> | ||
+ | * <code>visu_layering.py </code> | ||
− | == | + | These tools are described in the sections below. |
+ | |||
+ | == Cleaning of files (post-processing) == | ||
− | The bash script <code> | + | The bash script file <code>clean.sh </code> cleans the folder after a PEM simulation. |
== Merging the PEM outputs (post-processing) == | == Merging the PEM outputs (post-processing) == | ||
The bash script <code>concat_diagpem.sh</code> allows to concatenate along the variable 'Time' all the "diagpem" files (PEM outputs) into one NetCDF file. 'Time' is re-indexed with the numbering of Martian years simulated by the PEM run. It is useful if one wants to visualize and analyse the evolution of variables during all the PEM runs of the chained simulation. | The bash script <code>concat_diagpem.sh</code> allows to concatenate along the variable 'Time' all the "diagpem" files (PEM outputs) into one NetCDF file. 'Time' is re-indexed with the numbering of Martian years simulated by the PEM run. It is useful if one wants to visualize and analyse the evolution of variables during all the PEM runs of the chained simulation. | ||
+ | |||
+ | == Initialization of orbital parameters (pre-processing) == | ||
+ | |||
+ | The bash script file <code>inipem_orbit.sh </code> modifies the orbital parameters of a file "startfi.nc" according to the date set in the file "run_PEM.def". | ||
+ | |||
+ | == Setting the orbital parameters (pre-processing) == | ||
+ | |||
+ | The bash script <code>modify_startfi_orbit.sh</code> allows to modify the orbital parameters in a <code>startfi.nc</code> file, that is obliquity, eccentricity, Ls perihelion and the initial Ls. It is useful when one wants a chained simulation to start at a specific date. In this case, the orbital parameters should be consistent with Laskar's data in <code>obl_ecc_lsp.asc</code> which can be found in the PEM deftank. | ||
+ | |||
+ | == Setting a variable in a NetCDF file (pre-processing) == | ||
+ | |||
+ | The bash script file <code>modify_startfi_var.sh </code> modifies the value of a variable in a file "startfi.nc". | ||
+ | |||
+ | == Lauching multiple simulations (pre-processing) == | ||
+ | |||
+ | The bash script <code>modify_startfi_var.sh </code> executes multiple scripts in subdirectories. It is useful to launch multiple simulations at once. | ||
+ | |||
+ | == Layering visualization overged time (post-processing) == | ||
+ | |||
+ | The Python script file <code>visu_evol_layering.py </code> outputs the stratification data over time from the "startpem.nc" files. | ||
+ | |||
+ | == Layering visualization (post-processing) == | ||
+ | |||
+ | The Python script file <code>visu_evol_layering.py </code> outputs the stratification data from the "startpem.nc" files. | ||
[[Category:Planetary-Evolution-Model]] | [[Category:Planetary-Evolution-Model]] |
Revision as of 10:14, 14 January 2025
There are few tools provided along the PEM which can be found in the directory LMDZ.COMMON/libf/evolution/deftank/
. A README
text file gives information about the different files that this directory contains.
The current tools available for the PEM in this directory are:
-
clean.sh
-
concat_diagpem.sh
-
inipem_orbit.sh
-
modify_startfi_orbit.sh
-
modify_startfi_var.sh
-
multiple_exec.sh
-
visu_evol_layering.py
-
visu_layering.py
These tools are described in the sections below.
Contents
- 1 Cleaning of files (post-processing)
- 2 Merging the PEM outputs (post-processing)
- 3 Initialization of orbital parameters (pre-processing)
- 4 Setting the orbital parameters (pre-processing)
- 5 Setting a variable in a NetCDF file (pre-processing)
- 6 Lauching multiple simulations (pre-processing)
- 7 Layering visualization overged time (post-processing)
- 8 Layering visualization (post-processing)
Cleaning of files (post-processing)
The bash script file clean.sh
cleans the folder after a PEM simulation.
Merging the PEM outputs (post-processing)
The bash script concat_diagpem.sh
allows to concatenate along the variable 'Time' all the "diagpem" files (PEM outputs) into one NetCDF file. 'Time' is re-indexed with the numbering of Martian years simulated by the PEM run. It is useful if one wants to visualize and analyse the evolution of variables during all the PEM runs of the chained simulation.
Initialization of orbital parameters (pre-processing)
The bash script file inipem_orbit.sh
modifies the orbital parameters of a file "startfi.nc" according to the date set in the file "run_PEM.def".
Setting the orbital parameters (pre-processing)
The bash script modify_startfi_orbit.sh
allows to modify the orbital parameters in a startfi.nc
file, that is obliquity, eccentricity, Ls perihelion and the initial Ls. It is useful when one wants a chained simulation to start at a specific date. In this case, the orbital parameters should be consistent with Laskar's data in obl_ecc_lsp.asc
which can be found in the PEM deftank.
Setting a variable in a NetCDF file (pre-processing)
The bash script file modify_startfi_var.sh
modifies the value of a variable in a file "startfi.nc".
Lauching multiple simulations (pre-processing)
The bash script modify_startfi_var.sh
executes multiple scripts in subdirectories. It is useful to launch multiple simulations at once.
Layering visualization overged time (post-processing)
The Python script file visu_evol_layering.py
outputs the stratification data over time from the "startpem.nc" files.
Layering visualization (post-processing)
The Python script file visu_evol_layering.py
outputs the stratification data from the "startpem.nc" files.