-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes model input names and columns types
- Loading branch information
Showing
15 changed files
with
79,366 additions
and
79,322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
data <- read.csv("wy2015/model_output.csv", stringsAsFactors=F) | ||
data$Year <- as.integer(data$Year) | ||
data$Mon <- as.integer(data$Mon) | ||
data$Day <- as.integer(data$Day) | ||
data$DOY <- as.integer(data$DOY) | ||
write.csv(data, "wy2015/model_output.csv", row.names = F) | ||
|
||
|
||
|
||
data <- read.csv("wy2016/model_output.csv", stringsAsFactors=F) | ||
data$Year <- as.integer(data$Year) | ||
data$Mon <- as.integer(data$Mon) | ||
data$Day <- as.integer(data$Day) | ||
data$DOY <- as.integer(data$DOY) | ||
write.csv(data, "wy2016/model_output.csv", row.names = F) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
create table calsimetaw.model_output_wy2016 ( | ||
dauco varchar(5), | ||
commodity text, | ||
year integer, | ||
mon integer, | ||
day integer, | ||
doy integer, | ||
area float, | ||
oKc float, | ||
iKc float, | ||
ccKc float, | ||
ETo float, | ||
Kc float, | ||
ETc float, | ||
PCP float, | ||
Er float, | ||
Spg float, | ||
Espg float, | ||
SWD float, | ||
SWDx float, | ||
FC float, | ||
PWP float, | ||
SWC float, | ||
YT float, | ||
NA float, | ||
primary key (dauco,commodity,year,mon,day) | ||
); | ||
|
||
\COPY calsimetaw.model_output_wy2016 from model_output.csv with csv header |