Skip to content

Commit

Permalink
Updated cloud_masks (added 2 lines, deleted 2 lines).
Browse files Browse the repository at this point in the history
  • Loading branch information
fitoprincipe committed Mar 16, 2018
1 parent 71fe39b commit 08549f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud_masks
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ var compute = function(image, mask_band, bits, options) {
var sentinel2 = function(image) {

var cloud_mask = image.select("QA60");
var opaque = computeQAbits(cloud_mask, 10, 10, "opaque");
var cirrus = computeQAbits(cloud_mask, 11, 11, "cirrus");
var opaque = computeQAbitsEE(cloud_mask, 10, 10, "opaque");
var cirrus = computeQAbitsEE(cloud_mask, 11, 11, "cirrus");
var mask = opaque.or(cirrus);

return image.updateMask(mask.not());
Expand Down

0 comments on commit 08549f6

Please sign in to comment.