-
Notifications
You must be signed in to change notification settings - Fork 337
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
Addition of the new static information: BNU soil types and 15" MODIS landuse #1252
base: develop
Are you sure you want to change the base?
Changes from all commits
1319040
454b7f6
17a936d
d994e06
92f25de
22c195f
7dd6a27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,6 +126,7 @@ subroutine init_atm_static(mesh, dims, configs) | |
character(len=StrKIND), pointer :: config_vegfrac_data | ||
character(len=StrKIND), pointer :: config_albedo_data | ||
character(len=StrKIND), pointer :: config_maxsnowalbedo_data | ||
character(len=StrKIND), pointer :: config_soilcat_data | ||
character(len=StrKIND+1) :: geog_data_path ! same as config_geog_data_path, but guaranteed to have a trailing slash | ||
character(len=StrKIND+1) :: geog_sub_path ! subdirectory names in config_geog_data_path, with trailing slash | ||
|
||
|
@@ -143,6 +144,7 @@ subroutine init_atm_static(mesh, dims, configs) | |
type(c_ptr) :: rarray_ptr | ||
|
||
integer, pointer :: supersample_fac | ||
integer, pointer :: supersample_fac_lu | ||
integer, pointer :: supersample_fac_30s | ||
|
||
real(kind=RKIND):: lat,lon,x,y | ||
|
@@ -213,11 +215,13 @@ subroutine init_atm_static(mesh, dims, configs) | |
|
||
call mpas_pool_get_config(configs, 'config_geog_data_path', config_geog_data_path) | ||
call mpas_pool_get_config(configs, 'config_landuse_data', config_landuse_data) | ||
call mpas_pool_get_config(configs, 'config_soilcat_data', config_soilcat_data) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the definition of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mike, sorry about that. I added config_soilcat_data to the Registry.xml |
||
call mpas_pool_get_config(configs, 'config_topo_data', config_topo_data) | ||
call mpas_pool_get_config(configs, 'config_vegfrac_data', config_vegfrac_data) | ||
call mpas_pool_get_config(configs, 'config_albedo_data', config_albedo_data) | ||
call mpas_pool_get_config(configs, 'config_maxsnowalbedo_data', config_maxsnowalbedo_data) | ||
call mpas_pool_get_config(configs, 'config_supersample_factor', supersample_fac) | ||
call mpas_pool_get_config(configs, 'config_supersample_fac_lu', supersample_fac_lu) | ||
call mpas_pool_get_config(configs, 'config_30s_supersample_factor', supersample_fac_30s) | ||
|
||
write(geog_data_path, '(a)') config_geog_data_path | ||
|
@@ -350,11 +354,14 @@ subroutine init_atm_static(mesh, dims, configs) | |
write(mminlu,'(a)') 'USGS' | ||
case('MODIFIED_IGBP_MODIS_NOAH') | ||
write(mminlu,'(a)') 'MODIFIED_IGBP_MODIS_NOAH' | ||
case('MODIFIED_IGBP_MODIS_NOAH_15s') | ||
write(mminlu,'(a)') 'MODIFIED_IGBP_MODIS_NOAH_15s' | ||
case default | ||
call mpas_log_write('*****************************************************************', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write('Invalid land use dataset '''//trim(config_landuse_data) & | ||
//''' selected for config_landuse_data', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write(' Possible options are: ''USGS'', ''MODIFIED_IGBP_MODIS_NOAH''', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write(' '' MODIFIED_IGBP_MODIS_NOAH_15s''', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write('*****************************************************************', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write('Please correct the namelist.', messageType=MPAS_LOG_CRIT) | ||
end select surface_input_select0 | ||
|
@@ -394,24 +401,42 @@ subroutine init_atm_static(mesh, dims, configs) | |
case('MODIFIED_IGBP_MODIS_NOAH') | ||
call mpas_log_write('Using 20-class MODIS 30-arc-second land cover dataset') | ||
geog_sub_path = 'modis_landuse_20class_30s/' | ||
case('MODIFIED_IGBP_MODIS_NOAH_15s') | ||
call mpas_log_write('Using 20-class MODIS 15-arc-second land cover dataset') | ||
geog_sub_path = 'modis_landuse_20class_15s/' | ||
case default | ||
call mpas_log_write('*****************************************************************', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write('Invalid land use dataset '''//trim(config_landuse_data) & | ||
//''' selected for config_landuse_data', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write(' Possible options are: ''USGS'', ''MODIFIED_IGBP_MODIS_NOAH''', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write(' '' MODIFIED_IGBP_MODIS_NOAH_15s''', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write('*****************************************************************', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write('Please correct the namelist.', messageType=MPAS_LOG_CRIT) | ||
end select surface_input_select1 | ||
|
||
call mpas_log_write('--- start interpolate LU_INDEX') | ||
call interp_landuse(mesh, tree, trim(geog_data_path)//trim(geog_sub_path), isice_lu, iswater_lu, & | ||
supersample_fac=supersample_fac_30s) | ||
supersample_fac=supersample_fac_lu) | ||
call mpas_log_write('--- end interpolate LU_INDEX') | ||
|
||
! | ||
! Interpolate SOILCAT_TOP | ||
select case(trim(config_soilcat_data)) | ||
case('STASGO') | ||
call mpas_log_write('Using STATSGO 30-arc-second soil type dataset') | ||
geog_sub_path = 'soiltype_top_30s/' | ||
case('BNU') | ||
call mpas_log_write('Using BNU 30-arc-second soil type dataset') | ||
geog_sub_path = 'bnu_soiltype_top/' | ||
case default | ||
call mpas_log_write('*****************************************************************',messageType=MPAS_LOG_ERR) | ||
call mpas_log_write('Invalid soil type dataset'''//trim(config_soilcat_data) & | ||
//''' selected for config_soilcat_data', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write(' Possible options are: ''STASGO'',''BNU''', messageType=MPAS_LOG_ERR) | ||
call mpas_log_write('*****************************************************************',messageType=MPAS_LOG_ERR) | ||
call mpas_log_write('Please correct the namelist.', messageType=MPAS_LOG_CRIT) | ||
end select | ||
! | ||
geog_sub_path = 'soiltype_top_30s/' | ||
|
||
call mpas_log_write('--- start interpolate SOILCAT_TOP') | ||
call interp_soilcat(mesh, tree, trim(geog_data_path)//trim(geog_sub_path), iswater_soil, & | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't look like
config_nsoilcat
is used anywhere, so it seems like we could remove it from this PR branch.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mgduda Mike, this variable will be used in the following PRs that will compute the fractional content of soil types in each grid cell. And the 3-d array of fractional soil types will be dimensioned as nsoilcat.