Issue Details (XML | Word | Printable)

Key: BEAM-1157
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Olga Faber
Reporter: Norman Fomferra
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
BEAM

No-data masking can easily be optimized

Created: 16/Jun/10 11:30 AM   Updated: 17/Jun/10 06:58 PM  Due: 16/Jun/10
Component/s: Java API
Affects Version/s: 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1
Fix Version/s: 4.8


 Description  « Hide
No-data masking occurs, if a Band's no-data value is set:
  
   Band band = new Band("AOT", ...);
   band.setGeophysicalNoDataValue(-999.0);
   band.setNoDataValueUsed(true);

Internally, we create a so called valid-mask expression, which is the band-maths expression used to determine valid pixels. Depending on the no-data value,source code snippet above would produce the valid-mask expression "fneq(AOT,-999.0)", where AOT refers to the geophysical (image) sample.

If the raw data type of a band is different from the geophysical data type, e.g.

   Band band = new Band("AOT", ...);
   band.setNoDataValue(-999);
   band.setNoDataValueUsed(true);

the expression can be simplified to "AOT.raw != -999", where AOT.raw refers to the raw (image) sample. Accessing raw sample data and evaluating the raw (integer) expression is much faster and simpler.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.