[1954] | 1 | \chapter{Utilities} |
---|
| 2 | |
---|
| 3 | \label{sc:utilities} |
---|
| 4 | |
---|
| 5 | A few post-processing tools, which handle GCM outputs (files |
---|
| 6 | {\tt diagfi.nc} and {\tt stats.nc}) are available in the |
---|
| 7 | {\tt LMDZ.MARS/util} subdirectory. |
---|
| 8 | This directory contains the sources codes along with a {\tt README.exec} |
---|
| 9 | file which explains what the various programs are for and |
---|
| 10 | how to compile them. |
---|
| 11 | |
---|
| 12 | \section{concatnc} |
---|
| 13 | This program concatenates consecutive |
---|
| 14 | output files ({\tt diagfi.nc} or even {\tt stats.nc} files) for a selection of |
---|
| 15 | variable, in order to obtain one single big file. |
---|
| 16 | The time dimension of the output can |
---|
| 17 | be "sols" or "Ls" (note that in that latter case, Ls values won't be |
---|
| 18 | evenly distributed, and |
---|
| 19 | software like Grads may not be able to use and plot the data).\\ |
---|
| 20 | To obtain an evenly sampled "Ls" |
---|
| 21 | timescale, you can use the {\tt lslin.e} program (described below).\\ |
---|
| 22 | The output file created by {\tt conctanc.e} is {\tt concat.nc} |
---|
| 23 | |
---|
| 24 | \section{lslin} |
---|
| 25 | |
---|
| 26 | This program is designed to interpolate data given |
---|
| 27 | in irregular Solar Longitude (Ls) into an evenly sampled |
---|
| 28 | linear time coordinate (usable with Grads). |
---|
| 29 | Input Netcdf files may be {\tt diagfi.nc} or {\tt concat.nc} |
---|
| 30 | files and the resulting |
---|
| 31 | output file is {\tt lslin.nc} |
---|
| 32 | lslin also create a {\tt lslin.ctl} file that can be read |
---|
| 33 | directly by grads (\verb+>xdfopen lslin.ctl+) to plot in Ls coordinate to |
---|
| 34 | avoid some problem with grads when Grads think that "the time interval |
---|
| 35 | is too small"... |
---|
| 36 | |
---|
| 37 | \section{localtime} |
---|
| 38 | |
---|
| 39 | The {\tt localtime.e} program is designed to re-interpolate data in order |
---|
| 40 | to yield values at the same given local time (useful to mimic satellite |
---|
| 41 | observations, or analyse day to day variations at given local time).\\ |
---|
| 42 | Input files may be of {\tt diagfi.nc}, {\tt stats.nc} or {\tt concat.nc} |
---|
| 43 | type and the output file name is build from the input one, to which |
---|
| 44 | {\tt \_LT.nc} is appened (e.g. if the input file is {\tt myfile.nc} then |
---|
| 45 | output file will be {\tt myfile\_LT.nc}). |
---|
| 46 | |
---|
| 47 | \section{zrecast} |
---|
| 48 | With this program you can recast atmospheric (i.e.: 4D-dimentional |
---|
| 49 | longitude-latitude-altitude-time) data from GCM outputs (e.g. as given in |
---|
| 50 | {\tt diagfi.nc}, {\tt concat.nc} and {\tt stats.nc} files) onto |
---|
| 51 | either {\it pressure} or {\it altitude above areoid} vertical coordinates.\\ |
---|
| 52 | Since integrating the hydrostatic equation is required to recast the data, |
---|
| 53 | the input file must contain surface pressure and atmospheric temperature, |
---|
| 54 | as well as the ground geopotential.\\ |
---|
| 55 | If recasting data onto {\it pressure} coordinates, then the output file name |
---|
| 56 | is given by the input file name to which {\tt\_P.nc} will be appened. |
---|
| 57 | If recasting data onto {\it altitude above areoid} coordinates, then a |
---|
| 58 | {\tt\_A.nc} will be appened. |
---|
| 59 | |
---|
| 60 | \section{hrecast} |
---|
| 61 | This program can interpolate GCM output on any horizontal grid |
---|
| 62 | (regular lat - lon) as long as it cover all the |
---|
| 63 | planet. Useful to compare runs obtained at different horizontal resolutions. |
---|
| 64 | |
---|
| 65 | \section{expandstartfi} |
---|
| 66 | This program takes a physics start file ({\tt startfi.nc}) and recasts it |
---|
| 67 | on the corresponding lonxlat grid (so its contents may easily be displayed |
---|
| 68 | using Grads, Ferret, etc.) |
---|
| 69 | |
---|
| 70 | \section{extract} |
---|
| 71 | This program extracts (ie: interpolates) pointwise values of an atmospheric |
---|
| 72 | variable from a 'zrecast'ed diagfi file (works if altitude is geometrical |
---|
| 73 | height or a pressure vertical coordinates). |
---|
| 74 | |
---|