maskNoNavigation

Post ideas for new functionality you'd like to see in McIDAS-V or ideas for new tutorials.
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

maskNoNavigation

Post 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
User avatar
bobc
Posts: 988
Joined: Mon Nov 15, 2010 5:57 pm

Re: maskNoNavigation

Post by bobc »

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:

Code: Select all

missingData = setToMissing(originalData,0)

Please let me know if this isn't what you are looking for.

Thanks -
Bob Carp
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: maskNoNavigation

Post by joleenf »

Thanks, setMissingNoNavigation was what I was looking for. I missed it in the javadoc.

Joleen
Post Reply