get_merra2: Get MERRA2 files

Description Usage Arguments Value Note Examples

View source: R/get_merra2.R

Description

gfs Creates raster from GFS file. The goal is to read and or download file from ftp://nomads.ncdc.noaa.gov/GFS/analysis_only/ from 200403 to present. Inside each directory the files are other firectories for each day, for instance, 20180901.

Usage

1
get_merra2(time, dest = tempdir(), id1 = 3, id2 = 0, verbose = TRUE)

Arguments

time

Numeric or POSIXct; numer for Year, Month and Day. For instance, 2004120100 or "2004-12-01 00:00". The only hours available are 00:00, 06:00, 12:00 and 18:00,

dest

directory for storing your GFS grib data.

id1

Integer; 0, 3 or 6

id2

Integer; 3 or 4

verbose

Logical; To show operations.

Value

raster

Note

trying to get all https://goldsmr4.gesdisc.eosdis.nasa.gov/data/MERRA2/M2I1NXASM.5.12.4/2014/10/MERRA2_400.inst1_2d_asm_Nx.20141001.nc4

Examples

1
2
3
4
## Not run: 
#dont run

## End(Not run)

ibarraespinosa/ratmos documentation built on Jan. 24, 2020, 6:11 p.m.