get_npp_vgpm | R Documentation |
get_npp_vgpm() is used for automatically downloadiing, decompressing and renaming ocean net primary production data of VGPM model by custom grid size, time span and satellite.
get_npp_vgpm(
file.path,
grid.size = "low",
time.span = "monthly",
file.format = "hdf",
satellite = "MODIS",
mindate,
maxdate
)
file.path |
The folder(an empty folder) path where your want to save your file (avoid Chinese characters). |
grid.size |
The grid size that you choose. There are two grid sizes can be choosed: 'low'(default): 2160x1080, 'high': 2160x4320. |
time.span |
The time span of npp data. There are two time spans: 'monthly' represent monthly npp data. 'dayly' represent 8 days data. |
file.format |
For VGPM model, there are two file formats can be choosed, 'xyz' and 'hdf'. For CBPM and CAFE, only 'hdf' format can be choosed. |
satellite |
Choose satellites, 'MODIS', 'VIIRS', and 'SeaWiFS'. The default is 'MODIS'. |
mindate |
The minimum date of data you want to download. |
maxdate |
The maximum date of data you want to download. |
download some files in your folder.
units: mg C m^-2 d^-1
Chao Xu
## Not run:
library(nppr)
library(RCurl)
library(XML)
library(R.utils)
library(tidyverse)
library(lubridate)
get_npp_vgpm(file.path = 'C:\\Users\\xucha\\Desktop\\DATA',
mindate = '2016-02-04', maxdate ='2016-06-28')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.