fmeobjects.FMERasterTools.convertBandInterpretation
- FMERasterTools.convertBandInterpretation(interpretation, band, parms)
Converts data type of a band.
Note that this method is similar to
convertInterpretationwith a mode ofFME_REINTERPRET_MODE_BAND, except that this operates directly on a single band, rather than on all the selected bands of a raster.- Parameters:
interpretation (int) –
Desired interpretation of the raster after processing. Choose one of:
FME_INTERPRETATION_NULLFME_INTERPRETATION_REAL64FME_INTERPRETATION_REAL32FME_INTERPRETATION_UINT64FME_INTERPRETATION_INT64FME_INTERPRETATION_UINT32FME_INTERPRETATION_INT32FME_INTERPRETATION_UINT16FME_INTERPRETATION_INT16FME_INTERPRETATION_UINT8FME_INTERPRETATION_INT8FME_INTERPRETATION_GRAY8FME_INTERPRETATION_GRAY16FME_INTERPRETATION_RED8FME_INTERPRETATION_RED16FME_INTERPRETATION_GREEN8FME_INTERPRETATION_GREEN16FME_INTERPRETATION_BLUE8FME_INTERPRETATION_BLUE16FME_INTERPRETATION_ALPHA8FME_INTERPRETATION_ALPHA16band (FMEBand) – The band object to apply conversion to.
parms (dict[str, str]) – (Optional) The parms parameter contains the information on how to do specific conversions. Same parameters as in
convertInterpretation().
- Return type:
- Returns:
The band after converting band interpretation.
- Raises:
FMEException – An exception is raised if an error occurred.