openFireMIPOutputFile_LPJ_GUESS_SPITFIRE: Open a LPJ_GUESS_SPITFIRE FireMIP output file

Description Usage Arguments Value Author(s)

View source: R/Format-LPJ-GUESS-SPITFIRE_FireMIP.R

Description

Opens a .nc file from the LPJ_GUESS_SPITFIRE FireMIP output and sorts out the meta-data and dimensions and all that messy stuff. Returns a data.table, because it is intended to be called by getField(), but of course the data.table could be used directly if you wish

Usage

1
2
openFireMIPOutputFile_LPJ_GUESS_SPITFIRE(run, quantity, sta.info,
  verbose = TRUE)

Arguments

run

A Source object to define the run we want to open.

quantity

A Quantity object to define which variable we want to look up

verbose

Logical, if TRUE spew forth a lot of info.

first.year

The first year we want to read (numeric)

last.year

The last year we want to read (numeric)

spatial.extent

The spatial extent we want to read (as defined by as raster::extent or an object that can be cast to a raster::extent)

Value

A list containaing a data.table and an STAInfo object

Author(s)

Matthew Forrest [email protected]


MagicForrest/FireMIPTools documentation built on Nov. 9, 2018, 1:22 p.m.