I/O utilities#

swectral.search_file(directory_path, ...[, ...])

Search and list file paths in a directory.

swectral.envi_roi_coords(roi_xml_path)

Get vertex coordinates of (multi-)polygon ROIs from ENVI ROI xml file.

swectral.shp_roi_coords(roi_shp_path)

Get vertex coordinates of (multi-)polygon ROIs from shapefile.

swectral.roi_to_envi(file_path[, name, ...])

Write one or more polygon Regions of Interest (ROIs) to an ENVI XML ROI file.

swectral.roi_to_shp(file_path, crs[, name, ...])

Write one or more polygon Regions of Interest (ROIs) to a Shapefile.

swectral.raster_rgb_preview(raster_path, ...)

Display a raster image in RGB plot with optional ROI frames.