Skip to content

Commit

Permalink
GTC-3039 GTC-3044 Update Palm Risk Analysis and WDPA
Browse files Browse the repository at this point in the history
 - Update Palm Risk Analysis to 2023 (use new MODIS 2023 and
   increase use up to 2023 in the analysis for TCL and fire data)
 - Update FCD/AFi analyses to use Nov 2024 licensed WDPA
  • Loading branch information
danscales committed Nov 19, 2024
1 parent 135f7f8 commit acc6636
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 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 @@ -14,7 +14,7 @@
},
{
"name":"detailed_wdpa_protected_areas",
"source_uri":"s3://gfw-data-lake/wdpa_licensed_protected_areas/v202408/raster/epsg-4326/{grid_size}/{row_count}/detailed_iucn_cat/gdal-geotiff/{tile_id}.tif"
"source_uri":"s3://gfw-data-lake/wdpa_licensed_protected_areas/v202411/raster/epsg-4326/{grid_size}/{row_count}/detailed_iucn_cat/gdal-geotiff/{tile_id}.tif"
},
{
"name":"gfw_oil_gas",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ object ForestChangeDiagnosticAnalysis extends SummaryAnalysis {
// March. So, the most recent data relates to soy planted late
// in previous year. So, we should only intersect with tree
// cover loss from previous year.
tree_cover_loss_soy_yearly = data.tree_cover_loss_soy_yearly.limitToMaxYear(2022)
tree_cover_loss_soy_yearly = data.tree_cover_loss_soy_yearly.limitToMaxYear(2023)
)
}
}
Expand Down Expand Up @@ -131,7 +131,7 @@ object ForestChangeDiagnosticAnalysis extends SummaryAnalysis {
usingIndex = true
)

// This fire data is an input to the palm risk tool, so limit data to 2022 to sync
// This fire data is an input to the palm risk tool, so limit data to 2023 to sync
// with the palm risk tool.
joinedRDD.rdd
.map { case (poly, points) =>
Expand All @@ -150,7 +150,7 @@ object ForestChangeDiagnosticAnalysis extends SummaryAnalysis {
}
.reduceByKey(_ merge _)
.mapValues { fires =>
aggregateFireData(fires.merge(ForestChangeDiagnosticDataLossYearly.prefilled)).limitToMaxYear(2022)
aggregateFireData(fires.merge(ForestChangeDiagnosticDataLossYearly.prefilled)).limitToMaxYear(2023)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ case class ForestChangeDiagnosticData(
*/
def withUpdatedCommodityRisk(): ForestChangeDiagnosticData = {

/* Exclude the last year, limit data to 2022 to sync with palm risk tool:
/* Exclude the last year, limit data to 2023 to sync with palm risk tool:
commodity_threat_deforestation, commodity_threat_peat, commodity_threat_protected_areas use year n and year n-1.
Including information from the current year would under-represent these values as it's in progress.
*/
val minLossYear = ForestChangeDiagnosticDataLossYearly.prefilled.value.keys.min
val maxLossYear = 2022
val maxLossYear = 2023
val years: List[Int] = List.range(minLossYear + 1, maxLossYear + 1)

val forestValueIndicator: ForestChangeDiagnosticDataValueYearly =
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit acc6636

Please sign in to comment.