-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* incorporate all data * add instead of copy habre.tif * add citation * updated test file with dates outside of example file range
- Loading branch information
1 parent
8e9f297
commit 6ab8dfa
Showing
6 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
.Rhistory | ||
.RData | ||
.Ruserdata | ||
s3_downloads/ | ||
habre.tif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
library(terra) | ||
|
||
# weeks 410 to 931 | ||
rast_files <- c(glue::glue("s3://habre/li_2020/week{410:931}_mean.tif"), | ||
glue::glue("s3://habre/li_2020/week{410:931}_std.tif")) | ||
|
||
rast_files <- s3::s3_get_files(rast_files) | ||
r <- terra::rast(rast_files$file_path) | ||
r <- round(r, digits = 2) # original 4 files: 7.7 MB to 4.2 MB | ||
terra::writeRaster(r, "habre.tif", overwrite = TRUE) | ||
|
||
fs::dir_delete("s3_downloads") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
id,lat,lon,start_date,end_date | ||
1,34.41471040449594,-115.04499837139416,2008-01-21,2008-01-27 | ||
2,34.02192926572527,-116.056401323031,2008-01-28,2008-02-03 | ||
3,35.22267356636723,-118.54506279596853,2008-01-25,2008-01-31 | ||
id,lat,lon,start_date,end_date | ||
1,34.4147104,-115.0449984,2008-01-21,2008-01-27 | ||
2,34.02192927,-116.0564013,2008-01-28,2008-02-03 | ||
3,35.22267357,-118.5450628,2010-01-25,2010-01-31 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
id,lat,lon,start_date,end_date,pm,sd | ||
1,34.4147104,-115.0449984,2008-01-21,2008-01-27,4.39,3.31 | ||
2,34.02192927,-116.0564013,2008-01-28,2008-02-03,3.64,1.65 | ||
3,35.22267357,-118.5450628,2010-01-25,2010-01-31,4.72,2.45 |