Skip to content
Discussion options

You must be logged in to vote

Looking at the reader code, changing >2 to >=2 might perhaps not be correct. Instead, probably seems we need to deal with two dimensions (time and node, but no level) as a separate case.
As untested pseudo-code, I would suggest inserting something like this:

elif len(dvar.shape) == 2:
                level_ind = self.__nearest_level__(z)

                # Reading the smallest block covering the actual data
                block = dvar[indx_nearest,
                             slice(nodes.min(),
                                   nodes.max() + 1),]

                # Picking the nearest value
                variables[var] = block[
                        nodes - nodes.min(),
           …

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Angie-P
Comment options

Comment options

You must be logged in to vote
1 reply
@loriscalgaro
Comment options

Answer selected by Angie-P
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Angie-P
Comment options

Comment options

You must be logged in to vote
0 replies
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