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

./case.build Create a mapping grid file

tenghao

tenghao
New Member
Hello, everybody!


Create my own domain , surfdata, and land use timeseries for the research area according to the following process by clm5.0:

./mknoocnmap.pl -p $CENLAT,$CENLON -n $GRIDNAME -dy $DY -ny $NY -dx $DX -nx $NX

./mkmapdata.sh -r $GRIDNAME -f $GRIDFILE -t regional

./gen_domain -m $MAPFILE -o $OCNDOM -l $ATMDOM

./mksurfdata.pl -r usrspec -usr_gname $GRIDNAME -usr_gdate $CDATE -l $CSMDATA

./mksurfdata.pl -r usrspec -usr_gname $GRIDNAME -usr_gdate $CDATE -l $CSMDATA -y 1850-2000 -no_surfdata



Create newcase:

./create_newcase --case test_I2000Clm50BgcCrop --compset I2000Clm50BgcCrop --res CLM_USRDAT --machine myintel --compiler intel --run-unsupported

./case.setup

./case.build (ERROR: Need to provide valid mapping file between glc and lnd in xml variable glc2lnd_smapname )



(1) After consulting the relevant information on the forum, I learned that it is necessary to create a corresponding mapping file through ./gen_cesm_maps. sh, but what confuses me is what input data is specified in ./gen_cesm_maps. sh(--fileatm --fileocn --filelnd --filertm)?



(2) Execute./mknoocmap.pl, and generate.

SCRIPgrid_SHJ1X1_nomask_c250228.nc

SCRIPgrid_SHJ1X1_noocean_c250228.nc

map_SHJ1X1_noocean_to_SHJ1X1_nomask_aave_da_250228.nc

Do these three nc data relate to the input data for./gen_cesm_maps.sh(--fileatm --fileocn --filelnd --filertm)? The --filelnd in./gen_cesm_maps.sh must be global. How should it be generated? In addition, if you want to execute. /gen_cesm_maps.sh, it seems that you need to modify create_ESMF_map.sh. How to modify create_ESMF_map.sh enough to make gen_cesm_maps.sh run?



(3) At the suggestion of others, I did not prepare the corresponding mapping file, but used the existing data to conduct the experiment.

/xmlchange GLC2LND_SMAPNAME=map_gland4km_TO_fv0.9x1.25_aave.161223.nc

/xmlchange GLC2LND_FMAPNAME=map_gland4km_TO_fv0.9x1.25_aave.161223.nc

/xmlchange LND2GLC_FMAPNAME=map_fv0.9x1.25_TO_gland4km_aave.161223.nc

/xmlchange LND2GLC_SMAPNAME=map_fv0.9x1.25_TO_gland4km_blin.161223.nc

While./case.build worked, I don't know if it will have any effect on the custom resolution study area?



Looking forward to the answer very much

With best wishes
 

Attachments

  • create_ESMF_map.sh.txt
    11.9 KB · Views: 0

slevis

Moderator
Staff member
Unfortunately I do not have insights into this, so my first suggestion is to try (3) in case it works.

Something else to mention is the mksurfdata_esmf tool, which has replaced the old mksurfdata_map tool, and is simpler to use. However, the new tool became available with the ctsm5.2 release, and may not be compatible with your version.
 
Top