Skip to content

Commit

Permalink
TRT-558 - Migrate to earthdata-varinfo==3.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
owenlittlejohns committed Sep 18, 2024
1 parent 43c51de commit b4b17e7
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 29 deletions.
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

0 comments on commit b4b17e7

Please sign in to comment.