0.16.0
Adds a way to run ImageSimulator in reverse, turning simulated output back
into reflectance or pixel values, along with clearer rules for interpolated
Scenario inputs, a couple of hang fixes, and dependency updates for security.
Updates / New Features
Added a reverse pass to
ImageSimulator. The newphotoelectrons_to_reflectanceandphotoelectrons_to_pixelsmethods take the output ofsimulate_imageand turn it back into reflectance or display pixels. The result accounts for the sensor’s calibration, so the same scene shot by two different sensors comes out comparable.photoelectrons_to_pixelsalso has amode="minmax"option that stretches each image on its own. That is handy for eyeballing a single scene, but avoid it when you need to compare across sensors.Made the interpolation rules for
Scenarioclearer. Withinterp=True,altitudeandground_rangecan be any value inside the MODTRAN tables, not just the exact points listed. Withinterp=Falsethey still have to match an exact entry.Updated dependencies to clear a few security advisories.
Fixes
apply_convolutionno longer hangs on a flat, uniform-gray image.apply_noisenow raises aRuntimeErrorwith a helpful message when the input containsNaNorInfvalues, instead of hanging quietly.