You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<dd><p>Adds Tasseled Cap indices brightness ('tcb'), greenness ('tcg'), yellowness
142
+
('tcy'), and angle ('tca') to the input image. See <ahref="https://docs.lib.purdue.edu/cgi/viewcontent.cgi?article=1160&context=lars_symp">Kauth and Thomas, 1976</a></p>
<dd><p>Adds the 'BQA' quality band as mask band ('BQA_mask') indicating good (1) and
142
146
bad (0) pixels. <ahref="https://www.usgs.gov/land-resources/nli/landsat/landsat-collection-1-level-1-quality-assessment-band">Learn more about the 'BQA' band</a>.</p>
@@ -449,6 +453,32 @@ var mssToaCol = mssDnCol.map(msslib.calcToa);
449
453
// Add NDVI band to each image in a collection.
450
454
var mssToaColNdvi =mssToaCol.map(msslib.addNdvi);
451
455
```
456
+
<aname="addTc"></a>
457
+
458
+
### addTc(img) > <code>ee.Image</code>
459
+
Adds Tasseled Cap indices brightness ('tcb'), greenness ('tcg'), yellowness
460
+
('tcy'), and angle ('tca') to the input image. See [Kauth and Thomas, 1976](https://docs.lib.purdue.edu/cgi/viewcontent.cgi?article=1160&context=lars_symp)
461
+
462
+
**Kind**: global function
463
+
464
+
| Param | Type | Description |
465
+
| --- | --- | --- |
466
+
| img | <code>ee.Image</code> | MSS image originating from the `msslib.getCol()` function. It is recommended that the image be in units of radiance or TOA reflectance (see `msslib.calcRad()` and `msslib.calcToa()`). |
467
+
468
+
**Example**
469
+
```js
470
+
// Get an MSS image collection.
471
+
var mssDnCol =msslib.getCol({
472
+
aoi:ee.Geometry.Point([-122.239, 44.018]),
473
+
doyRange: [170, 240]
474
+
});
475
+
476
+
// Convert DN to TOA for all images in a collection.
477
+
var mssToaCol =mssDnCol.map(msslib.calcToa);
478
+
479
+
// Add Tasseled Cap bands to each image in a collection.
0 commit comments