Skip to content

Commit

Permalink
Merge branch 'master' of github.com:NASA-IMPACT/covid-api
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbo committed Nov 11, 2020
2 parents d29fae2 + 68854f4 commit a2e256b
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 24 deletions.
6 changes: 4 additions & 2 deletions covid_api/db/static/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
""" covid_api static datasets """
import os
import re
from copy import deepcopy
from typing import Any, Dict, List, Set

Expand Down Expand Up @@ -245,10 +244,13 @@ def _get_global_datasets(self):
filtering out datasets where the "source.tiles" value contains either
`spotlightId`.
"""

return {
k: v
for k, v in self._data.items()
if not re.search(r"{spotlightId}", v.source.tiles[0])
if not any(
i in v.source.tiles[0] for i in ["{spotlightId}", "greatlakes", "togo"]
)
}


Expand Down
2 changes: 1 addition & 1 deletion covid_api/db/static/datasets/no2-diff.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"source": {
"type": "raster",
"tiles": [
"{api_url}/{z}/{x}/{y}@1x?url=s3://covid-eo-data/OMNO2d_HRMDifference/OMI_trno2_0.10x0.10_{date}_Col3_V4.nc.tif&resampling_method=bilinear&bidx=1&rescale=-8000000000000000%2C8000000000000000&color_map=rdbu_r&color_formula=gamma r {gamma}"
"{api_url}/{z}/{x}/{y}@1x?url=s3://covid-eo-data/OMNO2d_HRMDifference/OMI_trno2_0.10x0.10_{date}_Col3_V4.nc.tif&resampling_method=bilinear&bidx=1&rescale=-8000000000000000%2C8000000000000000&color_map=rdbu_r"
]
},
"exclusive_with": [
Expand Down
4 changes: 2 additions & 2 deletions covid_api/db/static/datasets/wq-gl-chl.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"id": "water-wq-gl-chl",
"name": "Chlorophyll",
"type": "raster-timeseries",
"s3_location": "wq-greatlakes-chl",
"s3_location": "wq-gl-chl",
"time_unit": "day",
"source": {
"type": "raster",
"tiles": [
"{api_url}/{z}/{x}/{y}@1x?url=s3://covid-eo-data/wq-greatlakes-chl/chl_anomaly_greatlakes_{date}.tif&resampling_method=bilinear&bidx=1&rescale=-100%2C100&color_map=rdbu_r"
"{api_url}/{z}/{x}/{y}@1x?url=s3://covid-eo-data/wq-gl-chl/chl_anomaly_greatlakes_{date}.tif&resampling_method=bilinear&bidx=1&rescale=-100%2C100&color_map=rdbu_r"
]
},
"exclusive_with": [
Expand Down
4 changes: 2 additions & 2 deletions covid_api/db/static/datasets/wq-gl-spm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"name": "Turbidity",
"type": "raster-timeseries",
"time_unit": "day",
"s3_location": "wq-greatlakes-sm",
"s3_location": "wq-gl-spm",
"source": {
"type": "raster",
"tiles": [
"{api_url}/{z}/{x}/{y}@1x?url=s3://covid-eo-data/wq-greatlakes-sm/sm_anomaly_greatlakes_{date}.tif&resampling_method=bilinear&bidx=1&rescale=-100%2C100&color_map=rdbu_r"
"{api_url}/{z}/{x}/{y}@1x?url=s3://covid-eo-data/wq-gl-spm/sm_anomaly_greatlakes_{date}.tif&resampling_method=bilinear&bidx=1&rescale=-100%2C100&color_map=rdbu_r"
]
},
"exclusive_with": [
Expand Down
41 changes: 41 additions & 0 deletions covid_api/db/static/sites/gl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"id": "gl",
"label": "Great Lakes",
"center": [
-83.05755,
43.22715
],
"polygon": {
"type": "Polygon",
"coordinates": [
[
[
-84.3695,
41.2530
],
[
-81.7492,
41.2530
],
[
-81.7492,
45.2013
],
[
-84.3695,
45.2013
],
[
-84.3695,
41.2530
]
]
]
},
"bounding_box": [
-84.3695,
45.2013,
-81.7492,
41.2530
]
}
16 changes: 0 additions & 16 deletions covid_api/db/static/sites/wble.json

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

setup(
name="covid_api",
version="0.3.0",
version="0.3.1",
description=u"",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit a2e256b

Please sign in to comment.