Releases: tnigon/hs_process
Releases · tnigon/hs_process
v0.0.4
Release: 0.0.4
Date: 2021 April 16
Description: Fixes to the batch.spatial_crop function
- Added
gdf_shft_e_mandgdf_shft_n_mtospatial_mod.crop_singlefunction. This adds flexibility for shifting a crop plot in some direction so it is better centered within thegdfplot boundary. - Changed column name requirement from "plot" to "plot_id" to indicate plot ID in
gdf(relevant forspatial_mod.crop_singleandspatial_mod.crop_many_gdffunctions). - When cropping by
gdfbounds inspatial_mod, ifgdfbounds are outside image extent, the cropped image had an extra "buffer" equal to the length between thegdfbound and corresponding extent of the image. The new behavior is such that the image is croped at the edge of the image and geogransform is shifted according to distance gdf is outside of image extent. - Renamed
spatial_mod.crop_singleplot_idparameter toplot_id_refto be consistent withspatial_mod.crop_many_gdf. - Many bug fixes making the spatial_crop function more robust to various scenarios and to perform quality control checks on input geodataframe of plot boundaries for spatial cropping.
- During batch processing, if out_force is
Falseand files exist in output directory, hs_process will skip over files instead of raising an error that the file already exists. This is useful if many files have already been processed and you'd like to process the remaining files without reprocessing all those that are completed. - Added an option to create a mask between two thresholds or percentiles (applies to
hstools.mask_arrayandbatch.segment_create_mask). - Added options to
batch.segment_create_maskto provide a choice whether the datacube and .spec files are saved to file. This potentially saves disk space if the datacube isn't needed in subsequent analyses. - User can optionally pass a lists for
mask_dir,mask_side, andmask_thresh/mask_percentiletobatch.segment_create_mask - Added a progress bar the following batch functions:
cube_to_spectra,segment_composite_band,segment_band_math,segment_create_mask,spectral_clip, andspectral_smooth. - Added
get_wavelength_rangetoutilitiesclass. - Added
spec_mod.spec_derivative,spec_mod.spectral_mimic, andspec_mod.spectral_resamplefunctions.