Closed johannespletzer closed 3 years ago
I did check the dimensions and intended axis selection in the module 'by hand'
interp_hybrid_to_pressure(ds[
], ds.aps, ds.hyai, ds.hybi, p0=101325.0, new_levels=nlevels, lev_dim='ilev', method='linear')
@JPletzer, It's my understanding that this function doesn't support xr.Dataset
which is what is being passed to the function via ds[_vars]
https://github.com/NCAR/geocat-comp/blob/eae0d27f353db2bfae9ae36ad2b615fdca66cf44/src/geocat/comp/interp_hybrid_to_pressure.py#L37
You need to pass a specific variable by replacing ds[_vars]
by ds[NAME_OF_A_SINGLE_VARIBLE]
@andersy005 Thank you very much for your quick reply. This clearly is the answer. I don't know why I expected it to work for a dataset instead of an array.
Describe the bug I want to interpolate hybrid model levels to pressure levels. When running the function I get the error message ´'Frozen' object has no attribute 'index'´
To Reproduce Steps to reproduce the behavior:
Expected behavior No failure
Screenshots
OS: Unix
Environment