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

Change how missing emission files are handled #2

Open
wants to merge 1 commit into
base: PR_aer2014fullchem
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -2253,15 +2253,24 @@ if ($chem eq 'trop_mam_oslo' or $chem eq 'tropstrat_mam_oslo') {
my $first = 1;
my $pre = "";
my $val = "";
my $errstr = "";
foreach my $id (sort keys %species) {
my $rel_filepath = get_default_value($species{$id} );
my $abs_filepath = set_abs_filepath($rel_filepath, $inputdata_rootdir);
$val .= $pre . quote_string($id . $abs_filepath);
if ($first) {
$pre = ",";
$first = 0;
if ($rel_filepath eq "") {
my $idstrip = $id =~ s/[ ].*//r;
$errstr .= $eol . " No default filepath for $idstrip";
} else {
my $abs_filepath = set_abs_filepath($rel_filepath, $inputdata_rootdir);
$val .= $pre . quote_string($id . $abs_filepath);
if ($first) {
$pre = ",";
$first = 0;
}
}
}
if ($errstr ne "") {
die "Default emission datasets not found:" . $errstr . $eol;
}
add_default($nl, 'srf_emis_specifier', 'val'=>$val);
unless (defined $nl->get_value('srf_emis_type')) {
add_default($nl, 'srf_emis_type', 'val'=>'CYCLICAL');
Expand Down Expand Up @@ -2323,7 +2332,7 @@ if ($chem eq 'trop_mam_oslo' or $chem eq 'tropstrat_mam_oslo') {
}
}
if ($chem eq 'tropstrat_mam_oslo') {

my @files = ('soil_erod_file',
# 'xs_long_file', 'rsf_file', 'exo_coldens_file' );
# 'xs_long_file', 'xs_short_file', 'xs_coef_file', 'rsf_file', 'exo_coldens_file' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
<ext_frc_cycle_yr> 1850 </ext_frc_cycle_yr>

<!-- surface emissions -->
<srf_emis_specifier hgrid="0.9x1.25">
'SPECIES -> NOTAVAILABLE'
</srf_emis_specifier>
<!-- No srf_emis_specifier for hgrid="0.9x1.25" -->
<srf_emis_specifier hgrid="1.9x2.5">
'BC_AX -> $INPUTDATA_ROOT/atm/cam/chem/emis/cmip6_emissions_version20211124/perturbations/emissions_cmip6_noresm2_BC_AX_anthrosurfALL_surface_2014_date_1850_1.9x2.5_version20211124.nc',
'BC_N -> $INPUTDATA_ROOT/atm/cam/chem/emis/cmip6_emissions_version20211124/perturbations/emissions_cmip6_noresm2_BC_N_anthrosurfALL_surface_2014_date_1850_1.9x2.5_version20211124.nc',
Expand Down Expand Up @@ -105,9 +103,7 @@
</srf_emis_specifier>

<!-- 3D emissions -->
<ext_frc_specifier hgrid="0.9x1.25">
'SPECIES -> NOTAVAILABLE'
</ext_frc_specifier>
<!-- No ext_frc_specifier for hgrid="0.9x1.25" -->
<ext_frc_specifier hgrid="1.9x2.5">
'BC_AX -> $INPUTDATA_ROOT/atm/cam/chem/emis/cmip6_emissions_version20211124/perturbations/emissions_cmip6_noresm2_BC_AX_airALL_vertical_2014_date_1850_1.9x2.5_version20211124.nc',
'BC_AX -> $INPUTDATA_ROOT/atm/cam/chem/emis/cmip6_emissions_version20211124/perturbations/emissions_cmip6_noresm2_BC_AX_anthroprofALL_vertical_2014_date_1850_1.9x2.5_version20211124.nc',
Expand Down