Skip to content

Wet Bulb Function 'memoryview' Error #1702

Answered by jthielen
jsillin asked this question in Q&A
Discussion options

You must be logged in to vote

I suspect something weird in xarray is happening (i.e., that .data is not converting its internal memoryview to a loaded ndarray), but am not sure. (EDIT: see below discussion...it looks like this is just sound_dp being a pint Quantity in this case.) Would you be able to list the following?

type(sound_pres.data)
type(sound_temps.data)
type(sound_dp.data)

Also, what happens if you use .values (which forces ndarray) instead of .data (which is just supposed to by ndarray-like)?

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@jthielen
Comment options

@jsillin
Comment options

@jsillin
Comment options

@jthielen
Comment options

@dopplershift
Comment options

Answer selected by dopplershift
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