Skip to content

support time units of either hours or days#9

Merged
corviday merged 1 commit into
mainfrom
time_units
Mar 25, 2026
Merged

support time units of either hours or days#9
corviday merged 1 commit into
mainfrom
time_units

Conversation

@corviday
Copy link
Copy Markdown
Contributor

@corviday corviday commented Feb 27, 2026

Adds support for netCDF files whose time variables are measured in days, matching new indexing standards.

Demo.
Resolves #8

@corviday corviday requested a review from QSparks February 27, 2026 02:36
Copy link
Copy Markdown
Contributor

@QSparks QSparks left a comment

Choose a reason for hiding this comment

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

Looks great! I downloaded a few timeseries from the demo and everything looks in order.

Would we want to add a case for files that might be missing the %H:%M:%S component in the days since … time string?

As an aside, netCDF4.num2date is fairly robust for time conversion if we ever need it down the road, though it’s probably unnecessary here since we’re consistently using Gregorian calendars.

@corviday corviday merged commit 68fdfef into main Mar 25, 2026
1 check passed
@corviday corviday deleted the time_units branch March 25, 2026 04:04
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.

support time variable denominated in days

2 participants