Difference between revisions of "The diagfi.def Input File"
From Planets
Line 6: | Line 6: | ||
Each line of this ASCII file should contain the name (case sensitive!) of a variable to output. | Each line of this ASCII file should contain the name (case sensitive!) of a variable to output. | ||
− | Note that the variable name to use is the one set in the code when calling the | + | Note that the variable name to use is the one set in the code when calling the ''write_output'' routine. e.g. |
<syntaxhighlight lang="fortran"> | <syntaxhighlight lang="fortran"> | ||
− | + | call write_output("temperature","atmospheric temperature","K",zt) | |
− | |||
− | |||
− | |||
− | call write_output("temperature","temperature","K",zt) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 95: | Line 91: | ||
[[Category:Mars-Model]] | [[Category:Mars-Model]] | ||
[[Category:Mars-LMDZ]] | [[Category:Mars-LMDZ]] | ||
+ | [[Category:Mars-1D]] |
Latest revision as of 15:03, 30 April 2025
The diagfi.def file is an optional file that is read by the GCM at run time. If it is present then it will dictate which fields will be included in the diagfi.nc output file.
A clarification: generating the diagfi.nc output file is only possible when running with the lon-lat (LMDZ.COMMON) dynamical core (or in 1D), with the Generic or Mars physics packages.
diagfi.def format
Each line of this ASCII file should contain the name (case sensitive!) of a variable to output.
Note that the variable name to use is the one set in the code when calling the write_output routine. e.g.
call write_output("temperature","atmospheric temperature","K",zt)
implies that the variable temperature can be outputted in diagfi.nc
Example of diagfi.def file
aire altitude ap aps ASR ASRcs beta bp bps CLF CLFt controle Declin dt_ekman1 dt_ekman2 dt_diff1 dt_diff2 DYN evap_surf_flux fluxsurf_rad GND h2o_ice h2o_ice_col h2o_ice_surf h2o_vap h2o_vap_col h2o_vap_surf H2Oice_reffcol ISR latentFlux latitude longitude Ls Lss mass_evap_col OLR OLRcs p pctsrf_sic phisinit ps RA rain reevap RH rnat sea_ice sensibFlux shad snow soildepth tau_col temp Time Tsat tsea_ice tslab1 tslab2 tsurf u v w
- If there is no diagfi.def file found at run-time, then ALL variables will be written in diagfi.nc, which will rapidly become huge. You have been warned. Note however that it is a convenient way to have access to the names of all available variables that may be outputted in diagfi.nc.
- The rate at which the outputs are made in diagfi.nc is set by the diagfi_output_rate parameter which is usually set in the callphys.def file and expressed in terms of physical time steps for the Generic PCM. For the Mars PCM, a different flag sets the diagfi.nc output rate using outputs_per_sol.