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

How to wrap analyzed data back to event model #128

Open
yevgenyr opened this issue Nov 15, 2019 · 2 comments
Open

How to wrap analyzed data back to event model #128

yevgenyr opened this issue Nov 15, 2019 · 2 comments

Comments

@yevgenyr
Copy link

Hi,
I am trying to figure out a way to wrap analysed data (lets say a new xarray with its own attrs that is based on data from an original event).
Currently I am unwrapping (using databroker) msgpack, manipulating data and saving a new msgpack / netCDF (xarray) file, and it seems better to add to an existing event-model msgpack (also to maintain the format at which data move around).

Thanks,
Yevgeny

@danielballan danielballan changed the title How to wrap annalized data back to event model How to wrap analyzed data back to event model Nov 18, 2019
@danielballan
Copy link
Member

Hi @yevgenyr. I think there are two parts to this question: how to put analyzed data into the event model structure and then how to store it.

You can use the event_model.compose_* functions to organize analysis results into "documents". There is an example here in the test suite.

It's totally up to you whether to put that into a msgpack file---probably using suitcase-msgpack---or something else.

@yevgenyr
Copy link
Author

Thanks @danielballan... I'll try the test case.
The other part - msgpack - I think I am on this front.

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

2 participants