Could you add an option to return 1 and missing to the maskNoNavigation JPythonMethod. Currently the formula returns 0 and 1.
Thanks,
Joleen
maskNoNavigation
Re: maskNoNavigation
Hi Joleen -
It looks like there's another JPythonMethod that does what you are looking for: setMissingNoNavigation
The description of this method is:
"For all non-navigatable points in the given FlatField, replace the FF's values with missing (Float.NaN). This is useful when an AREA file is off the planet, since there is no explicit "missing" value in AREA files, and it only indicated by "missing" navigation (lat/lon) information"
If this doesn't work, there's another method called setToMissing. In your case, where you want to set values of 0 as missing, you could run something like:
Please let me know if this isn't what you are looking for.
Thanks -
Bob Carp
It looks like there's another JPythonMethod that does what you are looking for: setMissingNoNavigation
The description of this method is:
"For all non-navigatable points in the given FlatField, replace the FF's values with missing (Float.NaN). This is useful when an AREA file is off the planet, since there is no explicit "missing" value in AREA files, and it only indicated by "missing" navigation (lat/lon) information"
If this doesn't work, there's another method called setToMissing. In your case, where you want to set values of 0 as missing, you could run something like:
Code: Select all
missingData = setToMissing(originalData,0)
Please let me know if this isn't what you are looking for.
Thanks -
Bob Carp
Re: maskNoNavigation
Thanks, setMissingNoNavigation was what I was looking for. I missed it in the javadoc.
Joleen
Joleen