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_m
andgdf_shft_n_m
tospatial_mod.crop_single
function. This adds flexibility for shifting a crop plot in some direction so it is better centered within thegdf
plot boundary. - Changed column name requirement from "plot" to "plot_id" to indicate plot ID in
gdf
(relevant forspatial_mod.crop_single
andspatial_mod.crop_many_gdf
functions). - When cropping by
gdf
bounds inspatial_mod
, ifgdf
bounds are outside image extent, the cropped image had an extra "buffer" equal to the length between thegdf
bound 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_single
plot_id
parameter toplot_id_ref
to 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
False
and 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_array
andbatch.segment_create_mask
). - Added options to
batch.segment_create_mask
to 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_percentile
tobatch.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_range
toutilities
class. - Added
spec_mod.spec_derivative
,spec_mod.spectral_mimic
, andspec_mod.spectral_resample
functions.