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

implement option to not append STATS.nc files #193

Merged
merged 7 commits into from
Aug 20, 2024

Conversation

emlynjdavies
Copy link
Collaborator

@emlynjdavies emlynjdavies commented Aug 19, 2024

Fixes #191

In the [steps.output] step, users can now set

append = false

This is for people who want to use xarray and dask to load large datasets, which otherwise would cause substantial slowdown by appending the STATS for each raw image.

Loading a non-appended directory of nc file can be done with xarray.open_mfdataset with the below wildcards, like this:

dataset = xarray.open_mfdataset('*Image-D*-STATS.nc', combine='nested', concat_dim='index')

@emlynjdavies emlynjdavies linked an issue Aug 19, 2024 that may be closed by this pull request
@emlynjdavies emlynjdavies added bug Something isn't working patch / enhancement improved functionality or patch indented for changes that require bumping only the PATCH number labels Aug 19, 2024
@emlynjdavies emlynjdavies self-assigned this Aug 19, 2024
@emlynjdavies emlynjdavies marked this pull request as ready for review August 20, 2024 09:30
@emlynjdavies emlynjdavies merged commit 7d586cb into main Aug 20, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch / enhancement improved functionality or patch indented for changes that require bumping only the PATCH number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Processing slowing down over time
2 participants