elev_bands_nc: Elevation bands NetCDF file

Description Usage Arguments Value Source See Also Examples

Description

Elevation bands NetCDF file

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
elev_bands_nc(
  con_dem,
  meteo_raster,
  dz = 100,
  nbands = NULL,
  ccoords,
  file_nc = "inst/extdata/posto74_elevation_bands.nc",
  na = -9999,
  force_v4 = TRUE,
  quiet = FALSE
)

Arguments

con_dem

raster of conditioned elevation of catchment

meteo_raster

raster of meteorological field (precipitation, evapotranspiration, ...).

dz

numeric scalar, interval (m) to elevation bands. Calculates basin area distributions within 100 m elevation by default.

nbands

numeric scalar. Default: NULL (use dz to build elevation bands).

ccoords

a tibble with columns lon and lat.

file_nc

character, path to NetCDF file

na

scalar numeric, Default: -9999

force_v4

If TRUE, then the created output file will always be in netcdf-4 format (which supports more features, but cannot be read by version 3 of the netcdf library). If FALSE, then the file is created in netcdf version 3 format UNLESS the user has requested features that require version 4. Deafult is FALSE.

quiet

Hide messages (FALSE, the default), or display them.

Value

character, path to the NetCDF file.

Source

https://github.com/naddor/tofu/blob/master/input_output_settings/create_elev_bands_nc.R

See Also

Other elevation bands functions: centroids(), elev_bands()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
if (FALSE) {
  elev_bands_nc(
    con_dem = condem74,
    meteo_raster = precclim74,
    dz = 100,
    ccoords = centroids(poly74),
    file_nc = file.path(tempdir(), "elevation_bands_74.nc"),
    na = -9999
  )
}
## End(Not run)

lhmet-ped/fuse.prep documentation built on Dec. 7, 2020, 3:08 p.m.