Skip to content

Commit

Permalink
Merge pull request #145 from wri/develop
Browse files Browse the repository at this point in the history
Merge develop to master
  • Loading branch information
jterry64 authored Mar 2, 2022
2 parents 6a2e2aa + f7f1812 commit f5f9998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/raster-catalog-pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
},
{
"name":"gfwpro_forest_change_regions",
"source_uri":"s3://gfw-data-lake/gfwpro_forest_change_regions/v20210129/raster/epsg-4326/{grid_size}/{row_count}/bit_encoding/gdal-geotiff/{tile_id}.tif"
"source_uri":"s3://gfw-data-lake/gfwpro_forest_change_regions/v20220228/raster/epsg-4326/{grid_size}/{row_count}/bit_encoding/gdal-geotiff/{tile_id}.tif"
},
{
"name":"landmark_indigenous_and_community_lands",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ case class GFWProCoverage(gridTile: GridTile, kwargs: Map[String, Any])
uriForGrid(gridTile)

def lookup(value: Int): Map[String, Boolean] = {
val bits = "0000000" + value.toBinaryString takeRight 8
val bits = "00000000" + value.toBinaryString takeRight 8
Map(
"South America" -> (bits(6) == '1'),
"Legal Amazon" -> (bits(5) == '1'),
"Brazil Biomes" -> (bits(4) == '1'),
"Cerrado Biomes" -> (bits(3) == '1'),
"Cerrado Biomes" -> (bits(7) == '1'),
"South East Asia" -> (bits(2) == '1'),
"Indonesia" -> (bits(1) == '1')
)
Expand Down

0 comments on commit f5f9998

Please sign in to comment.