Skip to content

Commit

Permalink
Increase max year to 2020
Browse files Browse the repository at this point in the history
  • Loading branch information
jterry64 committed Mar 1, 2022
1 parent 602f66c commit 6a2e2aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ trait SummaryCommand {
val gladOpt: Opts[Boolean] = Opts.flag("glad", "GLAD tile extent").orFalse

val fireAlertTypeOpt: Opts[String] = Opts
.option[String]("fire_alert_type", help = "MODIS or VIIRS")
.withDefault("VIIRS")
.option[String]("fire_alert_type", help = "modis or viirs")
.withDefault("viirs")

val fireAlertSourceOpt: Opts[NonEmptyList[String]] = Opts
.options[String](
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ object ForestChangeDiagnosticAnalysis extends SummaryAnalysis {
.mapValues { case (data, fire) =>
data.copy(
commodity_threat_fires = fire.getOrElse(ForestChangeDiagnosticDataLossYearly.empty),
tree_cover_loss_soy_yearly = data.tree_cover_loss_soy_yearly.limitToMaxYear(2019)
tree_cover_loss_soy_yearly = data.tree_cover_loss_soy_yearly.limitToMaxYear(2020)
)
}
}
Expand Down Expand Up @@ -190,7 +190,7 @@ object ForestChangeDiagnosticAnalysis extends SummaryAnalysis {
}
.reduceByKey(_ merge _)
.mapValues { fires =>
aggregateFireData(fires.merge(ForestChangeDiagnosticDataLossYearly.prefilled)).limitToMaxYear(2019)
aggregateFireData(fires.merge(ForestChangeDiagnosticDataLossYearly.prefilled)).limitToMaxYear(2020)
}
}

Expand Down

0 comments on commit 6a2e2aa

Please sign in to comment.