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

Add get_ranges query function #338

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add get_ranges query function #338

wants to merge 1 commit into from

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 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