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 to_array, to_dataset #6

Open
dcherian opened this issue Aug 17, 2021 · 0 comments
Open

Add to_array, to_dataset #6

dcherian opened this issue Aug 17, 2021 · 0 comments

Comments

@dcherian
Copy link
Contributor

def to_dataset(self, dim) -> Collection:
	ds = xr.concat(self.values(), dim=dim)
	ds[dim] = self.keys()
	return ds
def to_array(self, dim) -> Collection:
	# check that all datasets only contain one array.
	da =  xr.concat(self.values(), dim=dim)
	da[dim] = self.keys()
	return da
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🌳 Todo
Development

No branches or pull requests

1 participant