Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PotVeg surface dataset using the wrong Urban dataset #2420

Closed
ekluzek opened this issue Mar 13, 2024 · 8 comments
Closed

PotVeg surface dataset using the wrong Urban dataset #2420

ekluzek opened this issue Mar 13, 2024 · 8 comments
Assignees
Labels
blocker another issue/PR depends on this one bug something is working incorrectly priority: high High priority to fix/merge soon, e.g., because it is a problem in important configurations science Enhancement to or bug impacting science
Milestone

Comments

@ekluzek
Copy link
Collaborator

ekluzek commented Mar 13, 2024

Brief summary of bug

The Potential Vegetation surface dataset:

/lnd/clm2/surfdata_esmf/ctsm5.2.0/surfdata_0.9x1.25_PtVeg_nourb_1850_16pfts_c240216.nc

is using the wrong urban input dataset. It should be using the zero-pct urban dataset rather than the standard one.

ncdump -h $CSMDATA/lnd/clm2/surfdata_esmf/ctsm5.2.0/surfdata_0.9x1.25_PtVeg_nourb_1850_16pfts_c240216.nc | grep urban
		PCT_URBAN:long_name = "percent urban for each density type" ;
		URBAN_REGION_ID:long_name = "urban region ID" ;
		:Urban_raw_data_file_name = "urban_properties_GaoOneil_05deg_ThreeClass_1850_cdf5_c20220910.nc" ;
		:mesh_urban_file = "UNSTRUCTgrid_3x3min_nomask_cdf5_c200129.nc" ;
		:mesh_urban_topography_file = "UNSTRUCTgrid_10x10min_nomask_cdf5_c200129.nc" ;

General bug information

CTSM version you are using: alpha-ctsm5.2.mksrf.21_ctsm5.1.dev168

Does this bug cause significantly incorrect results in the model's science? Yes!

Configurations affected: Just potential vegetation datasets

Details of bug

./gen_mksurfdata_namelist --potveg_flag --res 0.9x1.25 --start-year 1850 --end-year 1850

reports on the urban dataset twice:

cat surfdata_0.9x1.25_PtVeg_nourb_1850_78pfts_c240313.namelist | grep urban
  mksrf_furban = '/glade/campaign/cesm/cesmdata/inputdata/lnd/clm2/rawdata/mksrf_urban_0.05x0.05_zerourbanpct.cdf5.c181014.nc' 
  mksrf_furban_mesh = '/glade/campaign/cesm/cesmdata/inputdata/lnd/clm2/mappingdata/grids/UNSTRUCTgrid_3x3min_nomask_cdf5_c200129.nc' 
  mksrf_furban = '/glade/campaign/cesm/cesmdata/inputdata/lnd/clm2/rawdata/gao_oneill_urban/historical/urban_properties_GaoOneil_05deg_ThreeClass_1850_cdf5_c20220910.nc' 
@ekluzek ekluzek added priority: high High priority to fix/merge soon, e.g., because it is a problem in important configurations bug something is working incorrectly tag: bug - impacts science labels Mar 13, 2024
@ekluzek ekluzek added this to the ctsm5.2.0 milestone Mar 13, 2024
@ekluzek
Copy link
Collaborator Author

ekluzek commented Mar 13, 2024

@sophmaca is the one that found this issue.

@wwieder
Copy link
Contributor

wwieder commented Mar 13, 2024

Thanks for finding this, @sophmaca. @slevis-lmwg does it make sense for you to address this? I'll assign you for now

@slevis-lmwg slevis-lmwg added the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Mar 13, 2024
@slevis-lmwg
Copy link
Contributor

@ekluzek I added "next" but maybe we can resolve my question here:
You're working on the "clm6" PR #2417 in the 5.2 branch. Should I work on this one (#2420) and tag it before yours or after it?

@ekluzek
Copy link
Collaborator Author

ekluzek commented Mar 13, 2024

@slevis-lmwg I'm not sure which one goes first. It largely depends on which is ready first. So work on #2420, and we'll touch base again when either of are ready for theirs to come in.

@slevis-lmwg slevis-lmwg removed the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Mar 13, 2024
@slevis-lmwg slevis-lmwg added the blocker another issue/PR depends on this one label Mar 13, 2024
@slevis-lmwg slevis-lmwg moved this from Todo to In Progress in LMWG: Near Term Priorities Mar 13, 2024
@slevis-lmwg
Copy link
Contributor

As far as I can tell, the fix consists of two small changes in gen_mksurfdata_namelist.xml:

  1. In the mksrf_furban section, remove the PtVg section (clearly it was already not doing anything)
  2. In the main PtVg section, replace 1850 urban_filename with the "zerourban" file

The resulting namelist looks correct, so I am regenerating (job is waiting in the queue) our default resolution PtVeg file surfdata_0.9x1.25_PtVeg_nourb_1850_16pfts_cXXXXXX.nc to replace our previously generated ones.

@ekluzek I will refrain from ./rimporting the new file until we discuss whether/when I should do that.

@slevis-lmwg
Copy link
Contributor

Due to the simplicity of the fix, I opted against opening a new PR and just pushed the fix as a commit to the ctsm5.2.mksurfdata branch (PR #2372):

  1. @sophmaca this means that you can already update your checkout of the ctsm5.2.mksurfdata branch and try the instructions in Add ability of mksurfdata_esmf to create datasets that can be used for Paleo work... #578 again.
  2. @ekluzek pls let me know if this calls for a new tag in the ctsm5.2.mksurfdata branch.

@ekluzek
Copy link
Collaborator Author

ekluzek commented Mar 13, 2024

@slevis-lmwg go ahead and make a new tag to make the change more visible. Good work on getting this done so quickly that's awesome!

@slevis-lmwg
Copy link
Contributor

Closing this issue as done.
I opened checkboxes in #2372 about remaking the potveg fsurdat file with the correct tag and ./rimporting that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker another issue/PR depends on this one bug something is working incorrectly priority: high High priority to fix/merge soon, e.g., because it is a problem in important configurations science Enhancement to or bug impacting science
Development

No branches or pull requests

4 participants