Difference between revisions of "Tool Box Mars PEM"

From Planets
Jump to: navigation, search
(Cleaning of files (post-processing))
Line 23: Line 23:
 
== Initialization of orbital parameters (pre-processing) ==
 
== 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".
+
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) ==
 
== 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.
+
The bash script <code>modify_startfi_orbit.sh</code> 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) ==
 
== Setting a variable in a NetCDF file (pre-processing) ==
Line 35: Line 35:
 
== Lauching multiple simulations (pre-processing) ==
 
== 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.
+
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) ==
 
== 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.
+
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) ==
 
== Layering visualization (post-processing) ==
  
The Python script file <code>visu_layering.py </code> outputs the stratification data from the "startpem.nc" files.
+
The Python script file <code>visu_layering.py</code> outputs the stratification data from the "startpem.nc" files.
  
 
[[Category:Planetary-Evolution-Model]]
 
[[Category:Planetary-Evolution-Model]]

Revision as of 09:19, 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

The purpose of these tools is described in the sections below. Their usage is quite straightforward and all the parameters to be modified by the user are always gathered at the beginning of the file, in the header, with short explanations.

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_layering.py outputs the stratification data from the "startpem.nc" files.