ESCOMP / ESCOMP/CTSM

WRF-CTSM urban ESMF mesh file error

Open
#1,797 1 comment 0 reactions 0 assignees View on GitHub
support
Dominant language
Fortran
Stars
352
Forks
361
Avg merge
6d 6h
Merged PRs (30d)
8

Description

### Brief summary of bug

In building WRF-CTSM, we found some error due to the urban ESMF mesh file included as the default for CTSM.

### General bug information

**CTSM version you are using:** ctsm5.1.dev069-7-g57175712e

**Does this bug cause significantly incorrect results in the model's science?** N/A

**Configurations affected:** WRF-CTSM

### Details of bug

1. In building WRF-CTSM, `urbantv_streams` are automatically included in `lnd_in` with the default setting for CTSM.
`/ctsm_build_dir/runtime_inputs/lnd_in` :
```
/
&urbantv_streams
stream_fldfilename_urbantv = '/home/suyeonc/WRF-CTSM/CTSM/cesm_data/lnd/clm2/urbandata/CLM50_tbuildmax_Oleson_2016_0.9x1.25_simyr1849-2106_c160923.nc'
stream_meshfile_urbantv = '/home/suyeonc/WRF-CTSM/CTSM/cesm_data/lnd/clm2/urbandata/CLM50_tbuildmax_Oleson_2016_0.9x1_ESMFmesh_cdf5_100621.nc'
stream_year_first_urbantv = 2000
stream_year_last_urbantv = 2000
urbantvmapalgo = 'nn'
/

```

The namelist setting from `CLMBuildNamelist.pm`
`CTSM/bld/CLMBuildNamelist.pm` :
```
#-------------------------------------------------------------------------------

sub setup_logic_urbantv_streams {
my ($opts, $nl_flags, $definition, $defaults, $nl) = @_;

add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'urbantvmapalgo',
'hgrid'=>$nl_flags->{'res'} );
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'stream_year_first_urbantv', 'phys'=>$nl_flags->{'phys'},
'sim_year'=>$nl_flags->{'sim_year'},
'sim_year_range'=>$nl_flags->{'sim_year_range'});
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'stream_year_last_urbantv', 'phys'=>$nl_flags->{'phys'},
'sim_year'=>$nl_flags->{'sim_year'},
'sim_year_range'=>$nl_flags->{'sim_year_range'});
# Set align year, if first and last years are different
if ( $nl->get_value('stream_year_first_urbantv') !=
$nl->get_value('stream_year_last_urbantv') ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl,
'model_year_align_urbantv', 'sim_year'=>$nl_flags->{'sim_year'},
'sim_year_range'=>$nl_flags->{'sim_year_range'});
}
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'stream_fldfilename_urbantv', 'phys'=>$nl_flags->{'phys'},
'hgrid'=>"0.9x1.25" );
if ($opts->{'driver'} eq "nuopc" ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'stream_meshfile_urbantv', 'phys'=>$nl_flags->{'phys'},
'hgrid'=>"0.9x1.25" );
}
}

#-------------------------------------------------------------------------------

```

2. Then, we find than the model crashes because it cannot open the data, `stream_meshfile_urbantv`, which is `CLM50_tbuildmax_Oleson_2016_0.9x1_ESMFmesh_cdf5_100621.nc`. This data is automatically downloaded form the inputdata server. We found that this data is not openned from other apps to open the netcdf; it is a corrupt data.

3. We also tried to use the same data with manually downloading the data from the inpudata server [https://svn-ccsm-inputdata.cgd.ucar.edu/trunk/inputdata/lnd/clm2/urbandata/](https://svn-ccsm-inputdata.cgd.ucar.edu/trunk/inputdata/lnd/clm2/urbandata/), and still it cannot be opened.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.