Skip to content

Commit

Permalink
Merge pull request #394 from OldLipe/hotfix/cloudband
Browse files Browse the repository at this point in the history
closes #393
  • Loading branch information
rolfsimoes authored Sep 27, 2021
2 parents c38eb6f + 68d36b4 commit 60c71ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: sits
Type: Package
Version: 0.14.1
Version: 0.14.1-1
Title: Satellite Image Time Series Analysis for Remote Sensing Data Cubes
Authors@R: c(person('Rolf', 'Simoes', role = c('aut'), email = 'rolf.simoes@inpe.br'),
person('Gilberto', 'Camara', role = c('aut', 'cre'), email = 'gilberto.camara@inpe.br'),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ We are preparing to release the package on CRAN and are making relevant changes

# What's new in SITS version 0.14.1


### New features in SITS version 0.14.1-1

* Bug in cube generated by sits_regularize() cannot have "CLOUD" band

### New features in SITS version 0.14.1

* Implement new function `sits_list_collections()`
Expand Down
3 changes: 3 additions & 0 deletions R/sits_gdalcubes.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@
# update nrows and ncols
cube[, c("nrows", "ncols")] <- cube_view$space[c("ny", "nx")]

# hot fix remove cloud band
cube$bands[[1]] <- setdiff(cube$bands[[1]], "CLOUD")

return(cube)
}

Expand Down

0 comments on commit 60c71ad

Please sign in to comment.