openFireMIPOutputFile_MC2: Open a MC2 FireMIP output file

View source: R/Format-MC2_FireMIP.R

openFireMIPOutputFile_MC2R Documentation

Open a MC2 FireMIP output file

Description

Opens a .nc file from the MC2 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

openFireMIPOutputFile_MC2(run, quantity, sta.info, file.name, 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 matthew.forrest@senckenberg.de


MagicForrest/FireMIPTools documentation built on April 22, 2023, 4:24 a.m.