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

time splitting in integer units of integration time #20

Open
rvweeren opened this issue Oct 15, 2021 · 0 comments
Open

time splitting in integer units of integration time #20

rvweeren opened this issue Oct 15, 2021 · 0 comments

Comments

@rvweeren
Copy link

for timerange in np.array_split(sorted(set(t.getcol('TIME'))), round(hours)):

I think that by splitting this way the regular structure of (time[i]-time[i+1])=constant is destroyed at the boundaries of the split. That means that after combining the ms again in time (which one sometimes wants), the time axis has become irregular. An easy solution I think would be to split with taql in integer units of timesteps. A simple example to split select time steps, say from 120 to 140 with taql is:

taql 'select from bla.MS where TIME in (select distinct TIME from bla.MS offset 120 limit 20) giving bla-subset.MS as plain'

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

No branches or pull requests

1 participant