-
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.
Updated the layer files with correct catalog names. Also refactored s…
…ome of the layer files; flux model contextual layers all start with the same string so they're together. Ready to test locally.
- Loading branch information
Showing
36 changed files
with
269 additions
and
162 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
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" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/scala/org/globalforestwatch/layers/ForestFluxModelExtent.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,21 @@ | ||
package org.globalforestwatch.layers | ||
|
||
import org.globalforestwatch.grids.GridTile | ||
|
||
case class ForestFluxModelExtent(gridTile: GridTile, model: String = "standard", kwargs: Map[String, Any]) | ||
extends BooleanLayer | ||
with OptionalILayer { | ||
|
||
val datasetName = "gfw_forest_flux_model_extent" | ||
|
||
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_model_extent/v20231114/raster/epsg-4326/{grid_size}/{row_count}/ha/geotiff/{tile_id}.tif" | ||
} |
15 changes: 11 additions & 4 deletions
15
...atch/layers/GrossEmissionsNodeCodes.scala → ...estFluxModelGrossEmissionsNodeCodes.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
30 changes: 30 additions & 0 deletions
30
src/main/scala/org/globalforestwatch/layers/ForestFluxModelPlantedForestType.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 ForestFluxModelPlantedForestType(gridTile: GridTile, kwargs: Map[String, Any]) | ||
extends StringLayer | ||
with OptionalILayer { | ||
|
||
val datasetName = "gfw_forest_flux_planted_forest_type" | ||
|
||
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_planted_forests/v20230911/raster/epsg-4326/{grid_size}/{row_count}/simpleName/geotiff/{tile_id}.tif" | ||
|
||
override val externalNoDataValue = "Not applicable" | ||
|
||
def lookup(value: Int): String = value match { | ||
case 1 => "Oil palm" | ||
case 2 => "Wood fiber" | ||
case 3 => "Other" | ||
case _ => "Unknown" | ||
} | ||
} |
17 changes: 12 additions & 5 deletions
17
...orestwatch/layers/RemovalForestType.scala → ...rs/ForestFluxModelRemovalForestType.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
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
Oops, something went wrong.