wiki:Tools

Version 7 (modified by nbouttes, 9 months ago) (diff)

--

Tools

Here are some tools than can be useful for postprocessing.

  • procevolu:

Converts the evolu clio output data to NetCDF or Grads. (run procevolu -h, for commandline options)
Implications: The output will have a time axis that is different from previous versions (procevg, evo2graE), because it was not correct there. A CF-Convention version is planned.
List and description of the variables in the evolu output in this page.

   ln -sf chemin_iloveclim/tools/evolu/procevolu .
    #./procevolu testevolu evolu_out
    ./procevolu evolu evolu_out
  • cresuint:

Converts cresal, cresua, cresum clio output to NetCDF. (run cresuint -h, for commandline options) Implications: The output will be the same, but ice berg flux has been added. The output file will be named like the input file. Without options the program runs like it used to run, asking questions.

  • Grid conversion with convert_clio.x

To convert CLIO files from irregular to regular grid
If not already done, change the environment variables, for example on obelix add in your .bashrc (in bash) or .tcshrc (in csh) file:

export EMIC_ROOT=/home/disk/NAME/iloveclim/
export PATH=$PATH:/home/disk/NAME/iloveclim/bin
export MANPATH=$MANPATH:/home/disk/NAME/iloveclim/man

with NAME your name, and disk the name of your disk to be changed

Then in the directory where you want to do the conversion (usually in ocean) add a symbolic link to the script:

 ln -s /home/disk/name/iloveclim/tools/Nieuw_convert_CLIO/bin/convert_clio.x .

Finally to convert the file:

./convert_clio -f NAME_OF_CLIO_FILE_TO_CONVERT

This should create a file with the same name and the extension "-converted-grid.nc" in the same directory.

  • Conversion of binary files to netcdf files for streamfunction (stream.dat file)
    moodule load cdo
    cdo -f nc import_binary stream.ctl stream.nc