Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

add configs for featured measurements, update product picker to show featured tab first, with first measurement expanded

Jason Kentc3f30cce7102
diff --git a/config/default/common/config/wv.json/categories/featured/All.json b/config/default/common/config/wv.json/categories/featured/All.json
index 97ba00a6c..fe206d8a4 100644
--- a/config/default/common/config/wv.json/categories/featured/All.json
+++ b/config/default/common/config/wv.json/categories/featured/All.json
@@ -7,7 +7,15 @@
"id": "featured-all",
"description": "",
"measurements": [
- "Geostationary"
+ "Geostationary",
+ "Corrected Reflectance",
+ "Fires and Thermal Anomalies",
+ "Precipitation Rate - Featured",
+ "Population Density",
+ "Earth at Night",
+ "Land Surface Temperature",
+ "Sea Surface Temperature - Featured",
+ "Orbital Track"
]
}
}
diff --git a/config/default/common/config/wv.json/measurements/Featured - Precipitation.json b/config/default/common/config/wv.json/measurements/Featured - Precipitation.json
new file mode 100644
index 000000000..bd4c931ab
--- /dev/null
+++ b/config/default/common/config/wv.json/measurements/Featured - Precipitation.json
@@ -0,0 +1,50 @@
+{
+ "measurements": {
+ "Precipitation Rate - Featured": {
+ "id": "featured-precipitation-rate",
+ "title": "Precipitation Rate",
+ "subtitle": "IMERG, GPM/GMI, GCOM-W1/AMSR2",
+ "sources": {
+ "IMERG": {
+ "id": "imerg",
+ "title": "IMERG",
+ "description": "multi-mission/imerg/Precipitation",
+ "image": "",
+ "settings": [
+ "IMERG_Rain_Rate",
+ "IMERG_Snow_Rate",
+ "IMERG_Precipitation_Rate"
+ ]
+ },
+ "GPM/GMI": {
+ "id": "gpm-gmi",
+ "title": "GPM/GMI",
+ "description": "gpm/PrecipitationRate",
+ "image": "",
+ "settings": [
+ "GMI_Rain_Rate_Asc",
+ "GMI_Rain_Rate_Dsc",
+ "GMI_Snow_Rate_Asc",
+ "GMI_Snow_Rate_Dsc",
+ "OrbitTracks_GPM_Ascending",
+ "OrbitTracks_GPM_Descending"
+ ]
+ },
+ "GCOM-W1/AMSR2": {
+ "id": "gcom-w1-amsr2",
+ "title": "GCOM-W1/AMSR2",
+ "description": "amsr2/PrecipitationRate",
+ "image": "",
+ "settings": [
+ "AMSR2_Surface_Precipitation_Rate_Day",
+ "AMSR2_Surface_Precipitation_Rate_Night",
+ "AMSR2_Surface_Rain_Rate_Day",
+ "AMSR2_Surface_Rain_Rate_Night",
+ "OrbitTracks_GCOM-W1_Ascending",
+ "OrbitTracks_GCOM-W1_Descending"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/config/default/common/config/wv.json/measurements/Featured - Sea Surface Temperature.json b/config/default/common/config/wv.json/measurements/Featured - Sea Surface Temperature.json
new file mode 100644
index 000000000..628be7c4d
--- /dev/null
+++ b/config/default/common/config/wv.json/measurements/Featured - Sea Surface Temperature.json
@@ -0,0 +1,22 @@
+{
+ "measurements": {
+ "Sea Surface Temperature - Featured": {
+ "id": "featured-sea-surface-temperature",
+ "title": "Sea Surface Temperature",
+ "subtitle": "GHRSST",
+ "sources": {
+ "GHRSST": {
+ "id": "ghrsst",
+ "title": "GHRSST",
+ "description": "multi-mission/SeaSurfaceTemperature",
+ "image": "",
+ "settings": [
+ "GHRSST_L4_G1SST_Sea_Surface_Temperature",
+ "GHRSST_L4_MUR_Sea_Surface_Temperature",
+ "GHRSST_L4_AVHRR-OI_Sea_Surface_Temperature"
+ ]
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/web/js/components/layer/product-picker/product-picker.js b/web/js/components/layer/product-picker/product-picker.js
index 72873e635..769f56f7c 100644
--- a/web/js/components/layer/product-picker/product-picker.js
+++ b/web/js/components/layer/product-picker/product-picker.js
@@ -32,11 +32,16 @@ import { ModalBody, ModalHeader, Nav, NavItem, NavLink } from 'reactstrap';
class ProductPicker extends React.Component {
constructor(props) {
super(props);
+ const categoryType = Object.keys(props.categoryConfig)[0];
+ const category = props.categoryConfig[categoryType].All;
+ const selectedMeasurement = category.measurements[0];
+ const selectedMeasurementId = props.measurementConfig[selectedMeasurement].id;
+
this.state = {
- listType: props.listType,
- categoryType: Object.keys(props.categoryConfig)[1],
- category: props.category,
- selectedMeasurement: null,
+ listType: 'measurements',
+ categoryType,
+ category,
+ selectedMeasurement: selectedMeasurementId,
filteredRows: props.filteredRows,
inputValue: ''
};
@@ -182,9 +187,9 @@ class ProductPicker extends React.Component {
const isCategoryDisplay = listType === 'category' && selectedProjection === 'geographic';
const showCategoryTabs = isCategoryDisplay || categoryType === 'featured';
const categoryKeys = [
+ 'featured',
'hazards and disasters',
- 'scientific',
- 'featured'
+ 'scientific'
];
return (
@@ -310,6 +315,7 @@ const mapDispatchToProps = dispatch => ({
dispatch(onToggle());
}
});
+
function mapStateToProps(state, ownProps) {
const { config, browser, proj, layers, compare } = state;
const { screenWidth, screenHeight } = browser;