Get depth in metric units
Usage
pixel_to_distance(
core,
pixel_ratio,
ymax,
ymin = 0,
sample_start,
sample_end,
extent = NULL
)
Arguments
- core
run_core
output. If provided fills pixel_ratio, sample_start and sample_end. Exclusive with pixel_ratio.- pixel_ratio
a source of conversion factor, manually input. Exclusive with pixel_ratio.
- ymax
pixel value of the top.
- ymin
pixel value of the bottom, default to 0.
- sample_start
position of the sample beginning (point zero), either from
run_core
output or manually input.- sample_end
position of the sample end, either from
run_core
output or manually input.- extent
a terra extent or terra SpatVector used to subset SpatRaster. Defaults to the entire SpatRaster.
See also
Other Utilities:
change_output_dir()
,
roi_to_vect()
,
spectra_position()
,
spectra_sub()