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

null_define does not remove desired value #79

Open
RyanMurphyRI opened this issue Oct 26, 2015 · 2 comments
Open

null_define does not remove desired value #79

RyanMurphyRI opened this issue Oct 26, 2015 · 2 comments
Labels

Comments

@RyanMurphyRI
Copy link

Hello, I am using null_define to remove an erroneous value in a MODIS MYD11A1 raster time series. The tool runs successfully, but the value (-32768) remains. Any ideas as to what may be going wrong?

@Jwely
Copy link
Member

Jwely commented Oct 26, 2015

Please paste in the syntax you're using when you invoke null_define.
Also, look at the datatype for your input image, and the datatype of the output image, and reply with that information.

First two likely guesses are:

possibility 1
If you are using Arcmap, and have opened the image you are attempting to set null values on before, Arcmap can sometimes save the color ramp information and statistics associated with an image and just keep reloading them. One thing you can try is to delete all the associated metadata files (like the .aux, .xml, .ovr etc, but NOT the ."tfw" if you have one) and rerun the null_define function.

possibility 2
That value (-32768) is the minimum possible value for a signed 16 bit integer datatype, if your output datatype is "float", the logical check may be failing because the number is represented as an approximate value that varies somewhere beyond the 6th decimal place and fails the equality check for setting null_data. This could be fixed by explicitly defining the output datatype as an 'int16'

@Jwely Jwely added the question label Oct 26, 2015
@RyanMurphyRI
Copy link
Author

Thank you @Jwely How and where would i need to define the datatype in the dnppy workflow?

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

No branches or pull requests

2 participants