Giter Site home page Giter Site logo

paper-ndfd-nccoast-study's People

Contributors

sheilasaia avatar

Stargazers

 avatar

Watchers

 avatar  avatar

paper-ndfd-nccoast-study's Issues

get all historic precip data

want data for all applicable stations, for years = 2015 & 2016

checkout the following for data from the SCO API:

  • ASOS - altered surface observation station from nws and faa
  • AWOS - automated weather observation station from faa
  • BUOY - buoy network from national data buoy center
  • CMAN - coastal marine automated network from national data buoy center
  • CoCoRaHS - have this!
  • COOP - cooperative network from national center of environmental information
  • Duke - duke energy sites from duke energy
  • ECONET - environmental and climate observing network from nc sco
  • NCSU - econet sites on ncsu campus from ncsco
  • NOS - national ocean service from national data buoy center
  • RAWS - remote automatic weather stations from usfs
  • ThreadEx - threaded station extremes from regional noaa climate centers
  • TVA - tenseness valley authority sites from tva
  • USACE - us army corps sites from usace
  • USCRN - us climate reference network by national centers of environmental information
  • USGS - usgs gages

Others:

  • PRISM
  • Cooperative Observer NOAA
  • Emergency Mgmt
  • NC FIMAN
  • SECOORA

calculate error statistics

Hi Sheila,

Could you please calculate the R2 (coefficient of determination) and RMSE for each of the valid periods shown in the plot below?

obs_fore

In the paper, I'm thinking we can have the above plot alongside this one:

sim_fore_ml

Note that, in the figure above, I manually added the R2 and RMSE text boxes in powerpoint. Here's the code I used to create the plot (I pulled code from one of your scripts, but it looks slightly different than the original plot - I must have pulled the code for a different figure).

my_validhrs_colors <- c("#66c2a5", "#fc8d62", "#8da0cb")

ggplot(data = d) +
  geom_point(aes(x = precip_test*2.54, y = precip_pred*2.54, fill = as.factor(valid_period)), shape = 21, alpha = 0.50, size = 3) +
  geom_abline(slope = 1, intercept = 0, lty = 2) +
  facet_wrap(~ as.factor(valid_period)) +
  labs(x = "Forecasted (cm)", y = "Observed (cm)", fill = "Valid Period Hours") +
  theme_classic() +
  scale_fill_manual(values = my_validhrs_colors) +
  theme(axis.text = element_text(size = 16),
        axis.title = element_text(size = 16),
        text = element_text(size = 16),
        panel.grid.major = element_blank(), 
        panel.grid.minor = element_blank(),
        panel.background = element_blank())
ggsave("sim_obs_ml.pdf", width = 12, height = 4, units = "in")

lag 48h and 72h ndfd forecast values

Currently, the qpf and pop values for the 48h and 72h valid periods are lined up with the 24h observed rainfall values (e.g., a 48h forecast issued on Jan 1 is being compared to actual precip from Jan 1, but should be compared to actual precip from Jan 2). New date columns should be added that correspond to the different ndfd valid periods, and the data should then be reorganized to ensure the observed precip values are aligned with the appropriate forecast valid periods.

To implement this change, edit the roc_wrangle_data_script.R script. From discussion today, it seems like a good approach would be to add columns for date_48h and date_72h when creating temp_ndfd_data_sel (line 307). The data would still need to be realigned so the precip matches the forecast valid periods (maybe done after the completion of the i/j/k loops?).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.