Skip to content

Commit

Permalink
mnt: store more BUFR_WMO_SRF data
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Dec 15, 2023
1 parent 3ffa608 commit 5cd3fdd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
20 changes: 18 additions & 2 deletions init/other.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
CREATE TABLE iem_schema_manager_version(
version int,
updated timestamptz);
INSERT into iem_schema_manager_version values (13, now());
INSERT into iem_schema_manager_version values (14, now());

---
--- Stuart Smith Park Hydrology Learning Lab
Expand Down Expand Up @@ -108,7 +108,23 @@ CREATE TABLE alldata (
pday real,
pmonth real,
srad real,
c1tmpf real
tsoil_4in_f real,
tsoil_8in_f real,
tsoil_16in_f real,
tsoil_20in_f real,
tsoil_32in_f real,
tsoil_40in_f real,
tsoil_64in_f real,
tsoil_128in_f real,
skyc1 char(3),
skyc2 char(3),
skyc3 char(3),
skyc4 char(3),
skyl1 int,
skyl2 int,
skyl3 int,
skyl4 int,
srad_1h_j real
) PARTITION by range(valid);

do
Expand Down
18 changes: 18 additions & 0 deletions upgrade/other/14.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- Storage of WMO BUFR Station Data
alter table alldata add tsoil_4in_f real;
alter table alldata add tsoil_8in_f real;
alter table alldata add tsoil_16in_f real;
alter table alldata add tsoil_20in_f real;
alter table alldata add tsoil_32in_f real;
alter table alldata add tsoil_40in_f real;
alter table alldata add tsoil_64in_f real;
alter table alldata add tsoil_128in_f real;
alter table alldata add skyc1 char(3);
alter table alldata add skyc2 char(3);
alter table alldata add skyc3 char(3);
alter table alldata add skyc4 char(3);
alter table alldata add skyl1 int;
alter table alldata add skyl2 int;
alter table alldata add skyl3 int;
alter table alldata add skyl4 int;
alter table alldata add srad_1h_j real;

0 comments on commit 5cd3fdd

Please sign in to comment.