dopplerchase / DRpy

python package to open GPM-DPR files into xarray to leverage xarray perks
MIT License
32 stars 11 forks source link

AttributeError: 'GPMDPR' object has no attribute 'xrds' #11

Closed wanggang19830806 closed 2 years ago

wanggang19830806 commented 2 years ago

Hi Randy J. Chase: There are one questions. When I get dpr with the code:

filename = glob.glob('2A*')

dpr = drpy.core.GPMDPR('E:/P05.DATA/GPM/V7A/2A.GPM.DPR.V9-20211125.20220221-S211927-E225158.045366.V07A.HDF5') dpr.xrds

Here's the full error: AttributeError: 'GPMDPR' object has no attribute 'xrds'

HOW can I get the correct dpr.xrds display and be able to use them?

syedhamidali commented 2 years ago

you can try dpr.ds

dopplerchase commented 2 years ago

Hello,

Yes. In the big refactor I made the xarray dataset just as dpr.ds instead. I am working on the docs, but this project is something I work on in my free time. So it is taking me a while.

If you want the old code, you can revert your git clone back to it.

git reset 391775ec5038a6759252051412705eb667044e0a

Then re-install (pip install . ). This should take you back to the old syntax

Cheers, Randy

wanggang19830806 commented 2 years ago

dpr.ds is right, Thanks to the above two