Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
noresm:runmodel:advancednoresm2 [2014-03-05 13:07:31]
alfg
noresm:runmodel:advancednoresm2 [2016-11-11 07:30:40]
i.h.h.karset@geo.uio.no [Configure nudging]
Line 1: Line 1:
-===== Advanced configuration of NorESM2 =====+====== Advanced configuration of NorESM2 ======
  
-=== Creating a compset ===+**NOTE THAT THE COMPSETS MENTIONED IN THIS EXAMPLE ARE NO LONGER MAINTAINED! THE GENERAL EXPLANATION AND IDEAS ARE STILL VALID! 
 +** 
 +===== Creating a new compset =====
  
 The essential file to edit is  The essential file to edit is 
 <file> <file>
-~/noresm/scripts/ccsm_utils/Case.template/config_compsets.xml == +~/noresm/scripts/ccsm_utils/Case.template/config_compsets.xml
 </file> </file>
  
Line 38: Line 40:
  
  
-=== Setting up a case with the new compset and building the model ===+===== Setting up a case with the new compset and building the model =====
  
 It should now be possible to create a new case directory, which we here name FAMIPOSLOtst It should now be possible to create a new case directory, which we here name FAMIPOSLOtst
 and configure with 1 degree horizontal atmospheric resolution; and configure with 1 degree horizontal atmospheric resolution;
  
 +<file>
 ./create_newcase -case ../cases/FAMIPOSLOtst -compset FAMIPOSLO -mach hexagon -res f09_f09 ./create_newcase -case ../cases/FAMIPOSLOtst -compset FAMIPOSLO -mach hexagon -res f09_f09
 +</file>
  
 and finally set up and compile the model: and finally set up and compile the model:
 +<file>
 cd ../cases/FAMIPOSLOtst cd ../cases/FAMIPOSLOtst
 +</file>
 +
 +<file>
 ./cesm_setup ./cesm_setup
 +</file>
 +
 +<file>
 ./FAMIPOSLOtst.build ./FAMIPOSLOtst.build
 +</file>
  
-=== Why does it work to change config_compsets.xml ?   ===+===== Why does it work to change config_compsets.xml ?   =====
  
 In NorESM there are 3 new config-options for CAM:   In NorESM there are 3 new config-options for CAM:  
   * -cam-oslo aerlife (turns on transport of oslo tracers)   * -cam-oslo aerlife (turns on transport of oslo tracers)
-  * -cam-oslo dirind  (turns on interaction with radiation) +  * -cam-oslo dirind  (also turns on interaction with radiation) 
-  * -cam-oslo warmclouds (turns on interaction with warm clouds)+  * -cam-oslo warmclouds (also turns on interaction with warm clouds)
  
-They change number of tracers and turn on different preprocessor flags in in a script +They change number of tracers and turn on different preprocessor flags in in a perl script called "configure", see: 
 <file> <file>
 models/atm/cam/bld/configure models/atm/cam/bld/configure
Line 68: Line 79:
 </file> </file>
  
-The options also need to be defined, see +The new oslo-options also need to be defined, see 
 <file> <file>
 models/atm/cam/bld/config_files/definition.xml models/atm/cam/bld/config_files/definition.xml
 </file> </file>
  
-To see how the options were added, do:+To see how these new options were added, do:
 <file> <file>
 svn diff -r 202 models/atm/cam/bld/config_files/definition.xml svn diff -r 202 models/atm/cam/bld/config_files/definition.xml
Line 79: Line 90:
  
  
 +===== Configure nudging =====
  
 +==== Create the met-data ====
 +
 +First run the model to produce 6 hourly data. The following namelists are needed:
 +
 +<file>
 +user_nl_cam
 +&camexp
 +mfilt           = 1,  4,
 +nhtfrq          = 0,  -6,
 +avgflag_pertape ='A','I',
 +fincl2          = 'PS','U','V','TAUX','TAUY','FSDS','TS','T','Q','PHIS','QFLX','SHFLX'
 +</file>
 +
 +<file>
 +user_nl_clm
 +&clmexp
 +hist_mfilt             = 1,4
 +hist_nhtfrq            = 0,-6
 +hist_avgflag_pertape   = 'A','I'
 +hist_fincl2            = 'SNOWDP','H2OSNO','H2OSOI'
 +</file>
 +
 +==== Use the met-data in another run ====
 +
 +First create a compset which has the configure-option "-offline_dyn" Check in config_compsets.xml which compsets have this configure-option added. See for example the compset NFAMIPNUDGEPTAERO in https://svn.met.no/NorESM/noresm/branches/featureCAM5-OsloDevelopment_trunk2.0-1/noresm/scripts/ccsm_utils/Case.template/config_compsets.xml
 +
 +Then use this compset to create a case. You need the following user-input (for example in your user_nl_cam)
 +
 +<file>
 +&metdata_nl
 +met_data_file='/work/shared/noresm/inputForNudging/FAMIPC5NudgeOut/atm/hist/FAMIPC5NudgeOut.cam.h1.1979-01-01-00000.nc'
 +met_filenames_list = '/work/shared/noresm/inputForNudging/FAMIPC5NudgeOut/atm/hist/fileList.txt'
 +</file>
 +
 +This info can be added directly in a use_case which you associate with the compset created (see e.g. 2000_cam5_oslonudge.xml) 
 +
 +where met_data_file is the first met-data file to read, and met_filenames_list is a list of the following met-data. The first lines of the file should look something like this (guess what the rest of the file should look like? 8-o: ) 
 +<file>
 +/work/shared/noresm/inputForNudging/FAMIPC5NudgeOut/atm/hist/FAMIPC5NudgeOut.cam.h1.1979-01-01-00000.nc
 +/work/shared/noresm/inputForNudging/FAMIPC5NudgeOut/atm/hist/FAMIPC5NudgeOut.cam.h1.1979-01-02-00000.nc
 +/work/shared/noresm/inputForNudging/FAMIPC5NudgeOut/atm/hist/FAMIPC5NudgeOut.cam.h1.1979-01-03-00000.nc
 +</file>
 +
 +This file can be created at the place where you put the metdata with this command: 
 +<file>
 +alfgr@hexagon-4:/work/shared/noresm/inputForNudging/FAMIPC5NudgeOut/atm/hist> ls -d -1 $PWD/*.h1.*.nc > fileList.txt
 +</file>
 +
 +==== Namelist options ====
 +When looking at aerosol indirect effects, it's recommended to nudge only U, V and PS:
 +<file>
 +&metdata_nl
 + met_nudge_only_uvps = .true.
 +</file>
 +
 +Choose relaxation time (hours). Use the same time as dt in met_data_file:
 +<file>
 +&metdata_nl
 + met_rlx_time = 6
 +</file>
 +
 +
 +==== Nudge to ERA-interim reanalysis ====
 +Link to ERA-interim metdata instead of model produced metdata. Remember to choose the files corresponding to your resolution:
 +<file>
 +&metdata_nl
 + met_data_file = '/work/shared/noresm/inputdata/noresm-only/inputForNudging/ERA_f09f09_30L_days/2001-01-01.nc'
 + met_filenames_list = '/work/shared/noresm/inputdata/noresm-only/inputForNudging/ERA_f09f09_30L_days/fileList2001-2015.txt'
 +</file>
 +
 +Add also the ERA-topography (important when nudging T):
 +<file>
 +&cam_inparm
 + bnd_topo = '/work/shared/noresm/inputdata/noresm-only/inputForNudging/ERA_f09f09_30L_days/ERA_bnd_topo.nc'
 +</file>
  
  • noresm/runmodel/advancednoresm2.txt
  • Last modified: 2022-05-31 09:29:32
  • (external edit)