Skip to content

Commit

Permalink
add era5land,nldas soil vars to coop
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Jan 24, 2024
1 parent 9ce92f0 commit bf7eb32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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 bf7eb32

Please sign in to comment.