Refine climate metrics and data pipeline
This commit is contained in:
@@ -27,7 +27,6 @@ from build_county_locally_extreme_data import (
|
||||
rows_by_fips,
|
||||
)
|
||||
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parents[1]
|
||||
DEFAULT_OUT = REPO_ROOT / "data" / "noaa" / "county_diurnal_temperature_range.csv"
|
||||
SOURCE_TAG = "noaa-nclimgrid-daily-county-area-averages-scaled"
|
||||
@@ -90,7 +89,11 @@ def build_diurnal_temperature_range(
|
||||
),
|
||||
)
|
||||
|
||||
for tmax_value, tmin_value in zip(tmax_record.values, tmin_record.values):
|
||||
for tmax_value, tmin_value in zip(
|
||||
tmax_record.values,
|
||||
tmin_record.values,
|
||||
strict=True,
|
||||
):
|
||||
if tmax_value is None or tmin_value is None:
|
||||
continue
|
||||
daily_range_c = tmax_value - tmin_value
|
||||
|
||||
Reference in New Issue
Block a user