Skip to content

Commit

Permalink
Fix types in whitelist and use WDPA version with resampled rasters (#247
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jterry64 authored Aug 6, 2024
1 parent 7bd5a86 commit fc99e94
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/raster-catalog-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"name":"wdpa_protected_areas",
"source_uri":"s3://gfw-data-lake/wdpa_protected_areas/v202407/raster/epsg-4326/{grid_size}/{row_count}/iucn_cat/geotiff/{tile_id}.tif"
"source_uri":"s3://gfw-data-lake/wdpa_protected_areas/v202407.2/raster/epsg-4326/{grid_size}/{row_count}/iucn_cat/geotiff/{tile_id}.tif"
},
{
"name":"gfw_oil_gas",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ object AnnualUpdateMinimalDF {
max($"is__gfw_wood_fiber") as "is__gfw_wood_fiber",
max($"is__gfw_resource_rights") as "is__gfw_resource_rights",
max($"is__gfw_managed_forests") as "is__gfw_managed_forests",
max($"umd_tree_cover_gain__period") as "umd_tree_cover_gain__period",
max(length($"umd_tree_cover_gain__period")).cast("boolean") as "umd_tree_cover_gain__period",
max($"is__ifl_intact_forest_landscapes_2000") as "is__ifl_intact_forest_landscapes_2000",
max($"sbtn_natural_forests__class") as "sbtn_natural_forests__class",
max(length($"sbtn_natural_forests__class")).cast("boolean") as "sbtn_natural_forests__class",

max(length($"tsc_tree_cover_loss_drivers__type")).cast("boolean") as "tsc_tree_cover_loss_drivers__type",
max($"is__birdlife_alliance_for_zero_extinction_site") as "is__birdlife_alliance_for_zero_extinction_site",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ object FireAlertsDF {
max("is__gmw_global_mangrove_extent_2020") as "is__gmw_global_mangrove_extent_2020",
max("is__ifl_intact_forest_landscapes_2016") as "is__ifl_intact_forest_landscapes_2016",
max(length($"ibge_bra_biomes__name")).cast("boolean") as "ibge_bra_biomes__name",
max("sbtn_natural_forests__class") as "sbtn_natural_forests__class",
max(length($"sbtn_natural_forests__class")).cast("boolean") as "sbtn_natural_forests__class",

max("is__birdlife_alliance_for_zero_extinction_site") as "is__birdlife_alliance_for_zero_extinction_site",
max("is__birdlife_key_biodiversity_area") as "is__birdlife_key_biodiversity_area",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ object GladAlertsDF {
max("is__gmw_mangroves_2020") as "is__gmw_mangroves_2020",
max("is__ifl_intact_forest_landscape_2016") as "is__ifl_intact_forest_landscape_2016",
max(length($"bra_biome__name")).cast("boolean") as "bra_biome__name",
max("sbtn_natural_forests") as "sbtn_natural_forests__class",
max(length($"sbtn_natural_forests__class")).cast("boolean") as "sbtn_natural_forests__class",
)

val aggCols =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ object IntegratedAlertsDF {
.cast("boolean") as "per_forest_concession__type",
max("is__gmw_mangroves_2020") as "is__gmw_mangroves_2020",
max("is__ifl_intact_forest_landscape_2016") as "is__ifl_intact_forest_landscape_2016",
max(length($"bra_biome__name")).cast("boolean") as "bra_biome__name"
max(length($"bra_biome__name")).cast("boolean") as "bra_biome__name",
max(length($"sbtn_natural_forests__class")).cast("boolean") as "sbtn_natural_forests__class"
)

val aggCols =
Expand Down

0 comments on commit fc99e94

Please sign in to comment.