EnSpec / hytools

Hyperspectral image processing library
GNU General Public License v3.0
56 stars 25 forks source link

Missing value handling? #10

Closed serbinsh closed 2 years ago

serbinsh commented 2 years ago

Apologies, I have another question. Because @daryl-yang and I need to use the ArcticDEM for processing, and because ArcticDEM is more coarse than AVIRIS, we are wondering how we can define missing values for Hytools so that it ignores those edge cases (see attached)?

Again this is caused by using a DEM that isnt of the same resolution of AVIRIS creating some missing data on scene edges (black area on the edge)

image (15)

adamchlus commented 2 years ago

Hi Shawn, here are some options:

  1. Set those pixels to the value of the "data ignore value" specified in the ENVI header.
  2. Specify the 'neon_edge" mask as one of the calc_masks in the config file which will exclude a buffer around the edge of the flightline, for example: "neon_edge", {'radius' : 5 }
serbinsh commented 2 years ago

Thanks @adamchlus. @Daryl-YANG is still exploring whether these solutions work, so lets let him get back to us when he has more details

adamchlus commented 2 years ago

Fixed with: https://github.com/EnSpec/hytools/pull/13