Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Add get_ranges query function#338

Open
angus-g wants to merge 1 commit intomasterfrom
angus-g/time-ranges
Open

Add get_ranges query function#338
angus-g wants to merge 1 commit intomasterfrom
angus-g/time-ranges

Conversation

@angus-g
Copy link
Collaborator

@angus-g angus-g commented Apr 22, 2024

This function returns a DataFrame containing the distinct ranges of contiguous data. For example,

>>> cc.querying.get_ranges(session, "01deg_jra55v13_ryf9091", "u", "1 daily")
                 start                  end
0  1950-01-01 00:00:00  1950-02-01 00:00:00
1  1950-02-01 00:00:00  1971-01-01 00:00:00
2  2086-01-01 00:00:00  2100-10-01 00:00:00
3  2100-10-01 00:00:00  2101-01-01 00:00:00
4  2170-01-01 00:00:00  2180-01-01 00:00:00

Curiously, this example does highlight an inconsistency in the data for this experiment, but it does show the gaps where no daily velocity data is available.

Probably not quite ready (and definitely needs some tests!), but I thought I'd get this out there while it's fresh on my mind.

This function returns a DataFrame containing the distinct ranges of
contiguous data. For example,

>>> cc.querying.get_ranges(session, "01deg_jra55v13_ryf9091", "u", "1 daily")
                 start                  end
0  1950-01-01 00:00:00  1950-02-01 00:00:00
1  1950-02-01 00:00:00  1971-01-01 00:00:00
2  2086-01-01 00:00:00  2100-10-01 00:00:00
3  2100-10-01 00:00:00  2101-01-01 00:00:00
4  2170-01-01 00:00:00  2180-01-01 00:00:00

Curiously, this example does highlight an inconsistency in the data
for this experiment, but it does show the gaps where no daily velocity
data is available.
@angus-g angus-g force-pushed the angus-g/time-ranges branch from 8462cbe to bd3bdf7 Compare April 22, 2024 03:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant