modisfast

licence CRAN_Status_Badge Github_Status_Badge SWH R-CMD-check

modisfast (formerly opendapr) is an R package that provides functions to speed-up the download of time-series raster data products derived from some MODIS and VIIRS 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 (Open-source Project for a Network Data Access Protocol) to download a subset of Earth science 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 with 10 bands when your region of interest is only 30 km x 30 km wide and you need 2 bands ! Moreover, modisfast enables parallel downloads of data.

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 Temporal subsetting* Spatial subsetting* Dimensional subsetting* Speed
modisfast MODIS, VIIRS, GPM :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
MODIS MODIS :white_check_mark: :x: :x: :white_check_mark:
MODIStsp MODIS :white_check_mark: :x: :white_check_mark: :white_check_mark:
MODISTools MODIS and VIIRS (but not all collections) :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
appeears MODIS, VIIRS, and many others :white_check_mark: :white_check_mark: :white_check_mark: :x:

* at the downloading phase

Installation

The package can be installed with:

if(!require(devtools)){install.packages("devtools")}
devtools::install_github("ptaconet/modisfast")
library(modisfast)

Get Started

Accessing and opening MODIS data with modisfast is a simple 3-steps workflow, as shown in the example below.

1/ First, define the variables of interest (ROI, time frame, collection, and bands) :

# Load the packages
library(modisfast)
library(sf)
library(terra)

# ROI and time range of interest
roi <- st_as_sf(data.frame(id = "roi_id", 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
time_range <- as.Date(c("2017-01-01","2017-06-01"))  # a time range of interest

# MODIS collections and variables (bands) of interest
collection <- "MOD11A2.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("MOD11A2.061") for an exhaustive list of variables available for the collection "MOD11A1.062"

2/ Then, get the URL of the data and download them :

## Login to Earthdata servers with your EOSDIS credentials. 
# To create an account (free) go to : https://urs.earthdata.nasa.gov/.
log <- mf_login(credentials = c("username","password"))  # set your own EOSDIS username and password

## Get the URLs of the data 
urls <- mf_get_url(
  collection = collection,
  variables = variables,
  roi = roi,
  time_range = time_range
 )

## Download the data. By default the data is downloaded in a temporary directory, but you can specify a folder
res_dl <- mf_download_data(urls, parallel = T)

3/ And finally, open the data in R as a terra::SpatRaster object using the function mf_import_data() (:warning: see here why you should use this function, instead of the original terra::rast(), in the context of modisfast) :

r <- mf_import_data(
  path = dirname(res_dl$destfile[1]),
  collection = collection, 
  proj_epsg = 4326
  )

terra::plot(r)

et voilà !

Want more examples of use of modisfast ? Have a look at the vignette("get_started") to get started with a simple example, and see the vignette("modisfast2") for a more advanced workflow !

Collections available in modisfast

Currently modisfast supports download of 77 data collections, extracted from the following meta-collections :

In addition, modisfast supports download of the following satellite-derived environmental data :

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

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 https://doi.org/10.5067/GPM/IMERGDE/DAY/06 https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGDE.06/
GPM_3IMERGDF.06 GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 degree V06 GPM Rainfall https://doi.org/10.5067/GPM/IMERGDF/DAY/06 https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGDF.06/
GPM_3IMERGDF.07 GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 degree V07 GPM Rainfall https://doi.org/10.5067/GPM/IMERGDF/DAY/07 https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGDF.07/
GPM_3IMERGDL.06 GPM IMERG Late Precipitation L3 1 day 0.1 degree x 0.1 degree V06 GPM Rainfall https://doi.org/10.5067/GPM/IMERGDL/DAY/06 https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGDL.06/
GPM_3IMERGHH.06 GPM IMERG Final Precipitation L3 Half Hourly 0.1 degree x 0.1 degree V06 GPM Rainfall https://doi.org/10.5067/GPM/IMERG/3B-HH/06 https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGHH.06/
GPM_3IMERGHH.07 GPM IMERG Final Precipitation L3 Half Hourly 0.1 degree x 0.1 degree V07 GPM Rainfall https://doi.org/10.5067/GPM/IMERG/3B-HH/07 https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGHH.07/
GPM_3IMERGHHE.06 GPM IMERG Early Precipitation L3 Half Hourly 0.1 degree x 0.1 degree V06 GPM Rainfall https://doi.org/10.5067/GPM/IMERG/3B-HH-E/06 https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGHHE.06/
GPM_3IMERGHHL.06 GPM IMERG Late Precipitation L3 Half Hourly 0.1 degree x 0.1 degree V06 GPM Rainfall https://doi.org/10.5067/GPM/IMERG/3B-HH-L/06 https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGHHL.06/
GPM_3IMERGM.06 GPM IMERG Final Precipitation L3 1 month 0.1 degree x 0.1 degree V06 GPM Rainfall https://doi.org/10.5067/GPM/IMERG/3B-MONTH/06 https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGM.06/
GPM_3IMERGM.07 GPM IMERG Final Precipitation L3 1 month 0.1 degree x 0.1 degree V07 GPM Rainfall https://doi.org/10.5067/GPM/IMERG/3B-MONTH/07 https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGM.07/

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 :

Next steps

Next developments may involve including access to more collections from other OPeNDAP servers, and submitting the package to the CRAN and the rOpenSci archives.

Any contribution is welcome !

License and citation

This package is licensed under a GNU General Public License v3.0 or later license.

We thank in advance people that use modisfast for citing it in their work / publication(s). For this, please use the following citation :

Paul Taconet, Nicolas Moiroux. ‘modisfast’ : fast and efficient access to MODIS data with R. 2024, ⟨swh:1:dir:21b5ddcecb39e683c9f2fc5c135f23dc1b36fe28;origin=https://github.com/ptaconet/modisfast;visit=swh:1:snp:4064f0aae2b29808e9cbd096afaa495fd1360f78;anchor=swh:1:rev:9e5b2a456a0e1acd8ab34e6909424ae6c403150d⟩. ⟨hal-04603903⟩

Under the woods… how does modisfast work ?

modisfast is an R wrapper for OPeNDAP (Open-source Project for a Network Data Access Protocol). When utilized by data providers, such as those managing many NASA datasets, OPeNDAP allows for subsetting portions of Earth observation cubes based on any dimension by specifying filters in a URL. modisfast facilitates this process by constructing the URL based on the spatial, temporal, and dimensional filters provided by the user in the function mf_get_url().

Let’s take an example to understand.

The following URL :arrow_down:

https://opendap.cr.usgs.gov/opendap/hyrax/MOD11A2.061/h17v08.ncml.nc4?MODIS_Grid_8Day_1km_LST_eos_cf_projection,LST_Day_1km[775:793][55:140][512:560],LST_Night_1km[775:793][55:140][512:560],QC_Day[775:793][55:140][512:560],QC_Night[775:793][55:140][512:560],time[775:793],YDim[55:140],XDim[512:560]

provides a link to download the MOD11A2.061 data in netCDF, subsetted for :

The indices within the [] refer to values encoding for the spatial and temporal filters.

These OPeNDAP URLs are not trivial to build. modisfast converts the spatial, temporal and dimensional filters (R objects) provided by the user through the function mf_get_url() into the appropriate OPeNDAP URL(s). Subsequently, the function mf_download_data() allows for downloading the data using the httr and parallel packages.

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. 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, Julien Taconet, Nicolas Moiroux

The initial development and first release of this package were financed by the MIVEGEC unit of the French Research Institute for Sustainable Development, 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. and advanced openly and collaboratively. By using this data access protocol, modisfast support the open-source-software movement.