Skip to content

Commit 0a2de77

Browse files
authored
Merge pull request #1365 from smahanam/quickfix/bcsd-nmme-prcp
fixed a bug that had made 6-hourly precip values constants
2 parents fc7ac3b + 7715126 commit 0a2de77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lis/utils/usaf/s2s/s2s_modules/bcsd_fcst/bcsd_library/temporal_disaggregation_6hourly_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def scale_forcings (mon_bc_value, mon_raw_value, input_raw_data, bc_var = None):
3333
output_bc_data = np.ones(len(input_raw_data))*-999
3434

3535
if bc_var == 'PRCP':
36-
if mon_raw_value <= 1.e-4:
36+
if mon_raw_value == 0.:
3737
correction_factor = mon_bc_value
3838
## HACK## for when input monthly value is 0
3939
output_bc_data[:] = correction_factor

lis/utils/usaf/s2s/s2s_modules/bcsd_fcst/bcsd_library/temporal_disaggregation_nmme_6hourly_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def scale_forcings (mon_bc_value, mon_raw_value, input_raw_data, bc_var = None):
3333
output_bc_data = np.ones(len(input_raw_data))*-999
3434

3535
if bc_var == 'PRCP':
36-
if mon_raw_value <= 1.e-4:
36+
if mon_raw_value == 0.:
3737
correction_factor = mon_bc_value
3838
## HACK## for when input monthly value is 0
3939
output_bc_data[:] = correction_factor

0 commit comments

Comments
 (0)