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

user_datm.streams[...] causes datm.input_data_list being empty

Dear all, I am trying to run the CLM 4.0 (as included in CESM 1.2.0) with my own atmospheric forcing. Therefore, I copied the datm.streams.txt[...] files from /caseDir/CaseDocs into my caseFolder, changed their name to user_datm.streams.txt[...] and modified those files in order to link to my atmospheric forcing files. When I run preview_namelist, the resulting datm.input_data_list is, however, empty. The same happens if I do not modify the user_datm.streams.txt[...] files after copying and renaming. So this is not caused by an error in my changes in the user_datm.streams.txt[...] files. Google brought me here: https://github.com/ESMCI/cime/issues/916 . The bug in CIME described here sounds similar to my problem. Anyway, I do not know whether it is actually the same problem and if it is somehow possible to use the fixes from the CIME GitHub repository for CLM. Any thoughts or solutions? Best,  Martin
 

Ambition_hhh

Ambition_hhh
New Member
./create_newcase --case HistClm50BgcCrop --res f09_g16 --compset IHistClm50BgcCrop --mach myintel --compiler intel --run-unsupported

I created this case, I want the model to use my own file download of co2 (cmip6 download rcp2.6 data)
/home/hlh/cesm/inputdata/atm/datm7/CO2/fgco2_Oyr_CanESM5_rcp26 - cmip5_r1i1p1f1_gn_2006 - 2100.nc

1. I changed it in the run_run.xml file:
<entry id="DATM_CO2_TSERIES" value="none">
<type>char</type>
<valid_values>none,20tr,20tr.latbnd,rcp2.6,rcp4.5,rcp6.0,rcp8.5</valid_values>
<desc>DATM CO2 time series</desc>
</entry>

2. I changed it in the run_run.xml file:
<entry id="DATM_CLMNCEP_YR_START" value="2006">
<type>integer</type>
<desc>starting year to loop data over</desc>
</entry>
<entry id="DATM_CLMNCEP_YR_END" value="2100">
<type>integer</type>
<desc>ending year to loop data over</desc>
</entry>

3. I changed it in the run_run.xml file:
<entry id="CLM_CO2_TYPE" value="diagnostic">
<type>char</type>
<valid_values>constant,diagnostic,prognostic</valid_values>

4. I added to the user_nl_datm file:
co2_type = 'diagnostic'
fgco2_file = '/home/hlh/cesm/inputdata/atm/datm7/CO2/fgco2_Oyr_CanESM5_rcp26-cmip6_r1i1p1f1_gn_2006-2100.nc'
/

But an error is reported:
hlh@hlh-desktop:~/clm5.0/cime/scripts/my_custom_co2_case$ ./case.build --skip-provenance-check
Building case in directory /home/hlh/clm5.0/cime/scripts/my_custom_co2_case
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 'fgco2_file' from file '/home/hlh/clm5.0/cime/scripts/my_custom_co2_case/Buildconf/datmconf/namelist_infile' is not in the namelist definition.


I found that errors occurred when I added contents in the user_nl_datm file and the user_nl_clm file

How do I get the model to use my CO2 data

Thanks for your answer
 

slevis

Moderator
Staff member
One solution to this is posted here:
 
Top