mco_get_smap: Download the NASA Soil Moisture Active Passive (SMAP) data...

View source: R/mco_get_smap.R

mco_get_smapR Documentation

Download the NASA Soil Moisture Active Passive (SMAP) data for Montana

Description

This is a wrapper for smapr::find_smap() and smapr::download_smap() that crops the resulting data to a ten kilometer buffer around the state of Montana and allows the user to specify "latest" for the desired dates, returning the most recent SMAP product.

Usage

mco_get_smap(
  id = "SPL4SMGP",
  group = "Geophysical_Data",
  name = "sm_rootzone",
  dates = "latest",
  raw_dir = NULL
)

Arguments

id

A character vector of SMAP dataset to extract.

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

group

The SMAP dataset group name to extract.

name

The SMAP dataset variable name to extract.

dates

An object of class Date or a character string formatted as %Y-%m-%d (e.g., "2016-04-01") which specifies the date(s) to search. 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. Use "latest" (the default) to retreive the most recent SMAP product.

raw_dir

A directory in which to download the raw SMAP data. If missing, data are downloaded to a temporary directory.

Value

A raster brick of the desired SMAP dataset.

Examples

## Not run: 
mco_get_smap()

## End(Not run)

mt-climate-office/mcor documentation built on March 27, 2024, 6:30 p.m.