loadSims: Loads and pre-processes EverForecast simulations

View source: R/loadSims.R

loadSimsR Documentation

Loads and pre-processes EverForecast simulations

Description

Loads netCDF files and converts units from cm depth to feet NGVD29. highly recommended to set raster options as in the example section. Note: it is highly recommended that users change terra options to write temp files to disk rather than work in memory. See Examples section below.

Usage

loadSims(directory = file.choose())

Arguments

directory

the address of an individual file in a folder of EverForecast .nc files. The default action is <code>file.choose()</code>; a browser menu appears so the user can select the the desired directory by identifying a single .nc file in the folder of netCDFs.

Value

A SpatRaster object with units feet NGVD29

Examples


## Not run: 
### recommended raster options to save to disk rather than work in 
### memory. My settings:
# terraOptions(memfrac=0.7, memmax = 2,
#   tmpdir = "G:/data/raster/temp/delete", 
#   todisk = TRUE,
#   progress = 1)

# select a .nc in the folder you want to load
# efcDat <- loadSims(directory = file.choose()) 

 
## End(Not run)
 

troyhill/EvergladesEBM documentation built on Nov. 19, 2023, 8:39 a.m.