config_ORCA025_L75_rhino_knmi.sh 10 KB

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