revrt.utilities.base#

Base reVRt utilities

Module attributes

TRANSFORM_ATOL

Tolerance in transform comparison when checking GeoTIFFs

Functions

buffer_routes(routes[, row_widths, ...])

Buffer routes by specified row widths or row width ranges

check_geotiff(layer_file_fp, geotiff[, ...])

Compare GeoTIFF with exclusion layer and raise errors if mismatch

delete_data_file(fp)

Delete data file (can be Zarr, which is a directory)

elapsed_time_as_str(seconds_elapsed)

Format elapsed time into human readable string

expand_dim_if_needed(values)

Expand data array dimensions if needed to ensure 3D (band, y, x)

file_full_path(file_name, *layer_dirs)

Get full path to file, searching layer_dirs if needed

load_data_using_layer_file_profile(layer_fp, ...)

Load GeoTIFF data, reprojecting to LayeredFile CRS if needed

log_mem([log_level])

Log the memory usage to the input logger object

save_data_using_custom_props(data, geotiff, ...)

Write to GeoTIFF file

save_data_using_layer_file_profile(layer_fp, ...)

Write to GeoTIFF file