get_par: get_par

View source: R/get_par.R

get_parR Documentation

get_par

Description

get_par() is used for automatically downloadiing, decompressing and renaming sea photosynthetically available radiation data by custom grid size, time span and satellite.

Usage

get_par(
  file.path,
  grid.size = "low",
  time.span = "monthly",
  satellite = "MODIS",
  mindate,
  maxdate
)

Arguments

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 two time spans: 'monthly' represent monthly npp data. 'dayly' represent 8 days data.

satellite

Choose satellites, 'MODIS' and 'VIIRS'. The default is 'MODIS'.

mindate

The minimum date of data you want to download.

maxdate

The maximum date of data you want to download.

Value

download some files in your folder.

Note

units: Einstein m^-2 day^-1

Author(s)

Chao Xu

Examples

## Not run: 
library(nppr)
library(RCurl)
library(XML)
library(R.utils)
library(tidyverse)
library(lubridate)
get_chla(file.path = 'C:\\Users\\xucha\\Desktop\\DATA',
        mindate = '2016-02-04', maxdate ='2016-06-28')

## End(Not run)

chaoxv/nppr documentation built on Jan. 29, 2024, 1:37 p.m.