-
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 #155 from wri/develop
Develop to master
- Loading branch information
Showing
43 changed files
with
487 additions
and
426 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
36 changes: 36 additions & 0 deletions
36
src/main/scala/org/globalforestwatch/layers/FaoEcozones2010.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,36 @@ | ||
package org.globalforestwatch.layers | ||
|
||
import org.globalforestwatch.grids.GridTile | ||
|
||
case class FaoEcozones2010(gridTile: GridTile, model: String = "standard", kwargs: Map[String, Any]) | ||
extends StringLayer | ||
with OptionalILayer { | ||
|
||
val datasetName = "fao_ecozones_2010" | ||
val uri: String = uriForGrid(gridTile) | ||
|
||
def lookup(value: Int): String = value match { | ||
case 1 => "Boreal coniferous forest" | ||
case 2 => "Boreal mountain system" | ||
case 3 => "Boreal tundra woodland" | ||
case 4 => "No data" | ||
case 5 => "Polar" | ||
case 6 => "Subtropical desert" | ||
case 7 => "Subtropical dry forest" | ||
case 8 => "Subtropical humid forest" | ||
case 9 => "Subtropical mountain system" | ||
case 10 => "Subtropical steppe" | ||
case 11 => "Temperate continental forest" | ||
case 12 => "Temperate desert" | ||
case 13 => "Temperate mountain system" | ||
case 14 => "Temperate oceanic forest" | ||
case 15 => "Temperate steppe" | ||
case 16 => "Tropical desert" | ||
case 17 => "Tropical dry forest" | ||
case 18 => "Tropical moist deciduous forest" | ||
case 19 => "Tropical mountain system" | ||
case 20 => "Tropical rainforest" | ||
case 21 => "Tropical shrubland" | ||
case 22 => "Water" | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
src/main/scala/org/globalforestwatch/layers/GrossEmissionsCo2OnlyCo2eBiomassSoil.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,17 @@ | ||
package org.globalforestwatch.layers | ||
|
||
import org.globalforestwatch.grids.GridTile | ||
|
||
case class GrossEmissionsCo2OnlyCo2eBiomassSoil(gridTile: GridTile, | ||
model: String = "standard", kwargs: Map[String, Any]) | ||
extends FloatLayer | ||
with OptionalFLayer { | ||
|
||
val datasetName = "Na" | ||
|
||
|
||
val model_suffix: String = if (model == "standard") "standard" else s"$model" | ||
val uri: String = | ||
s"s3://gfw-files/flux_1_2_2/gross_emissions_co2_only_co2e/$model_suffix/${gridTile.tileId}.tif" | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
src/main/scala/org/globalforestwatch/layers/GrossEmissionsCo2OnlyCo2eSoilOnly.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,15 @@ | ||
package org.globalforestwatch.layers | ||
|
||
import org.globalforestwatch.grids.GridTile | ||
|
||
case class GrossEmissionsCo2OnlyCo2eSoilOnly(gridTile: GridTile, kwargs: Map[String, Any]) | ||
extends FloatLayer | ||
with OptionalFLayer { | ||
|
||
val datasetName = "Na" | ||
|
||
|
||
val uri: String = | ||
s"s3://gfw-files/flux_1_2_2/gross_emissions_co2_only_co2e/soil_only/${gridTile.tileId}.tif" | ||
|
||
} |
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
16 changes: 16 additions & 0 deletions
16
src/main/scala/org/globalforestwatch/layers/GrossEmissionsNonCo2Co2eBiomassSoil.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,16 @@ | ||
package org.globalforestwatch.layers | ||
|
||
import org.globalforestwatch.grids.GridTile | ||
|
||
case class GrossEmissionsNonCo2Co2eBiomassSoil(gridTile: GridTile, | ||
model: String = "standard", kwargs: Map[String, Any]) | ||
extends FloatLayer | ||
with OptionalFLayer { | ||
|
||
val datasetName = "Na" | ||
|
||
|
||
val model_suffix: String = if (model == "standard") "standard" else s"$model" | ||
val uri: String = | ||
s"s3://gfw-files/flux_1_2_2/gross_emissions_non_co2_co2e/$model_suffix/${gridTile.tileId}.tif" | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/scala/org/globalforestwatch/layers/GrossEmissionsNonCo2Co2eSoilOnly.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,14 @@ | ||
package org.globalforestwatch.layers | ||
|
||
import org.globalforestwatch.grids.GridTile | ||
|
||
case class GrossEmissionsNonCo2Co2eSoilOnly(gridTile: GridTile, kwargs: Map[String, Any]) | ||
extends FloatLayer | ||
with OptionalFLayer { | ||
|
||
val datasetName = "Na" | ||
|
||
|
||
val uri: String = | ||
s"s3://gfw-files/flux_1_2_2/gross_emissions_non_co2_co2e/soil_only/${gridTile.tileId}.tif" | ||
} |
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
37 changes: 0 additions & 37 deletions
37
src/main/scala/org/globalforestwatch/layers/Plantations.scala
This file was deleted.
Oops, something went wrong.
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.