Page 1 of 1
maskNoNavigation
Posted: Tue Sep 13, 2016 5:10 pm
by joleenf
Could you add an option to return 1 and missing to the maskNoNavigation JPythonMethod. Currently the formula returns 0 and 1.
Thanks,
Joleen
Re: maskNoNavigation
Posted: Tue Sep 13, 2016 7:19 pm
by bobc
Hi Joleen -
It looks like there's another JPythonMethod that does what you are looking for:
setMissingNoNavigationThe 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
Posted: Wed Sep 14, 2016 1:34 pm
by joleenf
Thanks, setMissingNoNavigation was what I was looking for. I missed it in the javadoc.
Joleen