-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs for BDRF correction #3
Comments
Hey Mike, Thanks for your interest in HyTools, in the scripts folder there is a script, image_correct.py, which calculates the correction coefficients for an image or group of images and optionally applies the corrections. Within that folder there is a configs folder which contains a script, image_correct_json_generate.py, for generating the config file that is input into image_correct.py. Sorry about the lack of info on the readthedocs site, we hope to have detailed instructions up there soon. In the meantime this slide deck provides an overview of the Hytools functionality, including the command line scripts: If you have any questions or come across any issues let me know. -Adam |
Hi Adam, Thanks for responding. Thanks for the slide deck. The BRDF correction slides simply reinforce why I'm so interested in your work. They look really good. I've found those python files, and had figured that they are the key. The trick is setting up the JSON properly, I think. Assuming the following data files exist:
where HSI_flightline_00x_spectraldata is a typical ENVI file, and where HSI_flightline_00x_anc_data is a coaligned raster with 10 bands corresponding to the aviris_anc_names. If so, then dict would then look like:
Assuming this all looks good, then the questions I have are really about details (and they could possibly be answered with a .hdr file from your ancillary data raster...:
Sorry for all the details - I'm sure you've written this to work with the ancillary data coming straight out of your hyperspectral sensor's processing workflow so it might be a level of detail that you take for granted. Cheers,
|
Quick follow up question: I'm assuming sensor azimuth is the direction the sensor was pointing (ie along track direction). |
Hey Mike, Indices are 0-based. The example ancillary dataset structure is based off of NASA's AVIRIS data products, which is one of the main data products we work with. Here is more detailed info about each of the bands:
https://avirisng.jpl.nasa.gov/dataportal/ANG_L1B_L2_Data_Product_Readme_v02.txt For the BRDF and Topographic corrections only the following are needed:
Everything else is calculated internally. Sensor azimuth is the direction each detector element is pointing clockwise from north, typically in the cross track direction it varies varies about +/-90 degrees from the flight direction, assuming the plane is tilted upward. Sensor zenith is the per-pixel angle in degrees off nadir. |
Hi all,
Congrats and thanks for building such a fantastic set of open source tools.
It's awesome to see this stuff being made free to all without an ENVI license.
I see on https://hytools.readthedocs.io/en/latest/algorithms.html that the docs for the BDRF and other corrections are still in the works.
I'd love to be able to test the BDRF code and see if it works for us.
Do you have a script that works for you that I could use as the basis for my testing?
I can see from https://github.com/EnSpec/hytools/blob/master/examples/hytools_basics_notebook.ipynb how to apply the coefficients, but it'd be great to see how to properly create the coefficients...
Sorry if this isn't the best place to ask, I didn't see any obvious contact info listed on GitHub or readthedocs.
Cheers,
The text was updated successfully, but these errors were encountered: