From 1de55c23af9f4c43880b1e2d2a8a1426e771e96f Mon Sep 17 00:00:00 2001 From: Paul Taconet Date: Tue, 14 May 2024 16:52:26 +0200 Subject: [PATCH] update website --- DESCRIPTION | 50 +- NAMESPACE | 12 +- R/mf_get_url.R | 3 +- R/mf_import_data.R | 35 +- README.Rmd | 370 +-- README.md | 1986 +---------------- dev_history.R | 2 +- docs/LICENSE.html | 10 +- docs/articles/advanced_workflow.html | 22 +- docs/articles/get_started.html | 22 +- docs/articles/index.html | 10 +- docs/articles/opendapr1.html | 56 +- docs/articles/opendapr2.html | 70 +- docs/authors.html | 8 +- docs/docsearch.css | 0 docs/docsearch.js | 0 docs/index.html | 94 +- docs/link.svg | 0 docs/logo.png | Bin docs/pkgdown.css | 0 docs/pkgdown.js | 0 docs/pkgdown.yml | 0 man/figures/README-plot_roi-1.png | Bin man/figures/logo.png | Bin ...r_download_data.Rd => mf_download_data.Rd} | 24 +- ...r_get_opt_param.Rd => mf_get_opt_param.Rd} | 26 +- man/{odr_get_url.Rd => mf_get_url.Rd} | 54 +- man/mf_import_data.Rd | 61 + ..._collections.Rd => mf_list_collections.Rd} | 10 +- ...list_variables.Rd => mf_list_variables.Rd} | 16 +- man/{odr_login.Rd => mf_login.Rd} | 12 +- man/modisfast-package.Rd | 25 + man/odr_import_data.Rd | 75 - man/opendapr-package.Rd | 25 - 34 files changed, 394 insertions(+), 2684 deletions(-) mode change 100755 => 100644 NAMESPACE mode change 100644 => 100755 docs/LICENSE.html mode change 100644 => 100755 docs/articles/advanced_workflow.html mode change 100644 => 100755 docs/articles/get_started.html mode change 100644 => 100755 docs/articles/index.html mode change 100644 => 100755 docs/articles/opendapr1.html mode change 100644 => 100755 docs/articles/opendapr2.html mode change 100644 => 100755 docs/authors.html mode change 100644 => 100755 docs/docsearch.css mode change 100644 => 100755 docs/docsearch.js mode change 100644 => 100755 docs/index.html mode change 100644 => 100755 docs/link.svg mode change 100644 => 100755 docs/logo.png mode change 100644 => 100755 docs/pkgdown.css mode change 100644 => 100755 docs/pkgdown.js mode change 100644 => 100755 docs/pkgdown.yml mode change 100644 => 100755 man/figures/README-plot_roi-1.png mode change 100644 => 100755 man/figures/logo.png rename man/{odr_download_data.Rd => mf_download_data.Rd} (68%) rename man/{odr_get_opt_param.Rd => mf_get_opt_param.Rd} (68%) rename man/{odr_get_url.Rd => mf_get_url.Rd} (74%) create mode 100644 man/mf_import_data.Rd rename man/{odr_list_collections.Rd => mf_list_collections.Rd} (78%) rename man/{odr_list_variables.Rd => mf_list_variables.Rd} (66%) rename man/{odr_login.Rd => mf_login.Rd} (75%) create mode 100644 man/modisfast-package.Rd delete mode 100644 man/odr_import_data.Rd delete mode 100644 man/opendapr-package.Rd diff --git a/DESCRIPTION b/DESCRIPTION index 649ad2d..08ad1f5 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,37 +1,43 @@ Package: modisfast -Title: Fast and efficient access to MODIS (and MODIS-like) data in R using the OPeNDAP Capacities +Title: Fast and efficient access to MODIS (and MODIS-like) data in R using + the OPeNDAP Capacities Version: 0.1.0 Authors@R: - person(given = "Paul", - family = "Taconet", - role = c("aut", "cre"), - email = "paul.taconet@ird.fr", + person("Paul", "Taconet", , "paul.taconet@ird.fr", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7429-7204")) -Description: Provides functions to download MODIS and MODIS-like Earth science datacubes in a time-saving and efficient way : by sampling it at the very downloading phase (spatially, temporally and dimensionally) using the OPeNDAP framework. +Description: Provides functions to download MODIS and MODIS-like Earth + science datacubes in a time-saving and efficient way : by sampling it + at the very downloading phase (spatially, temporally and + dimensionally) using the OPeNDAP framework. License: GPL-3 URL: https://github.com/ptaconet/modisfast BugReports: https://github.com/ptaconet/modisfast/issues -Encoding: UTF-8 -LazyData: true -RoxygenNote: 6.1.1 -VignetteBuilder: knitr -Depends: R (>= 2.10) +Depends: + R (>= 2.10) Imports: - magrittr, + curl, dplyr, httr, - curl, - sf, - purrr, lubridate, - xml2, - stringr, - rvest, - utils, + magrittr, + ncdf4, parallel, - terra + purrr, + raster, + rvest, + sf, + stats, + stringr, + terra, + xml2 Suggests: - testthat, + emo, knitr, mapview, - rmarkdown + rmarkdown, + testthat +VignetteBuilder: + knitr +Encoding: UTF-8 +LazyData: true +RoxygenNote: 7.3.1 diff --git a/NAMESPACE b/NAMESPACE old mode 100755 new mode 100644 index 90f1dab..1dfee6e --- a/NAMESPACE +++ b/NAMESPACE @@ -20,17 +20,13 @@ importFrom(lubridate,second) importFrom(lubridate,yday) importFrom(lubridate,year) importFrom(magrittr,"%>%") -importFrom(ncdf4,nc_open) -importFrom(ncdf4,ncvar_get) -importFrom(raster,brick) -importFrom(raster,flip) -importFrom(raster,merge) -importFrom(raster,raster) -importFrom(raster,t) importFrom(rvest,html_table) -importFrom(stars,read_stars) importFrom(stats,ave) importFrom(stringr,str_match) importFrom(stringr,str_replace) importFrom(stringr,word) +importFrom(terra,flip) +importFrom(terra,merge) +importFrom(terra,rast) +importFrom(terra,t) importFrom(xml2,read_html) diff --git a/R/mf_get_url.R b/R/mf_get_url.R index 3d8d309..fafb6f2 100755 --- a/R/mf_get_url.R +++ b/R/mf_get_url.R @@ -49,8 +49,7 @@ #' #' require(sf) #' require(magrittr) -#' require(raster) -#' require(stars) +#' require(terra) #' #' ### First mf_login to EOSDIS Earthdata with username and password. #' # To create an account go to : https://urs.earthdata.nasa.gov/. diff --git a/R/mf_import_data.R b/R/mf_import_data.R index e689402..e5c3546 100755 --- a/R/mf_import_data.R +++ b/R/mf_import_data.R @@ -1,20 +1,15 @@ #' @name mf_import_data #' @aliases mf_import_data -#' @title Import the time series in R as a \code{SpatRaster} or a \code{stars} object -#' @description Import a time series as a \code{SpatRaster} or a \code{stars} object +#' @title Import the time series in R as a \code{SpatRaster} object +#' @description Import a time series as a \code{SpatRaster}object #' #' @param dir_path string character vector. mandatory. The path to the local directory where the data are stored. #' @param collection_source character string. mandatory. The collection source (one of "MODIS", "VIIRS", "GPM") -#' @param output_class character string. Output object class. "SpatRaster" or "stars". See Details. +#' @param output_class character string. Output object class. Currently only "SpatRaster" implemented. #' @param proj_epsg character string. EPSG of the desired projection for the output raster (default : 4326) #' -#' @details -#' \code{output} : Currently "SpatRaster" implemented for all the collections and "stars" only for MODIS and VIIRS collections -#' #' @import purrr #' @importFrom terra rast t merge flip -#' @importFrom stars read_stars -#' @importFrom ncdf4 nc_open ncvar_get #' @importFrom magrittr %>% #' @export #' @@ -25,45 +20,33 @@ #' require(sf) #' require(magrittr) #' require(terra) -#' require(stars) #' #' username <- Sys.getenv("earthdata_un") #' password <- Sys.getenv("earthdata_pw") -#' log <- mf_login(credentials = c(username,password), source = "earthdata") +#' log <- mf_login(credentials = c(username,password)) #' -#' roi_name <- "korhogo +#' roi_id <- "korhogo" #' roi = st_as_sf(data.frame( #' geom="POLYGON ((-5.82 9.54, -5.42 9.55, -5.41 8.84, -5.81 8.84, -5.82 9.54))"), #' wkt="geom",crs = 4326) #' #' time_range = as.Date(c("2017-01-01","2017-01-30")) #' -#' urls_mod11a1 <- mf_get_url(collection = "MOD11A1.006", +#' urls_mod11a1 <- mf_get_url(collection = "MOD11A1.061", #' variables = c("LST_Day_1km","LST_Night_1km"), #' roi = roi, -#' roi_name = roi_name, +#' roi_id = roi_id, #' time_range = time_range #' ) #' #' res_dl <- mf_download_data(urls_mod11a1) #' -#' ## import as RasterBrick -#' # here we import only the band LST_Day_1km -#' (mod11a1_rast <- mf_import_data(df_data_to_import = urls_mod11a1, -#' collection = "MOD11A1.006", -#' variable = "LST_Day_1km", -#' output_class = "RasterBrick")) +#' ## import as terra::SpatRast #' -#' ## import os stars -#' # in a stars object, all the bands are imported, so no need to specify a variable -#' (mod11a1_stars <- mf_import_data(df_data_to_import = urls_mod11a1, -#' collection = "MOD11A1.006", -#' output = "stars")) +#' modis_ts <- mf_import_data(file.path(roi_id,"MOD11A1.061"), collection_source = "MODIS") #' #' plot(mod11a1_rast) #' -#' plot(mod11a1_stars) -#' #' } mf_import_data <- function(dir_path, diff --git a/README.Rmd b/README.Rmd index a627e24..96c2238 100755 --- a/README.Rmd +++ b/README.Rmd @@ -1,6 +1,5 @@ --- -output: github_document -always_allow_html: yes +output: github_document --- @@ -12,380 +11,45 @@ knitr::opts_chunk$set( fig.path = "man/figures/README-", out.width = "100%" ) -library(magrittr) -library(modisfast) -library(dplyr) -library(emo) ``` -# modisfast - + +# modisfast -[![licence](https://img.shields.io/badge/Licence-GPL--3-blue.svg)](https://www.r-project.org/Licenses/GPL-3) -[![Travis build status](https://travis-ci.org/ptaconet/modisfast.svg?branch=master)](https://travis-ci.org/ptaconet/modisfast) -[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/modisfast)](https://cran.r-project.org/package=modisfast) -[![Github_Status_Badge](https://img.shields.io/badge/Github-0.1.0-blue.svg)](https://github.com/ptaconet/modisfast) - - - - - -**`modisfast`** is an R package that provides functions to **speed-up** the **download** of time-series data products derived from [**MODIS**](https://lpdaac.usgs.gov/data/get-started-data/collection-overview/missions/modis-overview/) and [**VIIRS**](https://lpdaac.usgs.gov/data/get-started-data/collection-overview/missions/s-npp-nasa-viirs-overview/) observations, as well as other widely-used satellite-derived environmental data (e.g. Global Precipitation Measurement Mission). - -**`modisfast`** uses the abilities offered by the [OPeNDAP framework](https://www.opendap.org/about) (*Open-source Project for a Network Data Access Protocol*) to download a subset of data cube, along spatial, temporal or any other data dimension (depth, ...). This way, it reduces downloading time and disk usage to their minimum : no more 1° x 1° MODIS tiles when your region of interest is only 100 km x 100 km wide ! Moreover, modisfast supports parallelized downloads. - -`modisfast` is hence particularly suited for retrieving MODIS or VIIRS data **over long time series** and **over areas**, rather than short time series and points. - -Below is a comparison of modisfast with other packages available for downloading chunks of remote sensing data : - - -| Package | Data | Spatial subsetting* | Dimensional subsetting* -| :-------------------------------------------------- | :-------------: | :-------------: | :-------------: | -| [`modisfast`](https://github.com/ptaconet/modisfast) | MODIS, VIIRS, GPM | `r emo::ji("white heavy check mark")` | `r emo::ji("white heavy check mark")` -| [`MODIS`](https://github.com/MatMatt/MODIS) | MODIS | `r emo::ji("cross mark")` | `r emo::ji("cross mark")` -| [`MODIStsp`](https://github.com/ropensci/MODIStsp) | MODIS | `r emo::ji("cross mark")` | `r emo::ji("white heavy check mark")` -| [`MODISTools`](https://github.com/ropensci/MODISTools) | MODIS | `r emo::ji("white heavy check mark")` | `r emo::ji("white heavy check mark")` - -\* at the downloading phase +The goal of modisfast is to ... ## Installation - -The package can be installed with: +You can install the development version of modisfast from [GitHub](https://github.com/) with: ``` r # install.packages("devtools") devtools::install_github("ptaconet/modisfast") ``` -Work is ongoing to publish the package on the CRAN. - -## Get Started -Accessing and opening MODIS data with `modisfast` is a simple workflow, as shown in the example below. +## Example -First, define the variables of interest : +This is a basic example which shows you how to solve a common problem: -```{r , eval = F, message=F} -# Load the packages +```{r example} library(modisfast) -library(sf) - -# MODIS collections and variables (bands) of interest -collection <- "MOD11A1.061" # run mf_list_collections() for an exhaustive list of collections available -variables <- c("LST_Day_1km","LST_Night_1km","QC_Day","QC_Night") # run mf_list_variables("MOD11A1.061") for an exhaustive list of variables available for the collection "MOD11A1.061" - -# ROI and time range of interest -roi <- st_as_sf(data.frame(geom = "POLYGON ((-5.82 9.54, -5.42 9.55, -5.41 8.84, -5.81 8.84, -5.82 9.54))"), wkt="geom", crs = 4326) # a ROI of interest, format sf polygon -roi_id <- "korhogo" # a name for the area of interest -time_range <- as.Date(c("2017-01-01","2017-01-30")) # a time range of interest - +## basic example code ``` -Then, download the data with `modisfast`: - -```{r , eval = F, message=F} -## Login to Earthdata servers with your EOSDIS credentials. -# To create an account go to : https://urs.earthdata.nasa.gov/. -log <- mf_login(credentials = c("username","password")) - -## Get the URLs of the data -urls <- mf_get_url( - collection = collection, - variables = variables, - roi = roi, - roi_id = roi_id, - time_range = time_range - ) - -## Download the data. By default the data is downloaded in a file named 'roi/collection' -res_dl <- mf_download_data(urls) +What is special about using `README.Rmd` instead of just `README.md`? You can include R chunks like so: +```{r cars} +summary(cars) ``` -And finally, open the data in R as a `terra::SpatRaster` object : +You'll still need to render `README.Rmd` regularly, to keep `README.md` up-to-date. `devtools::build_readme()` is handy for this. -```{r , eval = F, message=F} -r <- mf_import_data( - dir_path = file.path(roi_id,collection), - collection_source = "MODIS" - ) +You can also embed plots, for example: +```{r pressure, echo = FALSE} +plot(pressure) ``` -et voilà ! - -Want more examples of use of `modisfast` ? **Have a look at the [`vignette("get_started")`](https://ptaconet.github.io/modisfast/articles/get_started.html) to get started with a simple example, and see the [`vignette("advanced_use")`](https://ptaconet.github.io/modisfast/articles/advanced_use.html) for a more advanced workflow !** - - - - - - - -## Collections available in modisfast {#coll-available} - -Currently `modisfast` supports download of `r nrow(mf_list_collections())` data collections, extracted from the following meta-collections : - -* [MODIS land products](https://lpdaac.usgs.gov/data/get-started-data/collection-overview/missions/modis-overview/) made available by the [NASA / USGS LP DAAC](https://lpdaac.usgs.gov/) (`r emo::ji("right arrow")` [source OPeNDAP server](https://opendap.cr.usgs.gov/opendap/hyrax/)) ; -* [VIIRS land products](https://lpdaac.usgs.gov/data/get-started-data/collection-overview/missions/s-npp-nasa-viirs-overview/) made available by the [NASA / USGS LP DAAC](https://lpdaac.usgs.gov/) (`r emo::ji("right arrow")` [source OPeNDAP server](https://opendap.cr.usgs.gov/opendap/hyrax/)) - -In addition, `modisfast` supports download of the following satellite-derived environmental data : - -* [Global Precipitation Measurement](https://pmm.nasa.gov/GPM) (GPM) made available by the [NASA / JAXA GES DISC](https://disc.gsfc.nasa.gov/) (`r emo::ji("right arrow")` [source OPeNDAP server](https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3)). - -Details of each product available for download are provided in the tables above or through the function `mf_list_collections()`. Want more details on a specific collection ? Click on the "DOI" column ! - -
MODIS and VIIRS data collections accessible with modisfast (click to expand) -

- -```{r, eval = TRUE, echo=F,message=F} -library(kableExtra) -mf_list_collections() %>% - dplyr::filter(source %in% c("MODIS","VIIRS")) %>% - dplyr::select(collection,long_name,source,nature,doi,url_programmatic_access) %>% - dplyr::rename(Collection=collection,Nature=nature,Name=long_name,DOI=doi,Opendap_server=url_programmatic_access,Source=source) %>% - kable() %>% - kable_styling() -``` - -

-
- -
Other (non-MODIS or VIIRS) data collections accessible with modisfast (click to expand) -

- -```{r, eval = TRUE, echo=F,message=F} -library(kableExtra) -mf_list_collections() %>% - dplyr::filter(!(source %in% c("MODIS","VIIRS"))) %>% - dplyr::select(collection,long_name,source,nature,doi,url_programmatic_access) %>% - rename(Collection=collection,Nature=nature,Name=long_name,DOI=doi,Opendap_server=url_programmatic_access,Source=source) %>% - kable() %>% - kable_styling() -``` - -

-
- -## Similar packages - -`modisfast` is particularly suited for retrieving MODIS or VIIRS data **over long time series** and **over areas**, rather than short time series and points. - -There are other R packages available for accessing MODIS data, which may be more suitable if your requirements differ. These include : - -* [`MODIS`](https://github.com/MatMatt/MODIS) -* [`MODIStsp`](https://github.com/ropensci/MODIStsp) -* [`MODIStools`](https://github.com/ropensci/MODIStools) -* [`appeears`](https://github.com/bluegreen-labs/appeears) - -## Next steps - -Next developments may involve including access to more collections from other OPeNDAP servers. - -Any contribution is welcome ! - -## Acknowledgments - -We thank NASA and its partners for making all their Earth science data freely available, and implementing open data access protocols such as OPeNDAP. `modisfast` heavily builds on top of the OPeNDAP, so we thank the non-profit [OPeNDAP, Inc.](https://www.opendap.org/about) for developing the eponym tool in an open and collaborative way. - -We also thank the contributors that have tested the package, reviewed the documentation and brought valuable feedbacks to improve the package : [Florian de Boissieu](https://github.com/floriandeboissieu), Julien Taconet, [Nicolas Moiroux](https://github.com/Nmoiroux) - -The initial development and first release of this package were financed by the [MIVEGEC](https://www.mivegec.ird.fr/en/) unit of the [French Research Institute for Sustainable Development](https://en.ird.fr/), as part of the REACT project. - -By enabling to download subsets of data cubes, `modisfast` facilites the access to Earth science data for R users in places where internet connection is slow or expensive and promotes digital sobriety for our research work. - -The OPeNDAP, over which the package builds, is a project developed by the non-profit [OPeNDAP, Inc.](https://www.opendap.org/about) and advanced openly and collaboratively. By using this data access protocol, `modisfast` support the open-source-software movement. +In that case, don't forget to commit and push the resulting figure files, so they display on GitHub and CRAN. diff --git a/README.md b/README.md index 31dbd2c..5994b63 100755 --- a/README.md +++ b/README.md @@ -3,1992 +3,50 @@ # modisfast - - -[![licence](https://img.shields.io/badge/Licence-GPL--3-blue.svg)](https://www.r-project.org/Licenses/GPL-3) -[![Travis build -status](https://travis-ci.org/ptaconet/modisfast.svg?branch=master)](https://travis-ci.org/ptaconet/modisfast) -[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/modisfast)](https://cran.r-project.org/package=modisfast) -[![Github_Status_Badge](https://img.shields.io/badge/Github-0.1.0-blue.svg)](https://github.com/ptaconet/modisfast) - - - - - - -**`modisfast`** is an R package that provides functions to **speed-up** -the **download** of time-series data products derived from -[**MODIS**](https://lpdaac.usgs.gov/data/get-started-data/collection-overview/missions/modis-overview/) -and -[**VIIRS**](https://lpdaac.usgs.gov/data/get-started-data/collection-overview/missions/s-npp-nasa-viirs-overview/) -observations, as well as other widely-used satellite-derived -environmental data (e.g. Global Precipitation Measurement Mission). - -**`modisfast`** uses the abilities offered by the [OPeNDAP -framework](https://www.opendap.org/about) (*Open-source Project for a -Network Data Access Protocol*) to download a subset of data cube, along -spatial, temporal or any other data dimension (depth, …). This way, it -reduces downloading time and disk usage to their minimum : no more 1° x -1° MODIS tiles when your region of interest is only 100 km x 100 km wide -! Moreover, modisfast supports parallelized downloads. - -`modisfast` is hence particularly suited for retrieving MODIS or VIIRS -data **over long time series** and **over areas**, rather than short -time series and points. - -Below is a comparison of modisfast with other packages available for -downloading chunks of remote sensing data : - -| Package | Data | Spatial subsetting\* | Dimensional subsetting\* | -|:-------------------------------------------------------|:-----------------:|:--------------------:|:------------------------:| -| [`modisfast`](https://github.com/ptaconet/modisfast) | MODIS, VIIRS, GPM | ✅ | ✅ | -| [`MODIS`](https://github.com/MatMatt/MODIS) | MODIS | ❌ | ❌ | -| [`MODIStsp`](https://github.com/ropensci/MODIStsp) | MODIS | ❌ | ✅ | -| [`MODISTools`](https://github.com/ropensci/MODISTools) | MODIS | ✅ | ✅ | - -\* at the downloading phase +The goal of modisfast is to … ## Installation - - -The package can be installed with: +You can install the development version of modisfast from +[GitHub](https://github.com/) with: ``` r # install.packages("devtools") devtools::install_github("ptaconet/modisfast") ``` -Work is ongoing to publish the package on the CRAN. +## Example -## Get Started - -Accessing and opening MODIS data with `modisfast` is a simple workflow, -as shown in the example below. - -First, define the variables of interest : +This is a basic example which shows you how to solve a common problem: ``` r -# Load the packages library(modisfast) -library(sf) - -# MODIS collections and variables (bands) of interest -collection <- "MOD11A1.061" # run mf_list_collections() for an exhaustive list of collections available -variables <- c("LST_Day_1km","LST_Night_1km","QC_Day","QC_Night") # run mf_list_variables("MOD11A1.061") for an exhaustive list of variables available for the collection "MOD11A1.061" - -# ROI and time range of interest -roi <- st_as_sf(data.frame(geom = "POLYGON ((-5.82 9.54, -5.42 9.55, -5.41 8.84, -5.81 8.84, -5.82 9.54))"), wkt="geom", crs = 4326) # a ROI of interest, format sf polygon -roi_id <- "korhogo" # a name for the area of interest -time_range <- as.Date(c("2017-01-01","2017-01-30")) # a time range of interest +## basic example code ``` -Then, download the data with `modisfast`: +What is special about using `README.Rmd` instead of just `README.md`? +You can include R chunks like so: ``` r -## Login to Earthdata servers with your EOSDIS credentials. -# To create an account go to : https://urs.earthdata.nasa.gov/. -log <- mf_login(credentials = c("username","password")) - -## Get the URLs of the data -urls <- mf_get_url( - collection = collection, - variables = variables, - roi = roi, - roi_id = roi_id, - time_range = time_range - ) - -## Download the data. By default the data is downloaded in a file named 'roi/collection' -res_dl <- mf_download_data(urls) -``` - -And finally, open the data in R as a `terra::SpatRaster` object : - -``` r -r <- mf_import_data( - dir_path = file.path(roi_id,collection), - collection_source = "MODIS" - ) -``` - -et voilà ! - -Want more examples of use of `modisfast` ? **Have a look at the -[`vignette("get_started")`](https://ptaconet.github.io/modisfast/articles/get_started.html) -to get started with a simple example, and see the -[`vignette("advanced_use")`](https://ptaconet.github.io/modisfast/articles/advanced_use.html) -for a more advanced workflow !** - - - - - -## Collections available in modisfast - -Currently `modisfast` supports download of 78 data collections, -extracted from the following meta-collections : - -- [MODIS land - products](https://lpdaac.usgs.gov/data/get-started-data/collection-overview/missions/modis-overview/) - made available by the [NASA / USGS LP DAAC](https://lpdaac.usgs.gov/) - (➡️ [source OPeNDAP - server](https://opendap.cr.usgs.gov/opendap/hyrax/)) ; -- [VIIRS land - products](https://lpdaac.usgs.gov/data/get-started-data/collection-overview/missions/s-npp-nasa-viirs-overview/) - made available by the [NASA / USGS LP DAAC](https://lpdaac.usgs.gov/) - (➡️ [source OPeNDAP - server](https://opendap.cr.usgs.gov/opendap/hyrax/)) - -In addition, `modisfast` supports download of the following -satellite-derived environmental data : - -- [Global Precipitation Measurement](https://pmm.nasa.gov/GPM) (GPM) - made available by the [NASA / JAXA GES - DISC](https://disc.gsfc.nasa.gov/) (➡️ [source OPeNDAP - server](https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3)). - -Details of each product available for download are provided in the -tables above or through the function `mf_list_collections()`. Want more -details on a specific collection ? Click on the “DOI” column ! - -
- -MODIS and VIIRS data collections accessible with modisfast (click to -expand) - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Collection - -Name - -Source - -Nature - -DOI - -Opendap_server -
-MCD12Q1.061 - -MODIS/Terra+Aqua Land Cover Type Yearly L3 Global 500 m SIN Grid - -MODIS - -Land cover - - - - -
-MCD15A2H.061 - -MODIS/Terra+Aqua Leaf Area Index/FPAR 8-Day L4 Global 500 m SIN Grid - -MODIS - -Leaf area index - - - - -
-MCD15A3H.061 - -MODIS/Terra+Aqua Leaf Area Index/FPAR 4-Day L4 Global 500 m SIN Grid - -MODIS - -Leaf area index - - - - -
-MCD43A1.061 - -MODIS/Terra and Aqua BRDF/Albedo Model Parameters Daily L3 Global 500 m -SIN Grid - -MODIS - -Albedo - - - - -
-MCD43A2.061 - -MODIS/Terra and Aqua BRDF/Albedo Quality Daily L3 Global 500 m SIN Grid - -MODIS - -Albedo - - - - -
-MCD43A3.061 - -MODIS/Terra and Aqua Albedo Daily L3 Global 500 m SIN Grid - -MODIS - -Albedo - - - - -
-MCD43A4.061 - -MODIS/Terra and Aqua Nadir BRDF-Adjusted Reflectance Daily L3 Global 500 -m SIN Grid - -MODIS - -Surface reflectance - - - - -
-MCD64A1.061 - -MODIS/Terra+Aqua Burned Area Monthly L3 Global 500 m SIN Grid - -MODIS - -Burned areas - - - - -
-MOD09A1.061 - -MODIS/Terra Surface Reflectance 8-Day L3 Global 500 m SIN Grid - -MODIS - -Surface reflectance - - - - -
-MOD09GA.061 - -MODIS/Terra Surface Reflectance Daily L2G Global 1 km and 500 m SIN Grid - -MODIS - -Surface reflectance - - - - -
-MOD09GQ.061 - -MODIS/Terra Surface Reflectance Daily L2G Global 250 m SIN Grid - -MODIS - -Surface reflectance - - - - -
-MOD09Q1.061 - -MODIS/Terra Surface Reflectance 8-Day L3 Global 250 m SIN Grid - -MODIS - -Surface reflectance - - - - -
-MOD11A1.061 - -MODIS/Terra Land Surface Temperature/Emissivity Daily L3 Global 1km SIN -Grid v061 - -MODIS - -Land surface temperature - - - - -
-MOD11A2.061 - -MODIS/Terra Land Surface Temperature/Emissivity 8-Day L3 Global 1 km SIN -Grid v061 - -MODIS - -Land surface temperature - - - - -
-MOD11B2.061 - -MODIS/Terra Land Surface Temperature/Emissivity 8-Day L3 Global 6 km SIN -Grid - -MODIS - -Land surface temperature - - - - -
-MOD11B3.061 - -MODIS/Terra Land Surface Temperature/Emissivity Monthly L3 Global 6 km -SIN Grid - -MODIS - -Land surface temperature - - - - -
-MOD13A1.061 - -MODIS/Terra Vegetation Indices 16-Day L3 Global 500 m SIN Grid - -MODIS - -Vegetation indices - - - - -
-MOD13A2.061 - -MODIS/Terra Vegetation Indices 16-Day L3 Global 1 km SIN Grid - -MODIS - -Vegetation indices - - - - -
-MOD13A3.061 - -MODIS/Terra Vegetation Indices Monthly L3 Global 1 km SIN Grid - -MODIS - -Vegetation indices - - - - -
-MOD13Q1.061 - -MODIS/Terra Vegetation Indices 16-Day L3 Global 250m SIN Grid v061 - -MODIS - -Vegetation indices - - - - -
-MOD15A2H.061 - -MODIS/Terra Leaf Area Index/FPAR 8-Day L4 Global 500 m SIN Grid - -MODIS - -Leaf area index - - - - -
-MOD16A2.061 - -MODIS/Terra Net Evapotranspiration 8-Day L4 Global 500m SIN Grid v061 - -MODIS - -Evapotranspiration - - - - -
-MOD16A2GF.061 - -MODIS/Terra Net Evapotranspiration Gap-Filled 8-Day L4 Global 500 m SIN -Grid - -MODIS - -Evapotranspiration - - - - -
-MOD16A3GF.061 - -MODIS/Terra Net Evapotranspiration Gap-Filled Yearly L4 Global 500 m SIN -Grid - -MODIS - -Evapotranspiration - - - - -
-MOD17A2H.061 - -MODIS/Aqua Gross Primary Productivity 8-Day L4 Global 500 m SIN Grid - -MODIS - -Primary Productivity - - - - -
-MOD17A2HGF.061 - -MODIS/Terra Gross Primary Productivity Gap-Filled 8-Day L4 Global 500 m -SIN Grid - -MODIS - -Primary Productivity - - - - -
-MOD17A3.055 - -MODIS/Terra Net Primary Production Yearly L4 Global 1 km SIN Grid - -MODIS - -Primary Productivity - - - -
-MOD17A3HGF.061 - -MODIS/Terra Net Primary Production Gap-Filled Yearly L4 Global 500 m SIN -Grid - -MODIS - -Primary Productivity - - - - -
-MODOCGA.061 - -MODIS/Terra Ocean Reflectance Daily L2G-Lite Global 1 km SIN Grid - -MODIS - -Ocean Reflectance - - - - -
-MODTBGA.061 - -MODIS/Terra Thermal Bands Daily L2G-Lite Global 1 km SIN Grid - -MODIS - -Thermal Bands - - - - -
-MYD09A1.061 - -MODIS/Aqua Surface Reflectance 8-Day L3 Global 500 m SIN Grid - -MODIS - -Surface reflectance - - - - -
-MYD09GA.061 - -MODIS/Aqua Surface Reflectance Daily L2G Global 1 km and 500 m SIN Grid - -MODIS - -Surface reflectance - - - - -
-MYD09GQ.061 - -MODIS/Aqua Surface Reflectance Daily L2G Global 250 m SIN Grid - -MODIS - -Surface reflectance - - - - -
-MYD09Q1.061 - -MODIS/Aqua Surface Reflectance 8-Day L3 Global 250 m SIN Grid - -MODIS - -Surface reflectance - - - - -
-MYD11A1.061 - -MODIS/Aqua Land Surface Temperature/Emissivity Daily L3 Global 1km SIN -Grid v061 - -MODIS - -Land surface temperature - - - - -
-MYD11A2.061 - -MODIS/Aqua Land Surface Temperature/Emissivity 8-Day L3 Global 1 km SIN -Grid v061 - -MODIS - -Land surface temperature - - - - -
-MYD11B2.061 - -MODIS/Aqua Land Surface Temperature/Emissivity 8-Day L3 Global 6 km SIN -Grid - -MODIS - -Land surface temperature - - - - -
-MYD11B3.061 - -MODIS/Aqua Land Surface Temperature/Emissivity Monthly L3 Global 6 km -SIN Grid - -MODIS - -Land surface temperature - - - - -
-MYD13A1.061 - -MODIS/Aqua Vegetation Indices 16-Day L3 Global 500 m SIN Grid - -MODIS - -Vegetation indices - - - - -
-MYD13A2.061 - -MODIS/Aqua Vegetation Indices 16-Day L3 Global 1 km SIN Grid - -MODIS - -Vegetation indices - - - - -
-MYD13A3.061 - -MODIS/Aqua Vegetation Indices Monthly L3 Global 1 km SIN Grid - -MODIS - -Vegetation indices - - - - -
-MYD13Q1.061 - -MODIS/Aqua Vegetation Indices 16-Day L3 Global 250m SIN Grid v061 - -MODIS - -Vegetation indices - - - - -
-MYD15A2H.061 - -MODIS/Aqua Leaf Area Index/FPAR 8-Day L4 Global 500 m SIN Grid - -MODIS - -Leaf area index - - - - -
-MYD16A2.061 - -MODIS/Aqua Net Evapotranspiration 8-Day L4 Global 500m SIN Grid v061 - -MODIS - -Evapotranspiration - - - - -
-MYD16A2GF.061 - -MODIS/Aqua Net Evapotranspiration Gap-Filled 8-Day L4 Global 500 m SIN -Grid - -MODIS - -Evapotranspiration - - - - -
-MYD16A3GF.061 - -MODIS/Aqua Net Evapotranspiration Gap-Filled Yearly L4 Global 500 m SIN -Grid - -MODIS - -Evapotranspiration - - - - -
-MYD17A2H.061 - -MODIS/Terra Gross Primary Productivity 8-Day L4 Global 500 m SIN Grid - -MODIS - -Primary Productivity - - - - -
-MYD17A2HGF.061 - -MODIS/Aqua Gross Primary Productivity Gap-Filled 8-Day L4 Global 500 m -SIN Grid - -MODIS - -Primary Productivity - - - - -
-MYD17A3HGF.061 - -MODIS/Aqua Net Primary Production Gap-Filled Yearly L4 Global 500 m SIN -Grid - -MODIS - -Primary Productivity - - - - -
-MYDOCGA.061 - -MODIS/Aqua Ocean Reflectance Daily L2G-Lite Global 1 km SIN Grid - -MODIS - -Ocean Reflectance - - - - -
-MYDTBGA.061 - -MODIS/Aqua Thermal Bands Daily L2G-Lite Global 1 km SIN Grid - -MODIS - -Thermal Bands - - - - -
-VNP09A1.001 - -VIIRS/NPP Surface Reflectance 8-Day L3 Global 1 km SIN Grid - -VIIRS - -Surface reflectance - - - - -
-VNP09H1.001 - -VIIRS/NPP Surface Reflectance 8-Day L3 Global 500 m SIN Grid - -VIIRS - -Surface reflectance - - - - -
-VNP13A1.001 - -VIIRS/NPP Vegetation Indices 16-Day L3 Global 500 m SIN Grid - -VIIRS - -Vegetation indices - - - - -
-VNP13A2.001 - -VIIRS/NPP Vegetation Indices 16-Day L3 Global 1 km SIN Grid - -VIIRS - -Vegetation indices - - - - -
-VNP13A3.001 - -VIIRS/NPP Vegetation Indices Monthly L3 Global 1 km SIN Grid - -VIIRS - -Vegetation indices - - - - -
-VNP14A1.001 - -VIIRS/NPP Thermal Anomalies/Fire Daily L3 Global 1 km SIN Grid - -VIIRS - -Thermal Anomalies/Fire - - - - -
-VNP15A2H.001 - -VIIRS/NPP Leaf Area Index/FPAR 8-Day L4 Global 500 m SIN Grid - -VIIRS - -Leaf area index - - - - -
-VNP21A1D.001 - -VIIRS/NPP Land Surface Temperature and Emissivity Daily L3 Global 1 km -SIN Grid Day - -VIIRS - -Land surface temperature - - - - -
-VNP21A1N.001 - -VIIRS/NPP Land Surface Temperature and Emissivity Daily L3 Global 1 km -SIN Grid Night - -VIIRS - -Land surface temperature - - - - -
-VNP21A2.001 - -VIIRS/NPP Land Surface Temperature and Emissivity 8-Day L3 Global 1 km -SIN Grid - -VIIRS - -Land surface temperature - - - - -
-VNP43IA2.001 - -VIIRS/NPP BRDF/Albedo Quality Daily L3 Global 500 m SIN Grid - -VIIRS - -Albedo - - - - -
-VNP43IA3.001 - -VIIRS/NPP Albedo Daily L3 Global 500 m SIN Grid - -VIIRS - -Albedo - - - - -
-VNP43IA4.001 - -VIIRS/NPP Nadir BRDF-Adjusted Reflectance Daily L3 Global 500 m SIN Grid - -VIIRS - -Surface reflectance - - - - -
-VNP43MA1.001 - -VIIRS/NPP BRDF/Albedo Model Parameters Daily L3 Global 1 km SIN - -VIIRS - -Albedo - - - - -
-VNP43MA2.001 - -VIIRS/NPP BRDF/Albedo Quality Daily L3 Global 1 km SIN Grid - -VIIRS - -Albedo - - - - -
-VNP43MA3.001 - -VIIRS/NPP Albedo Daily L3 Global 1 km SIN Grid - -VIIRS - -Albedo - - - - -
-VNP43MA4.001 - -VIIRS/NPP Nadir BRDF-Adjusted Reflectance Daily L3 Global 1 km SIN - -VIIRS - -Surface reflectance - - - - -
-

-
-
- -Other (non-MODIS or VIIRS) data collections accessible with modisfast -(click to expand) - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Collection - -Name - -Source - -Nature - -DOI - -Opendap_server -
-GPM_3IMERGDE.06 - -GPM IMERG Early Precipitation L3 1 day 0.1 degree x 0.1 degree V06 - -GPM - -Rainfall - - - - -
-GPM_3IMERGDF.06 - -GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 degree V06 - -GPM - -Rainfall - - - - -
-GPM_3IMERGDF.07 - -GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 degree V07 - -GPM - -Rainfall - - - - -
-GPM_3IMERGDL.06 - -GPM IMERG Late Precipitation L3 1 day 0.1 degree x 0.1 degree V06 - -GPM - -Rainfall - - - - -
-GPM_3IMERGHH.06 - -GPM IMERG Final Precipitation L3 Half Hourly 0.1 degree x 0.1 degree V06 - -GPM - -Rainfall - - - - -
-GPM_3IMERGHH.07 - -GPM IMERG Final Precipitation L3 Half Hourly 0.1 degree x 0.1 degree V07 - -GPM - -Rainfall - - - - -
-GPM_3IMERGHHE.06 - -GPM IMERG Early Precipitation L3 Half Hourly 0.1 degree x 0.1 degree V06 - -GPM - -Rainfall - - - - -
-GPM_3IMERGHHL.06 - -GPM IMERG Late Precipitation L3 Half Hourly 0.1 degree x 0.1 degree V06 - -GPM - -Rainfall - - - - -
-GPM_3IMERGM.06 - -GPM IMERG Final Precipitation L3 1 month 0.1 degree x 0.1 degree V06 - -GPM - -Rainfall - - - - -
-GPM_3IMERGM.07 - -GPM IMERG Final Precipitation L3 1 month 0.1 degree x 0.1 degree V07 - -GPM - -Rainfall - - - - -
-

-
- -## Similar packages - -`modisfast` is particularly suited for retrieving MODIS or VIIRS data -**over long time series** and **over areas**, rather than short time -series and points. - -There are other R packages available for accessing MODIS data, which may -be more suitable if your requirements differ. These include : - -- [`MODIS`](https://github.com/MatMatt/MODIS) -- [`MODIStsp`](https://github.com/ropensci/MODIStsp) -- [`MODIStools`](https://github.com/ropensci/MODIStools) -- [`appeears`](https://github.com/bluegreen-labs/appeears) - -## Next steps - -Next developments may involve including access to more collections from -other OPeNDAP servers. - -Any contribution is welcome ! - -## Acknowledgments - -We thank NASA and its partners for making all their Earth science data -freely available, and implementing open data access protocols such as -OPeNDAP. `modisfast` heavily builds on top of the OPeNDAP, so we thank -the non-profit [OPeNDAP, Inc.](https://www.opendap.org/about) for -developing the eponym tool in an open and collaborative way. -We also thank the contributors that have tested the package, reviewed -the documentation and brought valuable feedbacks to improve the package -: [Florian de Boissieu](https://github.com/floriandeboissieu), Julien -Taconet, [Nicolas Moiroux](https://github.com/Nmoiroux) +You’ll still need to render `README.Rmd` regularly, to keep `README.md` +up-to-date. `devtools::build_readme()` is handy for this. -The initial development and first release of this package were financed -by the [MIVEGEC](https://www.mivegec.ird.fr/en/) unit of the [French -Research Institute for Sustainable Development](https://en.ird.fr/), as -part of the REACT project. +You can also embed plots, for example: -By enabling to download subsets of data cubes, `modisfast` facilites the -access to Earth science data for R users in places where internet -connection is slow or expensive and promotes digital sobriety for our -research work. + -The OPeNDAP, over which the package builds, is a project developed by -the non-profit [OPeNDAP, Inc.](https://www.opendap.org/about) and -advanced openly and collaboratively. By using this data access protocol, -`modisfast` support the open-source-software movement. +In that case, don’t forget to commit and push the resulting figure +files, so they display on GitHub and CRAN. diff --git a/dev_history.R b/dev_history.R index 2742856..7b8ebcb 100755 --- a/dev_history.R +++ b/dev_history.R @@ -41,7 +41,7 @@ usethis::use_travis() ## Manual step : Commit and push ## Document functions and dependencies -attachment::att_to_description() +attachment::att_amend_desc() ## Check the package devtools::check() diff --git a/docs/LICENSE.html b/docs/LICENSE.html old mode 100644 new mode 100755 index c5a019e..955cf58 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -6,7 +6,7 @@ -GNU General Public License • opendapr +GNU General Public License • modisfast @@ -62,7 +62,7 @@ - opendapr + modisfast 0.1.0 @@ -89,7 +89,7 @@ 1. Get started
  • - 2. Advanced use of `odr_get_url()` + 2. Advanced use of `mf_get_url()`
  • @@ -97,7 +97,7 @@ @@ -97,7 +97,7 @@ @@ -97,7 +97,7 @@