diff --git a/aosstower/level_b1/nc.py b/aosstower/level_b1/nc.py index ff9b3d347edfdbe2db42cfde338dc12e16106b05..035b98be7c6e9b6912d97e7042d00fedaf4871fb 100644 --- a/aosstower/level_b1/nc.py +++ b/aosstower/level_b1/nc.py @@ -110,7 +110,7 @@ def create_giant_netcdf( # round up each 1 minute group so data at time T is the average of data # from T - 1 (exclusive) to T (inclusive). new_frame = frame.resample("5S", closed="right").mean() - new_frame.index = frame.index + to_offset("5S") + new_frame.index = new_frame.index + to_offset("5S") # 2 minute rolling average of 5 second data (5 seconds * 24 = 120 seconds = 2 minutes) winds_frame_5s = new_frame[["wind_speed", "wind_east", "wind_north"]] diff --git a/aosstower/schema.py b/aosstower/schema.py index 154fe751fb82c571cf781b4ee03ce14911ae828e..20bd58649a1bd5abbcb06cb9f925028e5ef836da 100644 --- a/aosstower/schema.py +++ b/aosstower/schema.py @@ -289,3 +289,4 @@ engr_vars = set(database.keys()) - met_vars unit_conversions = {} unit_conversions["accum_precip"] = lambda x: x * 25.4 +unit_conversions["precip"] = lambda x: x * 25.4 diff --git a/pyproject.toml b/pyproject.toml index 904273d36cd7ce008d4247185e26356b0cbe2bb1..9fadfb4f2e8e0f165fd16daac8e7448f186e3d2a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2", 'setuptools_scm_git_archive'] +requires = ["setuptools>=60", "wheel", "setuptools_scm[toml]>=8.0"] build-backend = "setuptools.build_meta" [tool.setuptools_scm]