ocbrdf M02 IndexError #264
Closed
mikemaniscalco
started this conversation in
General
Replies: 2 comments 2 replies
-
|
@mikemaniscalco I'm on PTO but hopefully Juan, who is most familiar with this code, will get back to you while I'm away. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Dear @mikemaniscalco, I think this issue is related to different ways of handling 1D np. arrays by x array .interp and .sel funcitons. It should be solved after PR #278, could you test? In my systems things were working fine before. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having trouble with the running oc_brdf with brdf_model = "M02". Other models such as L11 run fine.
Potentially related to:
a550866I I runoc_brdf.brdf_prototype(ds, brdf_model='M02')I get the below error message.I might be thinking about this wrong, but it seems like modifying lines 149-153 of brdf_model_M02.py to index fQ_chl similar to Rrs and f0_chl might make sense?:
R442 = np.pi * Rrs.sel(bands=b442) * f0_chl.sel(bands_f0=2.0) / fQ_chl.sel(bands=b442).interp(wavelengths_FOQ=b442)Original:
R442 = np.pi * Rrs.sel(bands=b442) * f0_chl.sel(bands_f0=2.0) / fQ_chl.interp(wavelengths_FOQ=b442)Beta Was this translation helpful? Give feedback.
All reactions