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

add era5land,nldas soil vars to coop #152

Merged
merged 2 commits into from
Jan 24, 2024
Merged
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.13"
rev: "v0.1.14"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
8 changes: 6 additions & 2 deletions init/coop.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CREATE EXTENSION postgis;
CREATE TABLE iem_schema_manager_version(
version int,
updated timestamptz);
INSERT into iem_schema_manager_version values (18, now());
INSERT into iem_schema_manager_version values (19, now());

create table ncei_climdiv(
station char(6),
Expand Down Expand Up @@ -118,7 +118,11 @@ CREATE TABLE alldata(
narr_srad real,
merra_srad real,
era5land_srad real,
hrrr_srad real
hrrr_srad real,
era5land_soilt4_avg real,
era5land_soilm4_avg real,
nldas_soilt4_avg real,
nldas_soilm4_avg real
) PARTITION by range(station);
ALTER TABLE alldata OWNER to mesonet;
GRANT ALL on alldata to ldm;
Expand Down
4 changes: 4 additions & 0 deletions upgrade/coop/19.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
alter table alldata add era5land_soilt4_avg real;
alter table alldata add era5land_soilm4_avg real;
alter table alldata add nldas_soilt4_avg real;
alter table alldata add nldas_soilm4_avg real;
Loading