Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

2. Once the model simulation for a month has finished but the post processing did not run yet they are under:


Volet
    ~/MODEL_EXEC_RUN/${TRUE_HOST}/Restarts/${GEM_exp}/*step*/${GEM_exp}/RUNMOD/work/cfg_0000/...

If you need to copy them back under ~/MODEL_EXEC_RUN/${TRUE_HOST} you need to copy the second blue ${GEM_exp} directory!

...

The archived restarts contain the whole directory structure
Depending on the script version you are using they can have different names. Either

...

:

  • ${GEM_exp}_step*.tarz
  • ${GEM_exp}_step*.ca.gz

...

If you need to get these restart files back under ~/MODEL_EXEC_RUN/${TRUE_HOST} you need to unarchive them:

To unarchive files ending on *.tarz you can use the following commands:

      cd ~/MODEL_EXEC_RUN/${TRUE_HOST}
      tar xzvf ${CLIMAT_archdir}/Restarts/${GEM_exp}_step*.tarz

To unarchive files ending on *.ca.gz you can use the following commands:

      cd ${CLIMAT_archdir}/Restarts 
      for file in ${GEM_exp}_step*.ca.gz ; do gunzip -c ${file} > ~/MODEL_EXEC_RUN/

...

${TRUE_HOST}/${file%.gz} ; done
      cd ~/MODEL_EXEC_RUN/${TRUE_HOST}
      for file in ${GEM_exp}_step*.ca ; do cmcarc -x -f ${file} ; done

When having just one restart archive file you do not need the loops but depending on the grid size there could be more than one file per month.

...

If that is the case you need to gunzip and unarchive all of them - hence the loops.
The cmcarc-command will create a new directory, but the *.ca file(s) will remain in the directory. You can remove it/them

...

or

...

${GEM_exp}_step*.tarz

...

afterwards.