Package smapr. October 20, 2017

Similar documents
Package datasets.load

Package ECctmc. May 1, 2018

Package fastdummies. January 8, 2018

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package validara. October 19, 2017

Package fitbitscraper

Package SEMrushR. November 3, 2018

Package robotstxt. November 12, 2017

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package RWildbook. April 6, 2018

Package dkanr. July 12, 2018

Package calpassapi. August 25, 2018

Package virustotal. May 1, 2017

Package postgistools

Package httpcache. October 17, 2017

Package kirby21.base

Package internetarchive

Package censusapi. August 19, 2018

Package githubinstall

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package barcoder. October 26, 2018

Package gtrendsr. August 4, 2018

Package editdata. October 7, 2017

Package comparedf. February 11, 2019

Package labelvector. July 28, 2018

Package bikedata. April 27, 2018

Package jstree. October 24, 2017

Package nngeo. September 29, 2018

Package goodpractice

Package rnrfa. April 13, 2018

Package loggit. April 9, 2018

Package canvasxpress

Package gtrendsr. October 19, 2017

Package shinyfeedback

Package rnaturalearth

Package bisect. April 16, 2018

Package rzeit2. January 7, 2019

Package gifti. February 1, 2018

Package profvis. R topics documented:

Package deductive. June 2, 2017

Package lumberjack. R topics documented: July 20, 2018

Package rgho. R topics documented: January 18, 2017

Package essurvey. August 23, 2018

Package ecoseries. R topics documented: September 27, 2017

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package opencage. January 16, 2018

Package bigqueryr. October 23, 2017

Package io. January 15, 2018

Package AdhereR. June 15, 2018

Package clipr. June 23, 2018

Package GetHFData. November 28, 2017

Package edfreader. R topics documented: May 21, 2017

Package GetITRData. October 22, 2017

Package mdftracks. February 6, 2017

Package rwars. January 14, 2017

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package WordR. September 7, 2017

Package RODBCext. July 31, 2017

Package strat. November 23, 2016

Package vinereg. August 10, 2018

Package geniusr. December 6, 2017

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package crossword.r. January 19, 2018

Package pdfsearch. July 10, 2018

Package estprod. May 2, 2018

Package raker. October 10, 2017

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package catenary. May 4, 2018

Package texpreview. August 15, 2018

Package redlistr. May 11, 2018

Package rbgm. May 18, 2018

Package repec. August 31, 2018

Package splithalf. March 17, 2018

Package ezsummary. August 29, 2016

Package qualmap. R topics documented: September 12, Type Package

Package climber. R topics documented:

Package knitrprogressbar

Package tiler. June 9, 2018

Package data.world. April 5, 2018

Package spark. July 21, 2017

Package liftr. R topics documented: May 14, Type Package

Package condusco. November 8, 2017

Package darksky. September 20, 2017

Package gfcanalysis. August 29, 2016

Package jpmesh. December 4, 2017

Package rollply. R topics documented: August 29, Title Moving-Window Add-on for 'plyr' Version 0.5.0

Package effectr. January 17, 2018

Package quickreg. R topics documented:

Package spelling. December 18, 2017

Package IATScore. January 10, 2018

Package eply. April 6, 2018

Package dbx. July 5, 2018

Package rpostgislt. March 2, 2018

Package fastqcr. April 11, 2017

Package slickr. March 6, 2018

Package IsoCorrectoR. R topics documented:

Package phrasemachine

Package tidyselect. October 11, 2018

Package gcite. R topics documented: February 2, Type Package Title Google Citation Parser Version Date Author John Muschelli

Package readobj. November 2, 2017

Transcription:

Type Package Package smapr October 20, 2017 Title Acquisition and Processing of NASA Soil Moisture Active-Passive (SMAP) Data Version 0.1.1 Depends R (>= 3.2.5) Imports httr (>= 1.1.0), rappdirs (>= 0.3.1), raster (>= 2.5), rhdf5 (>= 2.14), rvest, xml2 Maintainer Maxwell Joseph <maxwell.b.joseph@colorado.edu> Facilitates programmatic access to NASA Soil Moisture Active Passive (SMAP) data with R. It includes functions to search for, acquire, and extract SMAP data. License GPL-2 LazyData TRUE RoxygenNote 6.0.1 Suggests knitr, rastervis, rgdal, rmarkdown, testthat, utils NeedsCompilation no Author Maxwell Joseph [aut, cre], Matthew Oakley [aut], Zachary Schira [aut] Repository CRAN Date/Publication 2017-10-20 21:40:13 UTC R topics documented: smapr-package....................................... 2 download_smap....................................... 2 extract_smap........................................ 3 find_smap.......................................... 4 list_smap.......................................... 5 Index 6 1

2 download_smap smapr-package smapr: A package for acquisition and processing of NASA SMAP data. The smapr package provides a means to programatically search for and acquire NASA Soil Moisture Active Passive (SMAP) data. Author(s) Max Joseph <maxwell.b.joseph@colorado.edu> download_smap Download SMAP data This function downloads SMAP data in hdf5 format. download_smap(files, directory = NULL, overwrite = TRUE) files directory overwrite A data.frame produced by find_smap() that specifies data files to download. A local directory path in which to save data, specified as a character string. If left as NULL, data are stored in a user s cache directory. TRUE or FALSE: should existing data files be overwritten? Details This function requires a username and password from NASA s Earthdata portal. If you have a username and password, pass them in as environment vars using: Sys.setenv(ed_un = '<your username>', ed_pw = '<your password>') If you do not yet have a username and password, register for one here: https://urs.earthdata. nasa.gov/ Returns a data.frame that appends a column called local_dir to the input data frame, which consists of a character vector specifying the local directory containing the downloaded files.

extract_smap 3 files <- find_smap(id = "SPL4SMGP", dates = "2015-03-31", version = 3) # files[1, ] refers to the first available data file downloads <- download_smap(files[1, ]) extract_smap Extracts contents of SMAP data Extracts datasets from SMAP data files. extract_smap(data, name, in_memory = FALSE) data name in_memory A data frame produced by download_smap() that specifies input files from which to extract data. The path in the HDF5 file pointing to data to extract. Logical. Should the result be stored in memory? If not, then raster objects are stored on disk in the cache directory. By default the result is stored on disk. Details The arguments group and dataset must refer specifically the group and name within group for the input file, such as can be obtained with list_smap(). This function will extract that particular dataset, returning a Raster object. Returns a RasterStack object. files <- find_smap(id = "SPL4SMGP", dates = "2015-03-31", version = 3) downloads <- download_smap(files[1, ]) sm_raster <- extract_smap(downloads, name = '/Geophysical_Data/sm_surface')

4 find_smap find_smap Find SMAP data This function searches for SMAP data on a specific date, returning a data.frame describing available data. find_smap(id, dates, version) id dates version A character string that refers to a specific SMAP dataset, e.g., "SPL4SMGP" for SMAP L4 Global 3-hourly 9 km Surface and Rootzone Soil Moisture Geophysical Data. An object of class Date or a character string formatted as To search for one specific date, this can be a Date object of length one. To search over a time interval, it can be a multi-element object of class Date such as produced by seq.date. Which data version would you like to search for? Version information for each data product can be found at https://nsidc.org/data/smap/data_versions Details There are many SMAP data products that can be accessed with this function. Currently, smapr supports level 3 and level 4 data products, each of which has an associated Data Set ID which is specified by the id argument, described at https://nsidc.org/data/smap/smap-data.html and summarized below: SPL3FTA Radar Northern Hemisphere Daily Freeze/Thaw State SPL3SMA Radar Global Daily Soil Moisture SPL3SMP Radiometer Global Soil Moisture SPL3SMAP Radar/Radiometer Global Soil Moisture SPL4SMAU Surface/Rootzone Soil Moisture Analysis Update SPL4SMGP Surface/Rootzone Soil Moisture Geophysical Data SPL4SMLM Surface/Rootzone Soil Moisture Land Model Constants SPL4CMDL Carbon Net Ecosystem Exchange This function requires a username and password from NASA s Earthdata portal. If you have a username and password, pass them in as environment vars using: Sys.setenv(ed_un = '<your username>', ed_pw = '<your password>') If you do not yet have a username and password, register for one here: https://urs.earthdata. nasa.gov/

list_smap 5 A data.frame with the names of the data files, the remote directory, and the date. # looking for data on one day: find_smap(id = "SPL4SMGP", dates = "2015-03-31", version = 3) # searching across a date range start_date <- as.date("2015-03-31") end_date <- as.date("2015-04-02") date_sequence <- seq(start_date, end_date, by = 1) find_smap(id = "SPL4SMGP", dates = date_sequence, version = 3) list_smap Lists the contents of SMAP data files This function returns a list of the contents of SMAP data files. list_smap(files, all = FALSE) files all A data.frame produced by download_smap() that specifies input data files. If TRUE a longer, more detailed list of information on each entry is provided. Returns a list of data.frame objects that list the contents of each data file in files. files <- find_smap(id = "SPL4SMGP", dates = "2015-03-31", version = 3) files <- download_smap(files[1, ]) list_smap(files) list_smap(files, all = TRUE)

Index Topic package smapr-package, 2 download_smap, 2 extract_smap, 3 find_smap, 4 list_smap, 5 smapr-package, 2 6