quickRun: Simple evaluation of contour-shifting

Description Usage Arguments Details Value References Examples

View source: R/importExport.R

Description

Reads in netCDF files of observations and predictions, performs bias correction, and exports a new netCDF file with bias-corrected predictions

Usage

1
2
quickRun(obsNCDF, predNCDF, predYears, startYear, month, outputFile, level,
  datTypeObs = "bootstrap", nTrainYears = NULL)

Arguments

obsNCDF

filepath for observed data array (see details for info about array structure)

predNCDF

filepath for predicted data array (see details for info about array structure)

predYears

vectors of years for which to make prediction

startYear

first year to use when learning model

month

month of prediction

outputFile

filepath for where bias-corrected netCDF file should be stored

level

concentration level for which to build contour

datTypeObs

string of either "bootstrap" or "simple" indicating the file type of the observation (see details for info about array structure)

nTrainYears

number of prior years used in training

Details

The predicted data array, predNCDF, should be a netCDF file with a single array of dimension: years x longitude (304) x latitude (448). The variable should be named iceInd. The values in the array should indicate whether each grid box is categorized to contain ice (1: ice-covered, 0: no ice, NA: land). The observed data array, obsNCDF, should be a netCDF file with a single array of dimension: years x longitude (304) x latitude (448). The observed data array, obsNCDF, can be formatted the same as predNCDF if datTypeObs = "simple". Alternatively, if datTypeObs = "bootstrap" the array values can be ice concentration valuesobtained from the National Aeronautics and Space Administration (NASA) satellites Nimbus-7 SMMR and DMSP SSM/I-SSMIS and processed by the bootstrap algorithm. Data should be retained in the same format as given by bootstrap (including indicators for missing data, land etc.). The variable should be named "conc".

Value

netCDF file of dimension years by longitude (304) by latitude (448) with indicators for where ice is predicted after bias correction. (1: ice-covered, 0: not ice, NA: land). Grid boxes have been categorized as ice if their centers are ice covered (within R the bias-corrected contours are not restricted to align to a grid).

References

Bootstrap sea ice concentration: Comiso, J., 2017: Bootstrap sea ice concentrations from Nimbus-7 SMMR and DMSP SSM/I-SSMIS. version 3. Boulder, Colorado USA: NASA National Snow and Ice Data Center Distributed Active Archive Center

Examples

1
2
3
4
5
6
## Not run: 
quickRun(obsNCDF = "/obs.nc", predNCDF = "/pred.nc",
         predYears = c(2001:2013), startYear = 1980, month = 2,
         outputFile = "/outputFile.nc", level = 15, datTypeObs = "simple")

## End(Not run)

hdirector/IceCastV2 documentation built on Dec. 9, 2018, 12:27 a.m.