Skip to content
Snippets Groups Projects
Verified Commit b331cefd authored by David Hoese's avatar David Hoese
Browse files

Fix typo in nc generation

parent e1c69ece
No related branches found
No related tags found
No related merge requests found
......@@ -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"]]
......
......@@ -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
[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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment