-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from wri/feature/flux_model_v1_3_1_run
Feature/flux model v1 3 1 run
- Loading branch information
Showing
38 changed files
with
371 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
src/main/scala/org/globalforestwatch/layers/FluxModelExtent.scala
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/main/scala/org/globalforestwatch/layers/ForestAgeCategory.scala
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
src/main/scala/org/globalforestwatch/layers/ForestFluxModelAgeCategory.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.globalforestwatch.layers | ||
|
||
import org.globalforestwatch.grids.GridTile | ||
|
||
case class ForestFluxModelAgeCategory(gridTile: GridTile, model: String = "standard", kwargs: Map[String, Any]) | ||
extends StringLayer | ||
with OptionalILayer { | ||
|
||
val datasetName = "gfw_forest_flux_forest_age_category" | ||
|
||
val uri: String = | ||
uriForGrid(gridTile, kwargs) | ||
|
||
|
||
// // For carbon_sensitivity run only (but not currently functional) | ||
// val datasetName = "Na" | ||
// | ||
// val model_suffix: String = if (model == "standard") "standard" else s"$model" | ||
// val uri: String = | ||
// s"s3://gfw-data-lake/gfw_forest_flux_forest_age_category/v20231114/raster/epsg-4326/{grid_size}/{row_count}/ageCategory/geotiff/{tile_id}.tif" | ||
|
||
override val externalNoDataValue = "Not applicable" | ||
|
||
def lookup(value: Int): String = value match { | ||
case 1 => "Secondary forest <=20 years" | ||
case 2 => "Secondary forest >20 years" | ||
case 3 => "Primary forest" | ||
case _ => "Unknown" | ||
} | ||
} |
Oops, something went wrong.