TUW-GEO / ascat

Read and visualize data from the Advanced Scatterometer (ASCAT) on-board the series of Metop satellites
https://ascat.readthedocs.io/
MIT License
23 stars 16 forks source link

cdr.py > 'numpy.ndarray' object has no attribute 'filled' #36

Closed ninadel closed 4 years ago

ninadel commented 4 years ago

https://github.com/TUW-GEO/ascat/blob/39548cb95e1d011bbbcc78e4de8c8c1d4e41844a/ascat/read_native/cdr.py#L232

I am trying to use this package for this pytesmo validation example: https://pytesmo.readthedocs.io/en/latest/examples.html#example-soil-moisture-validation-ascat-ismn and am getting the error 'numpy.ndarray' object has no attribute 'filled'

sebhahn commented 4 years ago

Could you please post the full stack-trace? Which version of ascat and netCDF4 are you using to run the example?

ninadel commented 4 years ago

validation_framework_error.txt

I am using ascat 1.0.2 netcdf4 1.2.8 pytesmo 0.8 pygeobase 0.3.18

sebhahn commented 4 years ago

I cannot reproduce your error. Do you have the static layer data?

ninadel commented 4 years ago

I am using the ISMN and ASCAT data from https://github.com/TUW-GEO/pytesmo-test-data

sebhahn commented 4 years ago

Could you please try to update netcdf4 to 1.4.2 or higher?

ninadel commented 4 years ago

Hello, I did a conda update all and my netcdf4 has been updated to 1.5.3. This resolves the above error message (although since I did an update all I can't tell if it was netcdf4 or another package). Thank you! It looks like the ascat & pytesmo installers do not require a specific version of netcdf4.