ocbrdf M02 IndexError #264
mikemaniscalco
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having trouble with the running oc_brdf with brdf_model = "M02". Other models such as L11 run fine.
Potentially related to:
a550866
I 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