Skip to content
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

No "subset_clean_refl" function in NEON AOP HDF5 Python Functions #440

Open
mhalubok opened this issue Sep 13, 2019 · 3 comments
Open

No "subset_clean_refl" function in NEON AOP HDF5 Python Functions #440

mhalubok opened this issue Sep 13, 2019 · 3 comments
Assignees

Comments

@mhalubok
Copy link

mhalubok commented Sep 13, 2019

Hi @bridgethass,

I have tried a tutorial on NDVI calculation , and apparently it would not run correctly due to the absence of the function named "subset_clean_refl" in the neon_aop_refl_hdf5_functions.py file.

I believe something like that should be added:

def subset_clean_refl(reflArray,reflArray_metadata,clipIndex):

reflCleaned = reflArray[clipIndex['yMin']:clipIndex['yMax'],clipIndex['xMin']:clipIndex['xMax']].astype(np.float)
reflCleaned[reflCleaned==int(reflArray_metadata['noDataVal'])]=np.nan
reflCleaned = reflCleaned/reflArray_metadata['scaleFactor']

return reflCleaned

Could you please fix the above mentioned py file with the functions definitions?

@mjones01
Copy link
Contributor

mjones01 commented Mar 3, 2020

@bridgethass - Hi, I know you've been working on some updates, is this one on your radar?

@cklunch
Copy link
Collaborator

cklunch commented Aug 15, 2022

@bhass-neon Checking in on stale issues, comment here if this is resolved. Thanks!

@bhass-neon
Copy link
Collaborator

@cklunch The link to that lesson no longer works, but if I'm recalling correctly, I think that may have been from the first RSDI where we used flightline (L2) data, and we decided just to keep the lessons that work with tiled (L3) data (since the lessons are pretty redundant and the smaller tile data is easier for teaching). I probably should go through all the RSDI python lessons though, since I don't know where they are saved in GitHub. Will add this to my tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants