MODISSnow: Download MODIS snow cover data (version 6) from the National...

Description Usage Arguments Details Value References Examples

Description

download_data is the main function to download a scene given the correct tile, date and satellite.

get_tile is a helper function that actually downloads a tile. Supplied with a correct ftp address and tile the function downloads the MODIS tile, and transforms the coordinate reference system to latlong (EPSG:4326).

Usage

1
2
3
4
download_data(date, sat = "MYD10A1", h = 10, v = 10, printFTP = FALSE,
  ...)

get_tile(ftp, tile, progress = FALSE, clean = TRUE)

Arguments

date

Day for which snow data should be downloaded as Date, POSIXct, or POSIXlt.

sat

Satellite mission used. Currently Terra ("MYD10A1") and Aqua ("MOD10A1") are supported.

h

Horizontal tile number, see also details.

v

Vertical tile number, see also details.

printFTP

If TRUE, the FTP address where the data are downloaded is printed.

...

Further arguments passed to get_tile().

ftp

Address of the repository.

tile

Name of the tile.

progress

Indicates whether or not progress is displayed.

clean

Indidcates whether or not temporary files are deleted.

Details

When downloading the data, the correct tile has to be specified. At the moment there is no automated way to find the tile. This means that the user has to consult the MODIS land grid to find the correct tile. Alternatively the MODIS tile calculator may be used.

Value

The function returns an object of the class RasterLayer with the following cell values:

but see also the documentation for the NDSI_SNOW_COVER here.

References

When using the MODIS snow cover data, please acknowledge the data appropriately by

  1. reading the use and copyright

  2. citing the original data: Hall, D. K. and G. A. Riggs. 2016. MODIS/[Terra/Aqua] Snow Cover Daily L3 Global 500m Grid, Version 6. [Indicate subset used]. Boulder, Colorado USA. NASA National Snow and Ice Data Center Distributed Active Archive Center. doi: http://dx.doi.org/10.5067/MODIS/MOD10A1.006. [Date Accessed].

Examples

1
2
3
4
5
6
7
## Not run: 
# Download MODIS snow data for a central europe h = 18 and v = 5 for the 1 of January 2016
dat <- download_data(lubridate::ymd("2016-01-01"), h = 18, v = 5)
class(dat)
raster::plot(dat)

## End(Not run)

MODISSnow documentation built on May 1, 2019, 8 p.m.