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

TRT-558 - Migrate to earthdata-varinfo==3.0.0. #18

Merged
merged 2 commits into from
Sep 18, 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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [v1.1.1] - 2024-09-16
### Changed

- [[TRT-558](https://bugs.earthdata.nasa.gov/browse/TRT-558)]
The Swath Projector has been updated to use `earthdata-varinfo` version 3.0.0.
This update primarily involves the streamlining of the configuration file
schema. Please see the
[earthdata-varinfo release notes](https://github.com/nasa/earthdata-varinfo/releases/tag/3.0.0)
for more information. The configuration file used by the Swath Projector has
also been renamed to `earthdata_varinfo_config.json`.

## [v1.1.0] - 2024-08-29
### Changed

Expand Down Expand Up @@ -33,6 +44,7 @@ Repository structure changes include:
For more information on internal releases prior to NASA open-source approval,
see legacy-CHANGELOG.md.

[v1.1.1]:(https://github.com/nasa/harmony-swath-projector/releases/tag/1.1.0)
[v1.1.0]:(https://github.com/nasa/harmony-swath-projector/releases/tag/1.0.1)
[v1.0.1]:(https://github.com/nasa/harmony-swath-projector/releases/tag/1.0.1)
[v1.0.0]:(https://github.com/nasa/harmony-swath-projector/releases/tag/1.0.0)
2 changes: 1 addition & 1 deletion docker/service_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.1.1
2 changes: 1 addition & 1 deletion pip_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Open source packages available from PyPI:
earthdata-varinfo ~= 1.0.0
earthdata-varinfo ~= 3.0.0
harmony-service-lib~=1.0.22
netCDF4 ~= 1.6.4
numpy ~= 1.24.2
Expand Down
26 changes: 0 additions & 26 deletions swath_projector/cf_config.json

This file was deleted.

26 changes: 26 additions & 0 deletions swath_projector/earthdata_varinfo_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"Identification": "Swath Projector VarInfo configuration",
"Version": 3,
"CollectionShortNamePath": [
"ShortName"
],
"Mission": {
"VNP10": "VIIRS"
},
"MetadataOverrides": [
{
"Applicability": {
"Mission": "VIIRS",
"ShortNamePath": "VNP10",
"VariablePattern": "/SnowData/.*"
},
"Attributes": [
{
"Name": "coordinates",
"Value": "/GeolocationData/latitude, /GeolocationData/longitude"
}
],
"_Description": "VNP10 SnowData variables have incorrect relative paths for coordinates."
}
]
}
2 changes: 1 addition & 1 deletion swath_projector/reproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
)
CRS_DEFAULT = '+proj=longlat +ellps=WGS84'
INTERPOLATION_DEFAULT = 'ewa-nn'
CF_CONFIG_FILE = 'swath_projector/cf_config.json'
CF_CONFIG_FILE = 'swath_projector/earthdata_varinfo_config.json'


def reproject(
Expand Down
Loading