Skip to content

Commit

Permalink
Included description for placeholder section to improve future AD cal…
Browse files Browse the repository at this point in the history
…culations.
  • Loading branch information
esherwoo77 committed Mar 13, 2024
1 parent cdf0976 commit d7f9754
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions R/ad_load_calc.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ library(tbeptools)

noaa_key <- Sys.getenv('NOAA_KEY')

flrain <- read_sas("./data-raw/fl_rain_por_220223v93.sas7bdat")

cenflrainid <- ncdc_stations(extent=c(27.2,-83,28.7,-81.5), datasetid='GHCND', startdate = "2022-01-01", enddate = "2023-12-31", limit = 1000)
tbrainid <- cenflrainid$data %>%
mutate(stationid = unique(id)) %>%
select(stationid, name)
# Placeholder section to improve future AD calculations by utilizing any active
# rainfall stations within TB region over the time period of interest, you would then:
# 1) pass these stations to the NCDC function to get daily data (to sum to monthly totals)
# 2) still need to identify and assign UTM coordinates to these "new" stations
# 3) find the invdist2 value to each segment grid point in the targetxy dataframe using the loop starting on line 98
#
# flrain <- read_sas("./data-raw/fl_rain_por_220223v93.sas7bdat")
#
# cenflrainid <- ncdc_stations(extent=c(27.2,-83,28.7,-81.5), datasetid='GHCND', startdate = "2022-01-01", enddate = "2023-12-31", limit = 1000)
# tbrainid <- cenflrainid$data %>%
# mutate(stationid = unique(id)) %>%
# select(stationid, name)

stationid <- c("GHCND:USC00080228", "GHCND:USC00080478", "GHCND:USC00080520", "GHCND:USC00080940", "GHCND:USC00080945",
"GHCND:USC00081046", "GHCND:USC00081163", "GHCND:USC00081632", "GHCND:USC00081641", "GHCND:USW00092806",
Expand Down

0 comments on commit d7f9754

Please sign in to comment.