Description Usage Arguments Value Source See Also Examples
Elevation bands NetCDF file
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
)
|
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 |
ccoords |
a tibble with columns |
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. |
character, path to the NetCDF file.
https://github.com/naddor/tofu/blob/master/input_output_settings/create_elev_bands_nc.R
Other elevation bands functions:
centroids()
,
elev_bands()
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.