config_ORCA1_L75_NEMO4_lm3.sh 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. #!/bin/bash
  2. #==========================================================
  3. #
  4. # Configuration file for
  5. #
  6. # OCEAN MONITORING for NEMO v4 on 75 levels
  7. #
  8. # Machine: lemaitre3.cism.ucl.ac.be
  9. #
  10. #==========================================================
  11. module purge
  12. module load releases/2018b use.own
  13. module load netCDF-Fortran/4.4.4-foss-2018b ELIC_Python/1-foss-2018b-Python-2.7.15
  14. module load ImageMagick/7.0.8-11-GCCcore-7.3.0 FFmpeg/4.1-foss-2018b
  15. export CONF=ORCA1.L75 ; # horizontal global ORCA configuration
  16. export NBL=75 ; # number of levels
  17. export HOST=lemaitre3.cism.ucl.ac.be ; # this has no importance at all, it will just become an "info" on the web-page!
  18. export MASTERMIND="UCL-ELIC / PY Barriat" ; # same here, who's the person who designed/ran this simulation?
  19. export EXTRA_CONF="NEMO 4.0.7"; # // same here ...
  20. # Path / directory structure in which to find NEMO output file (you can use
  21. # <ORCA> and <EXP> as substitute to your ORCA grid and experiment (EXP) name):
  22. export NEMO_OUT_STRCT="/scratch/ucl/elic/pbarriat/nemo/archive/$EXP/output"
  23. # Path to root directory where to save the diagnostics (diagnostics for this "CONF"):
  24. export DIAG_DIR="/scratch/ucl/elic/pbarriat/nemo/archive/$EXP/diag"
  25. # Path to directory containing some 2D and 3D climatologies on the relevant ORCA grid:
  26. export CONF_INI_DIR="/home/ucl/elic/pbarriat/modeles/barakuda/data"
  27. export CONF_INI_SCRATCH="/scratch/ucl/elic/pbarriat/data/nemo/CONFIG_FILES/ORCA1"
  28. # Temporary file system (scratch) on which to perform the job you can use <JOB_ID> if scracth depends on JOB ID:
  29. export SCRATCH="/scratch/ucl/elic/pbarriat/barakuda"
  30. export PYTHON_HOME="${EBROOTELIC_PYTHON}" ; # HOME to python distribution with matplotlib and basemap !
  31. export DIR_NCVIEW_CMAP="${BARAKUDA_ROOT}/src/ncview_colormaps"
  32. # Is it an ec-earth experiment?
  33. export ece_exp=0 ; # 0 => not an EC-Earth experiment, it's a "pure" ocean-only NEMO experiment done from traditional NEMO setup
  34. # # 1 => it's an OCEAN-ONLY EC-Earth experiment done from a EC-Earth setup
  35. # # 2 => it's a COUPLED EC-Earth experiment
  36. # # Both 1 and 2 imply that NEMO files are stored in something like
  37. # # ${SOMEWHERE}/<EXP>/output/nemo/<YYY>
  38. # # where YYY starts from '001' to
  39. # # If you select '2', make sure 'cdo' is available and working!!!
  40. # # 10 => this experiment controled by AutoSubmit (so NEMO files are tared somerwhere?)
  41. #
  42. export Y_INI_EC=1960 ; # initial year if ece_exp /= 0 !!!
  43. export M_INI_EC="01" ; # initial month, only needed if ece_exp >= 10 !!!
  44. export NCHNKS_Y=1 ; # number of chunks per year if ece_exp >= 10 (only needed if NCHNKS_Y >= 2 !)
  45. export TRES_IFS=255 ; # spectral resolution for IFS, ex: T255 => TRES_IFS=255
  46. ###--- end EC-Earth IFS relate section ---
  47. export ATMO_INFO="IFS T${TRES_IFS}" ; # Name of atmospheric model or forcing used (ex: COREv2, DFS5.2, IFS T255, ect...)
  48. # List of suffix of files that have been saved by NEMO and contain MONTHLY averages:
  49. export NEMO_SAVED_FILES="grid_T grid_U grid_V icemod SBC"
  50. export TSTAMP="1m" ; # output time-frequency stamp as in NEMO output files...
  51. # In case 3D fields have been saved on an annual mean basis rather than montly:
  52. export ANNUAL_3D="" ; # leave blanck "" if 3D fields are in monthly files...
  53. export NEMO_SAVED_FILES_3D="" ; # ''
  54. # How does the nemo files prefix looks like
  55. # Everything before "<year_related_info>_grid_<X>" or "<year_related_info>_icemod"
  56. # use <ORCA>, <EXP> and <TSTAMP>=> Ex: export NEMO_FILE_PREFIX="<ORCA>-<EXP>_<TSTAMP>_"
  57. export NEMO_FILE_PREFIX="<EXP>_<TSTAMP>_"
  58. # => should get rid of TSTAMP actually...
  59. ####### NEMO => what fields in what files ??? ############
  60. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  61. # => depends on the XIOS *.xml setup you used...
  62. # => always specify a string for the NN_* variables
  63. # USE "X" if the field is not present in your NEMO output
  64. #
  65. # State variables and others in grid_T files:
  66. export NN_SST="tos"
  67. export NN_SSS="sos"
  68. export NN_SSH="zos"
  69. export NN_T="thetao"
  70. export NN_S="so"
  71. export NN_MLD="mlotst"
  72. #
  73. # State variables and others in grid_U files:
  74. export NN_U="uo"
  75. export NN_TAUX="tauuo"
  76. export NN_U_EIV="0" ; # 0 => ignore
  77. # State variables and others in grid_V files:
  78. export NN_V="vo"
  79. export NN_TAUY="tauvo"
  80. export NN_V_EIV="0" ; # 0 => ignore
  81. #
  82. # Sea-ice fields:
  83. export FILE_ICE_SUFFIX="icemod" ; # in what file type extension to find ice fields
  84. export NN_ICEF="siconc" ; # name of ice fraction in "FILE_ICE_SUFFIX" file...
  85. export NN_ICET="sivolu" ; # ice thickness or rather volume...
  86. export NN_ICEU="sivelu" ; # ice U-velocity
  87. export NN_ICEV="sivelv" ; # ice V-velocity
  88. #
  89. # Surface fluxes:
  90. export FILE_FLX_SUFFIX="SBC" ; # in what file type extension to find surface fluxes (normally: "SBC")
  91. #### # => mind that $FILE_FLX_SUFFIX must be also in NEMO_SAVED_FILES (above)
  92. #### Note: in fields marked with *+/-* you can use a sum or substraction of variables (no space allowed!)
  93. #### ex: NN_EMP="evap_ao_cea+subl_ai_cea-precip"
  94. #### NN_QNET="qsr+qnsol"
  95. # ++ Surface freswater fluxes:
  96. export NN_FWF="wfo" ; # *+/-* name of net freshwater flux (E-P-R) in "FILE_FLX_SUFFIX" file...
  97. export NN_EMP="evap_ao_cea+subl_ai_cea-precip" ; # *+/-* name of E-P in "FILE_FLX_SUFFIX" file...
  98. #export NN_EMP="emp_oce" ; # name of Evap minus Precip over ocean
  99. export NN_P="precip" ; # name of total precipitation (solid+liquid) in "FILE_FLX_SUFFIX" file...
  100. export NN_RNF="runoffs" ; # name of continental runoffs in "FILE_FLX_SUFFIX" file...
  101. export NN_CLV="calving_cea" ; # calving from icebergs in "FILE_FLX_SUFFIX" file...
  102. export NN_E="evap_ao_cea+subl_ai_cea" ; # *+/-* name of total evaporation in "FILE_FLX_SUFFIX" file...
  103. # ++ Surface heat fluxes:
  104. export NN_QNET="qt_oce" ; # *+/-* name of total net surface heat flux in "FILE_FLX_SUFFIX" file...
  105. export NN_QSOL="rsntds" ; # name of net surface solar flux in "FILE_FLX_SUFFIX" file...
  106. # ++ Wind-stress module:
  107. export NN_TAUM="taum" ; # name of surface wind stress module in "FILE_FLX_SUFFIX" file...
  108. export NN_WNDM="windsp" ; # name of surface wind speed module in "FILE_FLX_SUFFIX" file...
  109. #
  110. ################################################################################################
  111. # Land-sea mask and basins files:
  112. export MM_FILE=${CONF_INI_DIR}/mesh_mask_nemo.N3.6_ORCA1L75.nc
  113. export BM_FILE=${BARAKUDA_ROOT}/data/basin_mask_ORCA1_ece3.2_2017.nc4
  114. # OBSERVATIONS / REFERENCES
  115. # 3D monthly climatologies of potential temperature and salinity (can be those you used for the NEMO experiment):
  116. export NM_TS_OBS="EN4.2.0 [1990-2010]"
  117. export F_T_OBS_3D_12=${CONF_INI_SCRATCH}/conservative_temperature_WOA13_decav_ORCA1L75_clim.nc
  118. export F_S_OBS_3D_12=${CONF_INI_SCRATCH}/absolute_salinity_WOA13_decav_ORCA1L75_clim.nc
  119. export F_SST_OBS_12=${CONF_INI_SCRATCH}/conservative_temperature_WOA13_decav_ORCA1L75_clim.nc
  120. export NN_T_OBS="votemper"
  121. export NN_S_OBS="vosaline"
  122. export NN_SST_OBS="votemper"
  123. #
  124. # Sea-ice:
  125. export NM_IC_OBS="Hurrell et al 2008 [1980-1999]"
  126. export F_ICE_OBS_12=${CONF_INI_DIR}/ice_cover_180x360-ORCA1_Hurrell_monthly_mean1980-1999.nc4
  127. export NN_ICEF_OBS="ice_cover"
  128. #
  129. # Surface Heat fluxes:
  130. export NM_QSOL_OBS="NOCS 2.0 [1980-2005]"
  131. export F_QSOL_OBS_12=${BARAKUDA_ROOT}/data/obs/radsw_monthly_clim_1980-2005_NOCS2.nc4
  132. export NN_QSOL_OBS="radsw"
  133. # A text file where the cross sections (to compute transports) are defined :
  134. export TRANSPORT_SECTION_FILE="${BARAKUDA_ROOT}/data/transportiz_ORCA1.dat" ; # set i_do_trsp=1 !
  135. export TRANSPORT_SECTION_FILE_ICE="${BARAKUDA_ROOT}/data/transport_ice_ORCA1.dat" ; # set i_do_trsp_ice=1 !
  136. # For transport by sigma-class:
  137. export DENSITY_SECTION_FILE="${BARAKUDA_ROOT}/data/dens_section_ORCA1.dat"
  138. # Files with the list of rectangular domains to "analyze" more closely:
  139. export FILE_DEF_BOXES="${BARAKUDA_ROOT}/data/def_boxes_convection_ORCA1.txt"
  140. export FILE_DMV_BOXES="${BARAKUDA_ROOT}/data/def_boxes_convection_ORCA1.txt"
  141. # In what format should figures be produced ('png' recommanded, but 'svg' supported!):
  142. export FIG_FORM="png"
  143. # About remote HOST to send/install HTML pages to:
  144. export ihttp=0 ; # do we export on a remote http server (1) or keep on the local machine (0)
  145. export RHOST=whitehouse.gov ; # remote host to send diagnostic page to///
  146. export RUSER=donald ; # username associated to remote host (for file export)
  147. export RWWWD=/data/www/barakuda/ec-earth_3.2b ; # directory of the local or remote host to send the diagnostic page to
  148. #########################
  149. # Diags to be performed #
  150. #########################
  151. # Movies of SST and SSS compared to OBS:
  152. export i_do_movi=1
  153. export iffmpeg_x264=0 ; # is, by chance, ffmpeg with support for x264 encoding available on your stystem? => 1 !
  154. # Basic 3D and surface averages:
  155. export i_do_mean=1
  156. # IFS surface fluxes of heat and freshwater
  157. export i_do_ifs_flx=1 ; # only relevant when ece_exp=2...
  158. # AMOC:
  159. export i_do_amoc=1
  160. export LMOCLAT="20-23 30-33 40-43 45-48 50-53" ; # List of latitude bands to look in for max of AMOC
  161. # Sea-ice diags
  162. export i_do_ice=1 ; # Sea-ice diags
  163. # Transport of mass, heat and salt through specified sections (into TRANSPORT_SECTION_FILE):
  164. export i_do_trsp=1 ; # transport of mass, heat and salt through specified sections
  165. # # i_do_trsp=2 => treat also different depths range!
  166. z1_trsp=100 ; # first depth: i_do_trsp must be set to 2
  167. z2_trsp=1000 ; # second depth: i_do_trsp must be set to 2
  168. # Solid freshwater transport through sections due to sea-ice drift
  169. export i_do_trsp_ice=1 ; # must have i_do_ice=1
  170. # Meridional heat/salt transport (advective)
  171. export i_do_mht=0
  172. # Transport by sigma class
  173. export i_do_sigt=1
  174. # Budget on pre-defined (FILE_DEF_BOXES) rectangular domains:
  175. export i_do_bb=0 ; # Budget and other stuffs on a given rectangular box!
  176. # # => needs file FILE_DEF_BOXES !!!
  177. # => produces time-series f(t) (mean of 2D fields)
  178. # Vertical profiles on of box-averaged as a function of time...
  179. export i_do_box_TS_z=0 ; # do sigma vert. profiles on given boxes... # 1 => no figures, 2 => figures
  180. # # => needs file FILE_DEF_BOXES !!!
  181. # => produces time-series f(t,z)
  182. # Deep Mixed volume in prescribed boxes:
  183. export i_do_dmv=1
  184. export MLD_CRIT="1000,725,500"
  185. # User-defined meridional or zonal cross sections (for temperature and salinity)
  186. # => TS_SECTION_FILE must be defined!
  187. export i_do_sect=1
  188. export TS_SECTION_FILE="${BARAKUDA_ROOT}/data/TS_sections.dat"
  189. # BETA / TESTING / NERDY (at your own risks...):
  190. #
  191. export i_do_ssx_box=0 ; # zoom on given boxes (+spatially-averaged values) for surface properties
  192. # # boxes defined into barakuda_orca.py ...
  193. # Some nerdy stuffs about the critical depth in prescribed boxes:
  194. export i_do_zcrit=0