Skip to content

Commit

Permalink
Merge pull request #405 from NASA-IMPACT/stage/togo-ag
Browse files Browse the repository at this point in the history
Togo Agriculture
  • Loading branch information
olafveerman authored Sep 16, 2020
2 parents 7f10ab5 + f8efff4 commit 7f84344
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
7 changes: 5 additions & 2 deletions app/assets/scripts/components/common/layers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import slowdown from './layer-slowdown';
import waterChlorophyll from './layer-water-chlorophyll';
import waterSpm from './layer-water-spm';
import agriculture from './layer-agriculture';
import agTogo from './layer-togo-ag';

const layers = [
no2,
Expand All @@ -25,7 +26,8 @@ const layers = [
slowdown,
waterChlorophyll,
waterSpm,
agriculture
agriculture,
agTogo
];

export default layers;
Expand All @@ -37,7 +39,8 @@ const layersBySpotlight = {
la: ['no2', 'no2-diff', 'co2', 'co2-diff', 'nightlights-hd', 'nightlights-viirs', 'agriculture', 'slowdown', 'detection-ship'],
sf: ['no2', 'no2-diff', 'co2', 'co2-diff', 'nightlights-hd', 'nightlights-viirs', 'agriculture', 'slowdown', 'detection-ship', 'water-chlorophyll', 'water-spm'],
tk: ['no2', 'no2-diff', 'co2', 'co2-diff', 'nightlights-hd', 'nightlights-viirs'],
ny: ['no2', 'no2-diff', 'co2', 'co2-diff', 'nightlights-hd', 'nightlights-viirs', 'slowdown', 'detection-ship', 'water-chlorophyll', 'water-spm']
ny: ['no2', 'no2-diff', 'co2', 'co2-diff', 'nightlights-hd', 'nightlights-viirs', 'slowdown', 'detection-ship', 'water-chlorophyll', 'water-spm'],
togo: ['togo-ag']
};

const layerOverridesBySpotlight = {
Expand Down
19 changes: 18 additions & 1 deletion app/assets/scripts/components/common/layers/layer-togo-ag.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,22 @@ export default {
enabled: true,
exclusiveWith: [],
swatch: indicatorGroupColors.agriculture,
info: null
legend: {
type: 'gradient',
min: 'low',
max: 'high',
stops: [
'#000000',
'#1a0b40',
'#4b0c6b',
'#791c6d',
'#a42c60',
'#cf4446',
'#ed6825',
'#fb9b06',
'#f6d13c',
'#fbfda2'
]
},
info: 'Dark purple colors indicate lower probability of cropland while lighter yellow colors indicate higher probability of cropland within each pixel.'
};
14 changes: 13 additions & 1 deletion app/assets/scripts/components/spotlight/single/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,19 @@ class SpotlightAreasSingle extends React.Component {

// Set query state definition for url state storing.
const common = getCommonQsState(props);
common.layers.default = 'nightlights-hd';

switch (props.match.params.spotlightId) {
case 'togo':
common.layers.default = 'togo-ag';
break;
case 'wble':
common.layers.default = 'water-wq-gl-chl';
break;
default:
common.layers.default = 'nightlights-hd';
break;
}

this.qsState = new QsState(common);

// The active layers can only be enabled once the map loads. The toggle
Expand Down
19 changes: 19 additions & 0 deletions app/assets/scripts/components/spotlight/single/summaries.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,25 @@ const summaries = {
</p>
</>
),
togo: (
<>
<p>
The effects of COVID-19 shutdowns in Togo, including many months of curfews, severely limited the ability of hundreds of thousands of the country’s small farmers to produce an adequate food supply, as well as to cultivate formerly robust crops, such as soy and cotton.
</p>
<p>
To help its farmers, the Togolese government used a cropland data map developed by NASA’s food security and agriculture program, known as NASA Harvest, to develop a loan program that would help fund the cost of farming essentials.
</p>
<p>
In the past, farmers eligible for such loans would have been identified using Togo’s census data. However, the existing census only accounts for growers who list their primary occupation as farming. This vastly underestimates the number of informal smallholder growers impacted by the pandemic, who rely on subsistence farming to live. This is where satellite data can help fill in the gaps.
</p>
<p>
When rapid action was needed and mobility across the country was limited due to the COVID-19 outbreak, satellite data offered an effective and rapid way to map the country’s distribution of croplands and characterize the nature of agricultural fields during the pandemic.
</p>
<p>
NASA Harvest developed a national-level, satellite-derived cropland map for Togo at 10-meter resolution within a 10-day timeframe using data from the European Space Agency’s Copernicus Sentinel 2 satellite, the NASA-USGS Landsat satellites, and with data from commercial partner Planet Inc. These data, alongside poverty and census information, rapidly and effectively identified priority areas for the loan program. With the cropland maps, Togolese government officials had trustworthy information on the physical size and geographic location of agricultural lands that census data might have missed.
</p>
</>
),
tk: (
<>
<p>
Expand Down

0 comments on commit 7f84344

Please sign in to comment.