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 - Update service to use earthdata-varinfo==3.0.0. #7

Merged
merged 3 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ The Harmony Regridding Service follows semantic versioning. All notable changes
to this project will be documented in this file. The format is based on [Keep a
Changelog](http://keepachangelog.com/en/1.0.0/).

## [v1.0.2] - 2024-09-23

### Changed
This version of the Harmony Regridding Service updates to use
`earthdata-varinfo==3.0.0`, which primarily requires updates to the
configuration file the Harmony Regridding Service uses to specify metadata
overrides and excluded science variables to `earthdata-varinfo`.

## [v1.0.1] - 2024-06-20

### Changed
Expand All @@ -22,6 +30,6 @@ include updated documentation and files outlined by the
For more information on internal releases prior to NASA open-source approval,
see legacy-CHANGELOG.md.

[unreleased]: https://github.com/nasa/harmony-regridding-service/compare/1.0.1..HEAD
[v1.0.1]: https://github.com/nasa/harmony-regridding-service/compare/1.0.0..1.0.1
[v1.0.0]: https://github.com/nasa/harmony-regridding-service/compare/0.0.4-legacy..1.0.0
[v1.0.2]: https://github.com/nasa/harmony-regridding-service/releases/tag/1.0.2
[v1.0.1]: https://github.com/nasa/harmony-regridding-service/releases/tag/1.0.1
[v1.0.0]: https://github.com/nasa/harmony-regridding-service/releases/tag/1.0.0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flamingbear - I think this is the transition you made in one of the recent change logs. Let me know if this is the preferred URL format you like, or if I should update to something else.

4 changes: 2 additions & 2 deletions docs/Harmony_Regridding_Service_User_Documentation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"\n",
"The Harmony Regridding Services is a [Harmony](https://harmony.earthdata.nasa.gov) backend service that transforms the data within a specified input granule to a single geographic grid. The initial version of this service is only compatible with geographic source and target grids. The transformed output is returned to the user in the form of a standard Harmony STAC object, which contains links to the output granule in an AWS S3 bucket.\n",
"\n",
"The Harmony Regridding Service leverages the `sds-varinfo` Python package (see: [here](https://git.earthdata.nasa.gov/projects/SITC/repos/sds-varinfo/browse)) to map variable dependencies and group variables by horizontal spatial dimensions. `pyresample` (see [here](https://pyresample.readthedocs.io/en/latest/)) is used to perform the resampling in a horizontal spatial plane.\n",
"The Harmony Regridding Service leverages the `earthdata-varinfo` Python package (see: [here](https://github.com/nasa/earthdata-varinfo)) to map variable dependencies and group variables by horizontal spatial dimensions. `pyresample` (see [here](https://pyresample.readthedocs.io/en/latest/)) is used to perform the resampling in a horizontal spatial plane.\n",
"\n",
"\n",
"## Capabilities\n",
Expand Down Expand Up @@ -292,7 +292,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
58 changes: 22 additions & 36 deletions harmony_regridding_service/config/HRS_varinfo_config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Identification": "trajectorysubsetter_varinfo_config",
"Version": 2,
"Collection_ShortName_Path": [
"Identification": "harmony_regridding_service_varinfo_config",
"Version": 3,
"CollectionShortNamePath": [
"/HDF5_GLOBAL/short_name",
"/NC_GLOBAL/short_name",
"/Metadata/DatasetIdentification/shortName",
Expand All @@ -16,58 +16,44 @@
"Mission": {
"ATL\\d{2}": "ICESat2"
},
"Excluded_Science_Variables": [
"ExcludedScienceVariables": [
{
"Applicability": {
"Mission": "ICESat2"
},
"Variable_Pattern": [
"VariablePattern": [
"/quality_assessment/.*",
"/orbit_info/.*",
"/atlas_impulse_response/.*"
]
}
],
"ProductEpochs": [
"MetadataOverrides": [
{
"Applicability": {
"Mission": "ICESat2"
"Mission": "ICESat2",
"ShortNamePath": "ATL14",
"VariablePattern": "/tile_stats/x"
},
"Epoch": "2005-01-01T00:00:00.000000"
}
],
"CF_Overrides": [
"Attributes": [
{
"Name": "standard_name",
"Value": "projection_x_coordinate"
}
]
},
{
"Applicability": {
"Mission": "ICESat2",
"ShortNamePath": "ATL14"
"ShortNamePath": "ATL14",
"VariablePattern": "/tile_stats/y"
},
"Applicability_Group": [
"Attributes": [
{
"Applicability": {
"Variable_Pattern": "/tile_stats/x"
},
"Attributes": [
{
"Name": "standard_name",
"Value": "projection_x_coordinate"
}
]
},
{
"Applicability": {
"ShortNamePath": "ATL14",
"Variable_Pattern": "/tile_stats/y"
},
"Attributes": [
{
"Name": "standard_name",
"Value": "projection_y_coordinate"
}
]
"Name": "standard_name",
"Value": "projection_y_coordinate"
}
]
}
],
"CF_Supplements": []
]
}
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 ~= 2.0.0
earthdata-varinfo ~= 3.0.0
harmony-service-lib ~= 1.0.25
numpy ~= 1.24.2
netCDF4 ~= 1.6.3
Expand Down
Loading