Skip to content

Loading a pickled xarray object #5642

Answered by jhamman
tommylees112 asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, Xarray does not provide backward compatibility for Pickled objects. In fact, the Xarray documentation on the Pickle format says:

... pickling is not recommended for long-term storage.

Restoring a pickle requires that the internal structure of the types for the pickled data remain unchanged. Because the internal design of xarray is still being refined, we make no guarantees (at this point) that objects pickled with this version of xarray will work in future versions.


I take it from your question that you don't have the environment that created the Pickle objects? I am not aware of any tools for extracting environment details from a Pickle.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tommylees112
Comment options

@Meelisha
Comment options

Answer selected by tommylees112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants