Skip to content

Commit

Permalink
Merge pull request #152 from akrherz/coop_tsoil
Browse files Browse the repository at this point in the history
add era5land,nldas soil vars to coop
  • Loading branch information
akrherz authored Jan 24, 2024
2 parents 9ce92f0 + b404c92 commit a7db507
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
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;

0 comments on commit a7db507

Please sign in to comment.