config_ORCA1_L42_ece22_triolith.sh 10.0 KB

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