Skip to content

Commit

Permalink
Finish rebase
Browse files Browse the repository at this point in the history
Merge branch 'new_static_downloads' of github.com:ecohealthalliance/open-rvfcast into new_static_downloads

# Conflicts:
#	_targets.R
  • Loading branch information
noamross committed Jun 24, 2024
2 parents 5640633 + 4e13d5d commit cee9c00
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions _targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ static_targets <- tar_plan(
tar_target(rsa_polygon, rgeoboundaries::geoboundaries("South Africa", "adm2")),



# SOIL -----------------------------------------------------------
tar_target(soil_directory_raw,
create_data_directory(directory_path = "data/soil")),
Expand Down Expand Up @@ -105,7 +104,7 @@ dynamic_targets <- tar_plan(
tar_target(wahis_rvf_controls_preprocessed,
preprocess_wahis_rvf_controls(wahis_rvf_controls_raw)),


# SENTINEL NDVI -----------------------------------------------------------
# 2018-present
# 10 day period
Expand Down Expand Up @@ -352,7 +351,18 @@ dynamic_targets <- tar_plan(
cue = tar_cue(tar_cue_upload_aws)), # only run this if you need to upload new data




# cache locally
# Note the tar_read. When using AWS this does not read into R but instead initiates a download of the file into the scratch folder for later processing.
# Format file here means if we delete or change the local cache it will force a re-download.
tar_target(nasa_recorded_weather_local, {suppressWarnings(dir.create(here::here("data/nasa_parquets"), recursive = TRUE))
cache_aws_branched_target(tmp_path = tar_read(nasa_recorded_weather_download),
ext = ".gz.parquet")
},
repository = "local",
format = "file"
),


)

Expand Down

0 comments on commit cee9c00

Please sign in to comment.