-
Notifications
You must be signed in to change notification settings - Fork 18
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
Warnings for apply_numpy_specials depend on order #17
Comments
My RingCube is just a wrapper around your CubeFile for Saturn Ring images, doesn't do anything with your CubeFile inner stuff. |
could you comment on this? |
I believe the warning is because it is running the comparisons on the special values. This shouldn't cause any problems however it does proabally mean there is a better way to do this. |
Where did you get those special values from? Are they defined in a standard document somewhere? Possibly either those values need to be updated, or the ISIS routine creating those numbers in the cube, I guess one of them is not consistent with current standards/expectations. |
They're the numpy special values that replace the cube file special values like |
I think this is only happening because numpy.less does not like to see the np.nans from the 'Null' replacement, when doing the 'Max' and 'Min' replacement. Do you see a problem with doing the replacement of Null->np.nan at the end? If not, I can just submit a simple PR to change the order of this. |
Ok, no, obviously I need to set NANs first, because the minimum is also a negative special pixel value. |
Using pysis 0.5.2
I'm having an issue with Cubefile.apply_numpy_specials.
Apparently the order matters for receiving a warning or not.
Possibly, because your hardcoded Min/Max values don't fit to what I find in this Cassini ISS image?
See screenshot:

The text was updated successfully, but these errors were encountered: