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

Can't subset a TransformedCube #139

Closed
felixcremer opened this issue Nov 18, 2019 · 2 comments
Closed

Can't subset a TransformedCube #139

felixcremer opened this issue Nov 18, 2019 · 2 comments

Comments

@felixcremer
Copy link
Member

I have a cube c, which I transform to dB values via map and when I try to subset it, I get the following error.
When I first subset the cube and apply the dB function afterwards via map it works.

cdB = map(dB, c)
data = subsetcube(cdB, lat=(20.691, 20.69), lon=(-98.687, -98.686))
ERROR: MethodError: no method matching subsetcube(::ESDL.Cubes.TransformedCube{Union{Missing, Float32},4,typeof(dB)}; lat=(20.691, 20.69), lon=(-98.687, -98.686))
Closest candidates are:
  subsetcube(::Dataset; var, kwargs...) at /home/qe89hep/.julia/dev/ESDL/src/Cubes/Datasets.jl:69
  subsetcube(::CubeMem{T,N} where N; kwargs...) where T at /home/qe89hep/.julia/dev/ESDL/src/Cubes/Cubes.jl:126
  subsetcube(::ESDL.Cubes.ESDLZarr.ZArrayCube{T,M,A,S} where S where A<:(Zarr.ZArray{T,N,C,S} where S<:Zarr.AbstractStore where C<:Zarr.Compressor where N) where M; kwargs...) where T at /home/qe89hep/.julia/dev/ESDL/src/Cubes/ZarrCubes.jl:367
  ...
Stacktrace:
 [1] top-level scope at none:0
@felixcremer
Copy link
Member Author

This will be fixed by #137.

@felixcremer
Copy link
Member Author

This is fixed on master

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

1 participant