-
Notifications
You must be signed in to change notification settings - Fork 4
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
about input data for IOP model(QAA and GIOP) #3
Comments
Hi, I have used him code. So maybe I can help you this question. By the way, did the GOCI-II data open to public now? |
@jiwoni-ind I'm assuming this is referring to the MDN repository, and not this one on band-adjustment. In which case, both QAA and GIOP can be used by passing in the Rrs (as a numpy array shaped [number of samples, number of bands]), and the wavelengths (as a numpy array shaped [number of bands]). GIOP additionally needs the sensor name passed in, e.g. OLI for Landsat-8. The problem in your case is, GIOP needs an estimate of chlorophyll to work, which is calculated via OC3. There is no GOCI-II definition for OC3, and so you will not be able to use GIOP for that sensor unless the OC3 definition is included. To use get_tile_data with these functions, you'll need to reshape the input correctly first - get_tile_data returns Rrs in the shape of [height, width, number of bands], whereas you need [number of samples, number of bands]. Once Rrs is reshaped, you should be able to pass it into the QAA function (along with the bands) without issue. Let me know if this answers your question. |
Thank you for your willingness to help. Currently, GOCI-II data are provided by the Korea National Oceanic and Atmospheric Research Institute. If access is not possible, please help with GOCI data. First, added information from meta.py GOCI-II.
When using QAA.py, the code is executed as follows.
Also, when using GIOP.py, the code is executed as follows.
|
Thank you. I noticed the problem with my source code in your reply. The shape of the data read using get_tile_data is [2780, 2780, 12] as [number of row, number of col, number of bands]. When get_tile_data is used, the type of the return value is a (2,) tuple. But I have one question. The QAA function requires Rrs, wavelengths. |
Sample count is just the number of (in this case) pixels you want estimates for. So ignoring any masking applied to the pixels, you would have height * width = 2780 * 2780 = 7,728,400 samples. Reshaping the Rrs array via e.g. Rrs.reshape((-1, Rrs.shape[-1])) and feeding that into QAA should get you the results you expect. The results can then be reshaped back into the image shape if that's the format you need. |
Hi, Smith
Thank you for sharing the source code for IOP algorithms(QAA and GIOP).
This is very useful for using sensor data not provided by OCSSW.
I have one question for using this.
First of all, I want to use this calculate IOP using remote sensing reflectance from GOCI-II.
However, I keep getting various errors.
So I'd like to know if you have any data you used when testing this code.
Or could I know information such as the format of the input data?
For reference, I applied IOP using the get_tile_data function of your utils library.
I hope you will be able to guide me through.
Best regards
Ji-Won
The text was updated successfully, but these errors were encountered: