Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

env_run.xml variables - runtime variables

nuvolet

Toni Viudez
Member
Greetings,

First of all, I was wondering if all the env_run.xml variables in CESM2.2 are the same than the ones described at this link for CESM1.2:


Finally, I would like to know which specific variables from env_run.xml should I customized to be able to run a monthly run from specific dates over nudging reanalysis data and AODs, which both have same spatial and temporal resolution (files each 3 hours).
I did something like this:

./xmlchange RUN_STARTDATE=20100101,STOP_OPTION=ndays,STOP_N=31,STOP_DATE=20100131,DOUT_S=FALSE

But the output files only reanalysis is in it and AODs only for first 3 days.

Thanks in advance
 

fischer

CSEG and Liaisons
Staff member
Hi Toni,

You can look up the xml variables for cesm2.2 at CESM2 Driver Namelist Definitions.

I would use the following xmlchange command
./xmlchange RUN_STARTDATE=20100101,STOP_OPTION=nmonths,STOP_N=1,DOUT_S=FALSE
You don't need to set both STOP_DATE and STOP_OPTION/STOP_N.

I'm not sure why you only got output files for the first 3 days. Did your one month run successfully finish?

Chris
 

nuvolet

Toni Viudez
Member
Hi Chris,

The one month case run successfully but when I look at the atm.log file looks like for some reason when the model is going to start the nudge for reanalysis files for 4rth day, it says that the nanalisys file is not found and switches the nudge OFF:

NUDGING: Reading analyses:~/CESM2.2/data/input/atm/cam/met/nudging/MERRA2_fv09_32L/2010/MERRA2_fv09.cam2.i.2010-01-04-00000.nc
NUDGING: Nudge_ObsInd= 1 2
NUDGING: Nudge_File_Present= F T
NUDGING: WARNING - analyses file NOT FOUND. Switching
NUDGING: nudging OFF to coast thru the gap.

On theater hand I will try your suggestion for the xmlchange command.

Thanks
 

fischer

CSEG and Liaisons
Staff member
This looks like you need to download more MERRA2 data. I bet if you do an ls ~/CESM2.2/data/input/atm/cam/met/nudging/MERRA2_fv09_32L/2010/MERRA2_fv09.cam2.i.2010-01-04-00000.nc you probably only have 3 days worth of data.

Chris
 

nuvolet

Toni Viudez
Member
This looks like you need to download more MERRA2 data. I bet if you do an ls ~/CESM2.2/data/input/atm/cam/met/nudging/MERRA2_fv09_32L/2010/MERRA2_fv09.cam2.i.2010-01-04-00000.nc you probably only have 3 days worth of data.

Chris
I have already downloaded the entire year 2010 from NCAR-RDA:


The path indicated above (~/CESM2.2/data/input/atm/cam/met/nudging/MERRA2_fv09_32L/2010/) is where I located all the (2920) files, this path is indicated in the nudging_nl for nudge read them.

Thanks
 

fischer

CSEG and Liaisons
Staff member
Hi Toni,

Can you give me the commands you used so I can give it a try.

Thanks
Chris
 

nuvolet

Toni Viudez
Member
Hi Chris,

This is what I have been doing:

Code:
./create_newcase --case $casename --compset FCnudged --res f09_f09_mg17 --run-unsupported

./xmlchange RUN_STARTDATE=20100101,STOP_OPTION=ndays,STOP_N=31,DOUT_S=FALSE

Then I modify the user_nl_cam by:

Code:
    echo "&nudging_nl" >> user_nl_cam
    
    echo " nudge_model            = .true." >> user_nl_cam
    
    echo " model_times_per_day    = 48" >> user_nl_cam
    
    echo " nudge_times_per_day    = 8" >> user_nl_cam
    echo " nudge_timescale_opt    = 1" >> user_nl_cam
        
    echo " nudge_beg_day          = 01 >> user_nl_cam
    echo " nudge_beg_month        = 01” >> user_nl_cam
    echo " nudge_beg_year         = 20”10 >> user_nl_cam
    
    echo " nudge_end_day          = 31” >> user_nl_cam
    echo " nudge_end_month        = 01” >> user_nl_cam
    echo " nudge_end_year         = 2010” >> user_nl_cam
    
    echo " nudge_path             = ~/CESM2.2/data/input/atm/cam/met/nudging/MERRA2_fv09_32L/'" >> user_nl_cam
    
    echo " nudge_file_template    = '%y/MERRA2_fv09.cam2.i.%y-%m-%d-%s.nc'" >> user_nl_cam

    echo " nudge_force_opt        = 0" >> user_nl_cam

    echo " nudge_pscoef           = 0.00" >> user_nl_cam
    echo " nudge_psprof           = 0" >> user_nl_cam
    
    echo " nudge_qcoef            = 0.25" >> user_nl_cam
    echo " nudge_qprof            = 1" >> user_nl_cam

    echo " nudge_tcoef            = 0.25" >> user_nl_cam
    echo " nudge_tprof            = 1" >> user_nl_cam
    
    echo " nudge_ucoef            = 0.25" >> user_nl_cam
    echo " nudge_uprof            = 1" >> user_nl_cam
    
    echo " nudge_vcoef            = 0.25" >> user_nl_cam
    echo " nudge_vprof            = 1" >> user_nl_cam

Then:

Code:
./case.build --clean-all

./case.build

./case.submit
Thanks
 

fischer

CSEG and Liaisons
Staff member
Hi Toni,

I wasn't able to reproduce your "WARNING" message that analyses file was not found. Is this a repeatable warning message
you're getting?

Chris
 

nuvolet

Toni Viudez
Member
Hi Toni,

I wasn't able to reproduce your "WARNING" message that analyses file was not found. Is this a repeatable warning message
you're getting?

Chris
Hi Chris,

Have you run the same as me, only for reanalysis?

I should also indicated that I additionally made some changes in the nudging module in order nudge aerosols as well.
I also wrote some writing statements to follow the process of the run in the nudging module, which are displayed in the atm.log file and show the problem from the reanalysis files.
As I mentioned before I have downloaded all the MERRA2 files from the NCAR archive and I doubled checked that there is not one missing file.
Enclosed you can see the atm.log file where from the beginning of fourth day it comes the message:

NUDGING: WARNING - analyses file NOT FOUND. Switching
NUDGING: nudging OFF to coast thru the gap.

Thanks

Toni
 

Attachments

  • atm.log_file.txt
    372.6 KB · Views: 4

fischer

CSEG and Liaisons
Staff member
Hi Toni,

I'm not sure what's the issue is. I'm going to move this thread to the cam forum. They'll know about nudging than I do.

Chris
 

nuvolet

Toni Viudez
Member
Hi Toni,

I'm not sure what's the issue is. I'm going to move this thread to the cam forum. They'll know about nudging than I do.

Chris
Thanks Chris,
I may ask Patrick Callaghan who actually wrote that module.

Toni
 
Top