11smapr
22================
33
4- [ ![ codecov] ( https://codecov.io/gh/ropensci/smapr/branch/master/graph/badge.svg )] ( https://codecov.io/gh/ropensci/smapr )
5- [ ![ CRAN_Status_Badge] ( http ://www.r-pkg.org/badges/version/smapr)] ( https://cran.r-project.org/package=smapr )
6- [ ![ lifecycle] ( https://img.shields.io/badge/lifecycle-maturing-blue.svg )] ( https://www.tidyverse .org/lifecycle/#maturing )
7- [ ![ ] ( http ://cranlogs.r-pkg.org/badges/grand-total/smapr)] ( http ://cran.rstudio.com/web/packages/ smapr/index.html )
8- [ ![ ] ( https://badges.ropensci.org/231_status.svg )] ( https://github.com/ropensci/onboarding /issues/231 )
4+ [ ![ codecov] ( https://app. codecov.io/gh/ropensci/smapr/branch/master/graph/badge.svg )] ( https://app. codecov.io/gh/ropensci/smapr )
5+ [ ![ CRAN_Status_Badge] ( https ://www.r-pkg.org/badges/version/smapr)] ( https://cran.r-project.org/package=smapr )
6+ [ ![ lifecycle] ( https://img.shields.io/badge/lifecycle-maturing-blue.svg )] ( https://lifecycle.r-lib .org/articles/stages.html )
7+ [ ![ ] ( https ://cranlogs.r-pkg.org/badges/grand-total/smapr)] ( https ://cran.r-project.org/package= smapr)
8+ [ ![ ] ( https://badges.ropensci.org/231_status.svg )] ( https://github.com/ropensci/software-review /issues/231 )
99[ ![ Project Status: Active – The project has reached a stable, usable
1010state and is being actively
11- developed.] ( http ://www.repostatus.org/badges/latest/active.svg)] ( http ://www.repostatus.org/#active)
11+ developed.] ( https ://www.repostatus.org/badges/latest/active.svg)] ( https ://www.repostatus.org/#active)
1212
1313An R package for acquisition and processing of [ NASA (Soil Moisture
14- Active-Passive) SMAP data] ( http ://smap.jpl.nasa.gov/)
14+ Active-Passive) SMAP data] ( https ://smap.jpl.nasa.gov/)
1515
1616## Installation
1717
@@ -91,19 +91,19 @@ including surface soil moisture, root zone soil moisture, freeze/thaw
9191status, surface temperature, vegetation water content, vegetation
9292opacity, net ecosystem carbon exchange, soil temperature, and
9393evapotranspiration. NSIDC provides documentation for all SMAP data
94- products on their [ website] ( https://nsidc.org/data/smap/smap- data.html ) ,
94+ products on their [ website] ( https://nsidc.org/data/smap/data ) ,
9595and we provide a summary of data products supported by smapr below.
9696
97- | Dataset id | Description | Resolution |
98- | ------------| ----------------------------------------------------- | ------------|
99- | SPL2SMAP_S | SMAP/Sentinel-1 Radiometer/Radar Soil Moisture | 3 km |
100- | SPL3FTA | Radar Northern Hemisphere Daily Freeze/Thaw State | 3 km |
101- | SPL3SMA | Radar Global Daily Soil Moisture | 3 km |
102- | SPL3SMP | Radiometer Global Soil Moisture | 36 km |
103- | SPL3SMAP | Radar/Radiometer Global Soil Moisture | 9 km |
104- | SPL4SMAU | Surface/Rootzone Soil Moisture Analysis Update | 9 km |
105- | SPL4SMGP | Surface/Rootzone Soil Moisture Geophysical Data | 9 km |
106- | SPL4CMDL | Carbon Net Ecosystem Exchange | 9 km |
97+ | Dataset id | Description | Resolution |
98+ | ------------| ---------------------------------------------------| ------------|
99+ | SPL2SMAP_S | SMAP/Sentinel-1 Radiometer/Radar Soil Moisture | 3 km |
100+ | SPL3FTA | Radar Northern Hemisphere Daily Freeze/Thaw State | 3 km |
101+ | SPL3SMA | Radar Global Daily Soil Moisture | 3 km |
102+ | SPL3SMP | Radiometer Global Soil Moisture | 36 km |
103+ | SPL3SMAP | Radar/Radiometer Global Soil Moisture | 9 km |
104+ | SPL4SMAU | Surface/Rootzone Soil Moisture Analysis Update | 9 km |
105+ | SPL4SMGP | Surface/Rootzone Soil Moisture Geophysical Data | 9 km |
106+ | SPL4CMDL | Carbon Net Ecosystem Exchange | 9 km |
107107
108108## Typical workflow
109109
@@ -124,18 +124,18 @@ returns a data frame of available data. As data mature and pass checks,
124124versions advance. At any specific time, not all versions of all datasets
125125for all dates may exist. For the most up to date overview of dataset
126126versions, see the NSIDC SMAP data version
127- [ webpage] ( https://nsidc.org/data/smap/smap-data.html ) .
127+ [ webpage] ( https://nsidc.org/data/smap/version-history ) .
128128
129129``` r
130130library(smapr )
131131library(terra )
132- # > terra 1.7.18
132+ # > terra 1.8.86
133133available_data <- find_smap(id = " SPL3SMAP" , date = " 2015-05-25" , version = 3 )
134134str(available_data )
135135# > 'data.frame': 1 obs. of 3 variables:
136136# > $ name: chr "SMAP_L3_SM_AP_20150525_R13080_001"
137137# > $ date: Date, format: "2015-05-25"
138- # > $ dir : chr "SPL3SMAP. 003/2015.05. 25/"
138+ # > $ dir : chr "SPL3SMAP/ 003/2015/05/ 25/"
139139```
140140
141141### Downloading and inspecting SMAP data
@@ -146,14 +146,14 @@ an argument, the data are stored in the user’s cache.
146146
147147``` r
148148downloads <- download_smap(available_data )
149- # > Downloading https://n5eil01u.ecs. nsidc.org/ SMAP/SPL3SMAP. 003/2015.05. 25/SMAP_L3_SM_AP_20150525_R13080_001.h5
150- # > Downloading https://n5eil01u.ecs. nsidc.org/ SMAP/SPL3SMAP. 003/2015.05. 25/SMAP_L3_SM_AP_20150525_R13080_001.qa
151- # > Downloading https://n5eil01u.ecs. nsidc.org/ SMAP/SPL3SMAP. 003/2015.05. 25/SMAP_L3_SM_AP_20150525_R13080_001.h5.iso.xml
149+ # > Downloading https://data. nsidc.earthdatacloud.nasa.gov/nsidc-cumulus-prod-protected/ SMAP/SPL3SMAP/ 003/2015/05/ 25/SMAP_L3_SM_AP_20150525_R13080_001.h5
150+ # > Downloading https://data. nsidc.earthdatacloud.nasa.gov/nsidc-cumulus-prod-protected/ SMAP/SPL3SMAP/ 003/2015/05/ 25/SMAP_L3_SM_AP_20150525_R13080_001.qa
151+ # > Downloading https://data. nsidc.earthdatacloud.nasa.gov/nsidc-cumulus-prod-protected/ SMAP/SPL3SMAP/ 003/2015/05/ 25/SMAP_L3_SM_AP_20150525_R13080_001.h5.iso.xml
152152str(downloads )
153153# > 'data.frame': 1 obs. of 4 variables:
154154# > $ name : chr "SMAP_L3_SM_AP_20150525_R13080_001"
155155# > $ date : Date, format: "2015-05-25"
156- # > $ dir : chr "SPL3SMAP. 003/2015.05. 25/"
156+ # > $ dir : chr "SPL3SMAP/ 003/2015/05/ 25/"
157157# > $ local_dir: chr "~/.cache/smap"
158158```
159159
0 commit comments