Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potentially helpful functions? #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abbylewis
Copy link

Per CCC request: two functions that load met data and format to match vera P1D targets. Might need to be modified for other applications

Copy link
Contributor

@rqthomas rqthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See imbedded comments

filter(datetime >= forecast_date) %>%
pivot_wider(names_from = variable, values_from = prediction)

write.csv(weather_pred_export,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to return the data frame and let the user write the file format of their choice? or is there a specific reason for serialized to csv in the function?

longitude = long,
forecast_days = forecast_days, # days into the future
past_days = 92, # past days that can be used for model fitting
model = "gfs_seamless", # this is the NOAA gefs ensemble model
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add model to the arguement so they can download a different open_meteo models

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants