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

Support time durations for netcdf items #41

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

gadomski
Copy link
Contributor

@gadomski gadomski commented Nov 10, 2022

Description:
To create NetCDF collections, we need to create items for the NetCDFs. The ocean heat content CDR doesn't use have time_coverage_end attribute -- rather, it uses time_coverage_duration. This adds support for that.

PR checklist:

  • Code is formatted (run scripts/format).
  • Code lints properly (run scripts/lint).
  • Tests pass (run scripts/test).
  • Documentation has been updated to reflect changes, if applicable.
  • Examples have been updated to reflect changes, if applicable
  • Changes are added to the CHANGELOG.

@gadomski gadomski requested a review from pjhartzell November 10, 2022 15:18
year, 1, 1, tzinfo=tzutc()
)
assert item.common_metadata.end_datetime
assert item.common_metadata.end_datetime.year != year
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because the assets are updated in-place, we can't know the end datetime precisely.

@gadomski gadomski merged commit e220e1e into main Nov 10, 2022
@gadomski gadomski deleted the create-item-for-ocean-heat-content branch November 10, 2022 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant