raktim-ghosh / poldecomp

Polarimetric Synthetic Aperture Radar (PolSAR) Decomposition Modelling
https://pypi.org/project/poldecomp/
Other
28 stars 11 forks source link

'NoneType' object has no attribute 'RasterCount' #1

Closed noureddinebenhalima closed 1 year ago

noureddinebenhalima commented 1 year ago

i have problem with image tif , how i can find image tif contain cohrence matrix and covariance matrix

raktim-ghosh commented 1 year ago

Image Tif doesn't contain a coherency or covariance matrix. By utilizing the HH, HV, VH, and VV combination of SAR, those matrices are generated.

noureddinebenhalima commented 1 year ago

Hi sir . how i can get this image , i need '' image San Francisco '' , if you have but we here have four image hh , hv , vh , vv how can I do four images in one image '' tif '' thanks a lot sir cordially ...

On Tue, 8 Aug 2023, 10:39 Raktim Ghosh, @.***> wrote:

Closed #1 https://github.com/raktim-ghosh/poldecomp/issues/1 as completed.

— Reply to this email directly, view it on GitHub https://github.com/raktim-ghosh/poldecomp/issues/1#event-10033339640, or unsubscribe https://github.com/notifications/unsubscribe-auth/A32Q36EALFJDQSQRM2OK2V3XUICLRANCNFSM6AAAAAA3F453V4 . You are receiving this because you authored the thread.Message ID: @.***>

raktim-ghosh commented 1 year ago

You can try layer stacking in Python to merge HH, HV, VH, and VV into one tensor. Before that don't forget to separate the amplitude and phase for all the channels. Therefore, you will have 4 * 2 = 8 different channels.

noureddinebenhalima commented 1 year ago

hollo sir how are you i have this error or warnings : '' Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples'' and this error '' poldecomp__init__.py:1850: divide by zero encountered in double_scalars ps[i, j] = s[i, j] - abs((c[i, j] np.conj(c[i, j]))) / d[i, j] poldecomp__init__.py:1851 RuntimeWarning: divide by zero encountered in log10 return [10 np.log10(abs(ps)), 10 np.log10(abs(pd)), poldecomp__init__.py:1852: RuntimeWarning: divide by zero encountered in log10 10 np.log10(abs(pv)), 10 * np.log10(abs(pc))] knowing i changed 3 different images sir ,how can i solve that