Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.19.0: Add legendRelativePath to regions/root.json, set cache max-age #63

Merged
merged 6 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# v0.19.0 (2024-03-05)

* Set `Cache-Control: max-age=900` header in NGINX server
* Add `legendRelativePath` to `snow-surface-properties/regions/root.json` at the
variable level.
* Update some variable-level labels, names, other text.


# v0.18.0 (2024-03-04)

* Change `historicStartWaterYear` -> `historicWaterYearRange`, a tuple including end
Expand Down
2 changes: 1 addition & 1 deletion VERSION.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export SERVER_VERSION="v0.18.0"
export SERVER_VERSION="v0.19.0"
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26100_51.tif"
"geotiffRelativePath": "regions/cogs/26100_51.tif",
"legendRelativePath": "regions/legends/26100_51.tif"
},
"45": {
"default": false,
Expand All @@ -22,7 +23,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26100_45.tif"
"geotiffRelativePath": "regions/cogs/26100_45.tif",
"legendRelativePath": "regions/legends/26100_45.tif"
},
"40": {
"default": true,
Expand All @@ -32,7 +34,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26100_40.tif"
"geotiffRelativePath": "regions/cogs/26100_40.tif",
"legendRelativePath": "regions/legends/26100_40.tif"
},
"44": {
"default": false,
Expand All @@ -42,7 +45,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26100_44.tif"
"geotiffRelativePath": "regions/cogs/26100_44.tif",
"legendRelativePath": "regions/legends/26100_44.tif"
}
},
"subRegionsRelativePath": "regions/26100.json",
Expand All @@ -62,7 +66,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2018, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26004_51.tif"
"geotiffRelativePath": "regions/cogs/26004_51.tif",
"legendRelativePath": "regions/legends/26004_51.tif"
},
"45": {
"default": false,
Expand All @@ -72,7 +77,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2018, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26004_45.tif"
"geotiffRelativePath": "regions/cogs/26004_45.tif",
"legendRelativePath": "regions/legends/26004_45.tif"
},
"40": {
"default": true,
Expand All @@ -82,7 +88,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2018, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26004_40.tif"
"geotiffRelativePath": "regions/cogs/26004_40.tif",
"legendRelativePath": "regions/legends/26004_40.tif"
},
"44": {
"default": false,
Expand All @@ -92,7 +99,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2018, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26004_44.tif"
"geotiffRelativePath": "regions/cogs/26004_44.tif",
"legendRelativePath": "regions/legends/26004_44.tif"
}
},
"subRegionsRelativePath": "regions/26004.json",
Expand All @@ -112,7 +120,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26101_51.tif"
"geotiffRelativePath": "regions/cogs/26101_51.tif",
"legendRelativePath": "regions/legends/26101_51.tif"
},
"45": {
"default": false,
Expand All @@ -122,7 +131,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26101_45.tif"
"geotiffRelativePath": "regions/cogs/26101_45.tif",
"legendRelativePath": "regions/legends/26101_45.tif"
},
"40": {
"default": true,
Expand All @@ -132,7 +142,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26101_40.tif"
"geotiffRelativePath": "regions/cogs/26101_40.tif",
"legendRelativePath": "regions/legends/26101_40.tif"
},
"44": {
"default": false,
Expand All @@ -142,7 +153,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26101_44.tif"
"geotiffRelativePath": "regions/cogs/26101_44.tif",
"legendRelativePath": "regions/legends/26101_44.tif"
}
},
"subRegionsRelativePath": "regions/26101.json",
Expand All @@ -162,7 +174,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26002_51.tif"
"geotiffRelativePath": "regions/cogs/26002_51.tif",
"legendRelativePath": "regions/legends/26002_51.tif"
},
"45": {
"default": false,
Expand All @@ -172,7 +185,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26002_45.tif"
"geotiffRelativePath": "regions/cogs/26002_45.tif",
"legendRelativePath": "regions/legends/26002_45.tif"
},
"40": {
"default": true,
Expand All @@ -182,7 +196,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26002_40.tif"
"geotiffRelativePath": "regions/cogs/26002_40.tif",
"legendRelativePath": "regions/legends/26002_40.tif"
},
"44": {
"default": false,
Expand All @@ -192,7 +207,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26002_44.tif"
"geotiffRelativePath": "regions/cogs/26002_44.tif",
"legendRelativePath": "regions/legends/26002_44.tif"
}
},
"subRegionsRelativePath": "regions/26002.json",
Expand All @@ -212,7 +228,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26000_51.tif"
"geotiffRelativePath": "regions/cogs/26000_51.tif",
"legendRelativePath": "regions/legends/26000_51.tif"
},
"45": {
"default": false,
Expand All @@ -222,7 +239,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26000_45.tif"
"geotiffRelativePath": "regions/cogs/26000_45.tif",
"legendRelativePath": "regions/legends/26000_45.tif"
},
"40": {
"default": true,
Expand All @@ -232,7 +250,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26000_40.tif"
"geotiffRelativePath": "regions/cogs/26000_40.tif",
"legendRelativePath": "regions/legends/26000_40.tif"
},
"44": {
"default": false,
Expand All @@ -242,7 +261,8 @@
"lastDateWithData": "2023-04-03",
"historicWaterYearRange": [2001, 2020],
"historicSource": "JPL modscag/drfs",
"geotiffRelativePath": "regions/cogs/26000_44.tif"
"geotiffRelativePath": "regions/cogs/26000_44.tif",
"legendRelativePath": "regions/legends/26000_44.tif"
}
},
"subRegionsRelativePath": "regions/26000.json",
Expand Down
1 change: 1 addition & 0 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ server {
autoindex on;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Cache-Control' 'max-age=900';

# Hacky support for CORS pre-flight OPTIONS requests
if ($request_method = OPTIONS) {
Expand Down
1 change: 1 addition & 0 deletions snow_today_webapp_ingest/types_/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class SuperRegionVariable(BaseModel):
)
historic_source: str = Field(description="The source of the climatology")
geotiff_relative_path: Path
legend_relative_path: Path


class SuperRegion(SubRegion):
Expand Down
Loading