tasseled_cap#

geowombat.tasseled_cap(data, nodata=None, sensor=None, scale_factor=None)#

Applies a tasseled cap transformation

Parameters:
  • data (DataArray) – The xarray.DataArray to process.

  • nodata (Optional[int or float]) – A ‘no data’ value to fill NAs with. If None, the ‘no data’ value is taken from the xarray.DataArray attributes.

  • sensor (Optional[str]) – The data’s sensor. If None, the band names should reflect the index being calculated.

  • scale_factor (Optional[float]) – A scale factor to apply to the data. If None, the scale value is taken from the xarray.DataArray attributes.

Return type:

DataArray

Examples

>>> import geowombat as gw
>>>
>>> with gw.config.update(sensor='qb', scale_factor=0.0001):
>>>     with gw.open('image.tif', band_names=['blue', 'green', 'red', 'nir']) as ds:
>>>         tcap = gw.tasseled_cap(ds)
Return type:

DataArray

Returns:

xarray.DataArray

Parameters:
  • data (DataArray) –

  • nodata (float | int | None) –

  • sensor (str | None) –

  • scale_factor (float | None) –

References

ASTER:

See [WS05]

CBERS2:

See [SHT11]

IKONOS:

See [Per06]

Landsat ETM+:

See [HWY+02]

Landsat OLI:

See [BZST14]

MODIS:

See [LC07]

Quickbird:

See [YEK05]

RapidEye:

See [ACG+14]

[ACG+14]

John TTR Arnett, Nicholas C Coops, Sarah E Gergel, Robert W Falls, and Russell H Baker. Detecting stand-replacing disturbance using rapideye imagery: a tasseled cap transformation and modified disturbance index. Canadian Journal of Remote Sensing, 40(1):1–14, 2014.

[BZST14]

Muhammad Hasan Ali Baig, Lifu Zhang, Tong Shuai, and Qingxi Tong. Derivation of a tasselled cap transformation based on Landsat 8 at-satellite reflectance. Remote Sensing Letters, 5(5):423–431, 2014.

[HWY+02]

Chengquan Huang, Bruce Wylie, Limin Yang, Collin Homer, and Gregory Zylstra. Derivation of a tasselled cap transformation based on Landsat 7 at-satellite reflectance. International journal of remote sensing, 23(8):1741–1748, 2002.

[LC07]

SE Lobser and WB Cohen. MODIS tasselled cap: land cover characteristics expressed through transformed MODIS data. International Journal of Remote Sensing, 28(22):5079–5101, 2007.

[Per06]

Gary M Pereira. Modeling flammability in disturbed tropical forests using an IKONOS tasseled cap transform. In American Society of Photogrammetry and Remote Sensing (ASPRS) 2006 Annual Conference Proc., Reno, Nevada, May, 1–5. 2006.

[SHT11]

Li Sheng, Jing-feng Huang, and Xiao-lu Tang. A tasseled cap transformation for CBERS-02B CCD data. Journal of Zhejiang University Science B, 12(9):780, 2011.

[WS05]

Yajuan Wang and Danfeng Sun. The ASTER tasseled cap interactive transformation using Gramm-Schmidt method. In MIPPR 2005: SAR and Multispectral Image Processing, volume 6043, 60430R. International Society for Optics and Photonics, 2005.

[YEK05]

Lance D Yarbrough, Greg Easson, and Joel S Kuszmaul. Quickbird 2 tasseled cap transform coefficients: a comparison of derivation methods. In Pecora, volume 16, 23–27. 2005.