Skip to content

Commit

Permalink
Add a linear scaling to plotRGB
Browse files Browse the repository at this point in the history
Fixes the issue with values out of range
  • Loading branch information
GreatEmerald authored Jan 4, 2022
1 parent b4e25d4 commit 4cdcf1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,12 @@ tahiti
names(tahiti)
## Visualize the data
plotRGB(tahiti, 3,4,5)
plotRGB(tahiti, 3,4,5, stretch="lin")
```

```{r, echo=FALSE, fig.align='center'}
tahiti <- brick('data/LE70530722000126_sub.grd')
plotRGB(tahiti, 3,4,5)
plotRGB(tahiti, 3,4,5, stretch="lin")
```

We can also visualize the cloud mask layer (layer 7).
Expand Down

0 comments on commit 4cdcf1d

Please sign in to comment.