Skip to content

Commit

Permalink
running weather anomalies
Browse files Browse the repository at this point in the history
  • Loading branch information
emmamendelsohn committed Oct 13, 2023
1 parent 35a4516 commit 4ef3b4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/calculate_weather_anomalies.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ calculate_weather_anomalies <-
lag_dates <- model_dates |> slice((row_select - start):(row_select - end))

# Lag: calculate mean by pixel for the preceding x days
lagged_means <- weather_dataset |>
lagged_means <- weather_transformed_dataset |>
filter(date %in% !!lag_dates$date) |>
group_by(x, y) |>
summarize(lag_relative_humidity_mean = mean(relative_humidity),
Expand Down
2 changes: 1 addition & 1 deletion _targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ data_targets <- tar_plan(
model_dates_selected,
lag_intervals,
overwrite = FALSE),
pattern = head(model_dates_selected, 20),
pattern = model_dates_selected,
format = "file",
repository = "local"),
# at 10 min per date, this would take 4260 minutes = 71 hours = 3 days when run sequentially
Expand Down
1 change: 1 addition & 0 deletions _targets/meta/meta
Original file line number Diff line number Diff line change
Expand Up @@ -6521,3 +6521,4 @@ transform_modis_ndvi|function|28d79a3d7f63479a
get_wahis_rvf_outbreaks_raw|function|a8564ce9127c9c1d
get_nasa_weather_coordinates|function|2c23f9e4d93cd8ca
ecmwf_forecasts_transformed_39321319|branch|3acf03c76cfe7948|65f4c5c000b3cdb0|df72ad0db9d40283|-1425929150|data/ecmwf_forecasts_transformed/ecmwf_seasonal_forecast_sys5_2013.gz.parquet|t19643.7287401079s|00558ffa7074450f|3048433881|file|local|vector|ecmwf_forecasts_transformed||931.08||
weather_anomalies_ed20e728|branch|d63f00a95328aa64|5ef87258cf0b822e|504645e86440039f|258210251|data/weather_anomalies/weather_anomaly_2014-01-03.gz.parquet|t19643.7668759296s|be1ce42ffa69c406|25575651|file|local|vector|weather_anomalies||46.615||

0 comments on commit 4ef3b4d

Please sign in to comment.