config_ORCA1_L75_T255_ece32_marenostrum.sh 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. #!/bin/bash
  2. #==========================================================
  3. #
  4. # Configuration file for
  5. #
  6. # OCEAN MONITORING for NEMO v3.6 of EC-Earth 3.2 beta tunning on 75 levels
  7. #
  8. # Machine: MareNostrum@BSC
  9. #
  10. # L. Brodeau, November 2016
  11. #
  12. #===========================================================
  13. export CONF=ORCA1.L75 ; # horizontal global ORCA configuration
  14. export NBL=75 ; # number of levels
  15. export HOST=MARENOSTRUM ; # this has no importance at all, it will just become an "info" on the web-page!
  16. export EXTRA_CONF="NEMO 3.6 + LIM 3 (EC-Earth 3.2b_tuning)" ; # // same here ...
  17. # File system / path on which most netcdf data will be read:
  18. export STORE_DIR="/gpfs/scratch/bsc32/bsc32325"
  19. # Path to directory containing some 2D and 3D climatologies on the relevant ORCA grid:
  20. export CONF_INI_DIR="/gpfs/projects/bsc32/bsc32325/ORCA1/ORCA1-I/barakuda_clim"
  21. # In what directory of the local machine to save the diagnostics:
  22. export DIAG_DIR="${STORE_DIR}/barakuda/${CONF}_ece32"
  23. # --- only for problematic hosts ----
  24. module add NCO/4.2.3
  25. module add PYTHON/2.7.3
  26. # -----------------------------------
  27. export PYTHON_HOME="/apps/PYTHON/2.7.3" ; # HOME to python distribution with matplotlib and basemap !
  28. # Is it an ec-earth run?
  29. export ece_run=2 ; # 0 => not an EC-Earth run, it's a "pure" ocean-only NEMO run done from traditional NEMO setup
  30. # # 1 => it's an OCEAN-ONLY EC-Earth run done from a EC-Earth setup
  31. # # 2 => it's a COUPLED EC-Earth run
  32. # # Both 1 and 2 imply that NEMO files are stored in something like
  33. # # ${STORE_DIR}/<RUN>/output/nemo/<YYY>
  34. # # where YYY starts from '001' to
  35. # # If you select '2', make sure 'cdo' is available and working!!!
  36. #
  37. export Y_INI_EC=1990 ; # initial year if ec-earth run...
  38. export TRES_IFS=255 ; # spectral resolution for IFS, ex: T255 => TRES_IFS=255
  39. ###--- end EC-Earth IFS relate section ---
  40. export ATMO_INFO="IFS T${TRES_IFS}" ; # Name of atmospheric model or forcing used (ex: COREv2, DFS5.2, IFS T255, ect...)
  41. # List of suffixed of files that have been saved by NEMO and that are needed for the diags:
  42. export NEMO_SAVED_FILES="grid_T grid_U grid_V icemod SBC"
  43. # Directory structure in which to find NEMO output file (use <ORCA> and <RUN>):
  44. export NEMO_OUT_STRCT="${STORE_DIR}/run_ece/<RUN>/output/nemo"
  45. export TSTAMP="1m" ; # output time-frequency stamp as in NEMO output files...
  46. # How does the nemo files prefix looks like
  47. # Everything before "<year_related_info>_grid_<X>" or "<year_related_info>_icemod"
  48. # use <ORCA>, <RUN> and <TSTAMP>=> Ex: export NEMO_FILE_PREFIX="<ORCA>-<RUN>_<TSTAMP>_"
  49. export NEMO_FILE_PREFIX="<RUN>_<TSTAMP>_"
  50. # => should get rid of TSTAMP actually...
  51. # Temporary file system (scratch) on which to perform the job you can use <JOB_ID> if scracth depends on JOB ID:
  52. #export SCRATCH="/scratch/local/<JOB_ID>" ; # triolith
  53. export SCRATCH="/scratch/tmp"
  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. # even when missing from your files (ex: NN_MLD="xx")
  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="mldr10_1"
  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="siconc" ; # name of ice fraction in "FILE_ICE_SUFFIX" file...
  80. export NN_ICET="sivolu" ; # ice thickness or rather volume...
  81. #
  82. # Surface fluxes:
  83. export FILE_FLX_SUFFIX="SBC" ; # in what file type extension to find surface fluxes
  84. export NN_FWF="empmr" ; # name of net freshwater flux (E-P-R) in "FILE_FLX_SUFFIX" file...
  85. export NN_EMP="emp_oce" ; # name of E-P in "FILE_FLX_SUFFIX" file...
  86. export NN_P="precip" ; # name of total precipitation (solid+liquid) in "FILE_FLX_SUFFIX" file...
  87. export NN_RNF="runoffs" ; # name of continental runoffs in "FILE_FLX_SUFFIX" file...
  88. export NN_CLV="calving" ; # calving from icebergs in "FILE_FLX_SUFFIX" file...
  89. export NN_E="evapo" ; # name of total evaporation in "FILE_FLX_SUFFIX" file...
  90. export NN_QNET="qt" ; # name of total net surface heat flux in "FILE_FLX_SUFFIX" file...
  91. export NN_QSOL="qsr" ; # name of net surface solar flux in "FILE_FLX_SUFFIX" file...
  92. #
  93. ################################################################################################
  94. # Land-sea mask and basins files:
  95. export MM_FILE=/gpfs/projects/bsc32/bsc32325/ORCA1/ec-earth3.2/mesh_mask.nc4
  96. export BM_FILE=/gpfs/projects/bsc32/bsc32325/ORCA1/ec-earth3.2/basin_mask.nc4
  97. # 3D monthly climatologies of potential temperature and salinity (can be those you used for the NEMO run):
  98. export F_T_CLIM_3D_12=${CONF_INI_DIR}/thetao_1degx1deg-ORCA1.L75_WOA2009_monthly_LB_20160223.nc4
  99. export F_S_CLIM_3D_12=${CONF_INI_DIR}/so_1degx1deg-ORCA1.L75_WOA2009_monthly_LB_20160223.nc4
  100. export SST_CLIM_12=${CONF_INI_DIR}/tos_180x360-ORCA1_Reynolds_monthly_mean1982-2005.nc4
  101. export NN_T_CLIM="thetao"
  102. export NN_S_CLIM="so"
  103. export NN_SST_CLIM="tos"
  104. export ICE_CLIM_12=${CONF_INI_DIR}/ice_cover_180x360-ORCA1_Hurrell_monthly_mean1980-1999.nc4
  105. export NN_ICEF_CLIM="ice_cover"
  106. # A text file where the cross sections (to compute transports) are defined :
  107. export TRANSPORT_SECTION_FILE="${BARAKUDA_ROOT}/data/transportiz_ORCA1.dat"
  108. # For transport by sigma-class:
  109. export DENSITY_SECTION_FILE="${BARAKUDA_ROOT}/data/dens_section_ORCA1.dat"
  110. # Files with the list of rectangular domains to "analyze" more closely:
  111. export FILE_DEF_BOXES="${BARAKUDA_ROOT}/data/def_boxes_convection_ORCA1.txt"
  112. export FILE_DMV_BOXES="${BARAKUDA_ROOT}/data/def_boxes_convection_ORCA1.txt"
  113. # In what format should figures be produced ('png' recommanded, 'svg' works):
  114. export FIG_FORM="png"
  115. # About remote HOST to send/install HTML pages to:
  116. export ihttp=0 ; # do we export on a remote http server (1) or keep on the local machine (0)
  117. export RHOST=whitehouse.gov.org ; # remote host to send diagnostic page to///
  118. export RUSER=donald ; # username associated to remote host (for file export)
  119. export RWWWD=/data/www/barakuda/ec-earth_3.2b ; # directory of the local or remote host to send the diagnostic page to
  120. #########################
  121. # Diags to be performed #
  122. #########################
  123. # Movies of SST and SSS compared to OBS:
  124. export i_do_movi=1
  125. # Basic 3D and surface averages:
  126. export i_do_mean=1
  127. # IFS surface fluxes of heat and freshwater
  128. export i_do_ifs_flx=1 ; # only relevant when ece_run=2...
  129. # AMOC:
  130. export i_do_amoc=1
  131. export LMOCLAT="20-23 30-33 40-43 45-48 50-53" ; # List of latitude bands to look in for max of AMOC
  132. # Transport of mass, heat and salt through specified sections (into TRANSPORT_SECTION_FILE):
  133. export i_do_trsp=1 ; # transport of mass, heat and salt through specified sections
  134. # # i_do_trsp=2 => treat also different depths range!
  135. z1_trsp=100 ; # first depth: i_do_trsp must be set to 2
  136. z2_trsp=1000 ; # second depth: i_do_trsp must be set to 2
  137. # Meridional heat/salt transport (advective)
  138. export i_do_mht=1
  139. # Transport by sigma class
  140. export i_do_sigt=1
  141. # Sea-ice diags
  142. export i_do_ice=1 ; # Sea-ice diags
  143. # Budget on pre-defined (FILE_DEF_BOXES) rectangular domains:
  144. export i_do_bb=1 ; # Budget and other stuffs on a given rectangular box!
  145. # # => needs file FILE_DEF_BOXES !!!
  146. # => produces time-series f(t) (mean of 2D fields)
  147. # Vertical profiles on of box-averaged as a function of time...
  148. export i_do_box_TS_z=1 ; # do sigma vert. profiles on given boxes... # 1 => no figures, 2 => figures
  149. # # => needs file FILE_DEF_BOXES !!!
  150. # => produces time-series f(t,z)
  151. # Deep Mixed volume in prescribed boxes:
  152. export i_do_dmv=0
  153. export MLD_CRIT="1000,725,500"
  154. # User-defined meridional or zonal cross sections (for temperature and salinity)
  155. # => TS_SECTION_FILE must be defined!
  156. export i_do_sect=1
  157. export TS_SECTION_FILE="${BARAKUDA_ROOT}/data/TS_sections.dat"
  158. # BETA / TESTING / NERDY (at your own risks...):
  159. #
  160. export i_do_ssx_box=0 ; # zoom on given boxes (+spatially-averaged values) for surface properties
  161. # # boxes defined into barakuda_orca.py ...
  162. # Some nerdy stuffs about the critical depth in prescribed boxes:
  163. export i_do_zcrit=0
  164. # Fresh-water transport associated to sea-ice transport
  165. # => must compile cdficeflux.x but depends on more recent CDFTOOLS module...
  166. export i_do_icet=0 ; # treat sea-ice volume transport!
  167. export TRANSPORT_ICE_SECTION_FILE="${BARAKUDA_ROOT}/data/transportiz_ORCA1_ARCTIC.dat"
  168. export i_do_amo=0 ; # buit a SST time serie usable to build Atlantic Multidecadal Oscilation index
  169. # Place for potential specific host-related survival tricks:
  170. #========================== Marenostrum @ BSC =========================================================
  171. ### Shouldn't be needed elsewhere than MareNostrum, where it's a hello to have CDO working...
  172. ## => Only if you specified ece_run=2 and i_do_ifs_flx
  173. export MOD_CDO="gcc/4.7.2 intel/13.0.1 openmpi/1.8.1 NETCDF/4.1.3 HDF5/1.8.10 UDUNITS/2.1.24 CDO/1.7.0"
  174. #=======================================================================================================