terraref / extractors-hyperspectral

Scripts and code relevant to the SWIR and VNIR cameras.
BSD 3-Clause "New" or "Revised" License
6 stars 6 forks source link

swapped about var names '*_rbs' are now '*'. tidy up min() & max #19

Closed hmb1 closed 7 years ago

hmb1 commented 7 years ago

renamed output vars as requested

hmb1 commented 7 years ago

HI CHarlie, have tried to make the script more lucid by changing the names about.

The plain formulas (per pixel) are now postfixed by "_px" e.g NDVI_px = ( R900 -R680) / (R900+R680 );

Average before ratios are now correctly named MDVI_avg is now NDVI_abr.

example snippet from script

WI_px=R900-R970; WI@long_name="water index"; WI@standard_name="water_index"; WI@description="water index | R900-R970 | Penuelas. et al. (1993)"; WI@notes="water index | WI"; WI@units="ratio"; WI@label="Reflectance Index"; WI@type="trait"; WI_abr=R900_avg-R970_avg; WI_abr@long_name=WI@long_name;

The following members are computing using var pointers WI=WI_px.avg(); WI@min=WI_px.min(); WI@max=WI_px.max();

let me know what you think ....Henry