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

How to correctly specify external CO2 data for datm components?

Ambition_hhh

Ambition_hhh
New Member
I want the model to use my own carbon dioxide data,

so

I have added the following content to the user_nl_datm:


&datm_inparm
co2_file ='/home/hlh/cesm/inputdata/atm/datm7/CO2/co2_AERmon_CESM2_historical_r10i1p1f1_gn_200001-201412.nc'
/

but......


hlh@hlh:~/clm5.0/cime/scripts/MYCO2DATA$ ./case.build --skip-provenance-check
Building case in directory /home/hlh/clm5.0/cime/scripts/MYCO2DATA
sharedlib_only is False
model_only is False
Setting resource.RLIMIT_STACK to -1 from (-1, -1)
Generating component namelists as part of build
Creating component namelists
Calling /home/hlh/clm5.0/cime/src/components/data_comps/datm/cime_config/buildnml
ERROR: Variable 'co2_file' from file '/home/hlh/clm5.0/cime/scripts/MYCO2DATA/Buildconf/datmconf/namelist_infile' is not in the namelist definition.
hlh@hlh:~/clm5.0/cime/scripts/MYCO2DATA$
 

slevis

Moderator
Staff member
I'm working with newer versions of the model, so this may not apply to clm5.0, but I find the co2 stream being set in my case's datm.streams.xml.

Here's an approach that often works for me:
You could set up a default IHist case to see where the model sets the co2 file, and only then would I start making changes.

Also you may need to carefully read this and related sections of the documentation:
 

Ambition_hhh

Ambition_hhh
New Member
I'm working with newer versions of the model, so this may not apply to clm5.0, but I find the co2 stream being set in my case's datm.streams.xml.

Here's an approach that often works for me:
You could set up a default IHist case to see where the model sets the co2 file, and only then would I start making changes.

Also you may need to carefully read this and related sections of the documentation:
Thank you for your answer, but I still don't quite understand the specific operation. Looking forward to hearing from you!
 

slevis

Moderator
Staff member
If you do not understand my suggestion, I recommend that you get training in the use of the model. You will find documentation online. You may also attend cesm tutorials that are offered occasionally.

(For my reference: The same topic is discussed here.)
 
Last edited:
Top