Skip to content

Commit

Permalink
utils error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Narayana-Rao committed Oct 11, 2024
1 parent 2ff2ef1 commit 5f569ba
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 13 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,40 @@ pst.polsar.fp.mf4cf(T3_folder,window_size=window_size)

ps,pd,pv,pc,tfp,taufp = pst.polsar.fp.mf4cf(T3_folder,window_size=window_size,write_flag=False)

#%%
compact_c2 = r'./sample_data/compact_pol/C2_RHV'

cr = pst.polsar.cp.cprvi(compact_c2,chi_in=45,window_size=3, write_flag=False)
dcp = pst.polsar.cp.dopcp(compact_c2,chi_in=45,window_size=3, write_flag=False)
ccp = pst.polsar.cp.mf3cc(compact_c2,chi_in=45,window_size=3, write_flag=False)
socp = pst.polsar.cp.misomega(compact_c2,chi_in=45,psi_in=0,window_size=3, write_flag=False)
print('compact pol')
#%%
full_T3 = r'./sample_data/full_pol/T3'

cf3 = pst.polsar.fp.mf3cf(full_T3,window_size=3,write_flag=False)
cf4 = pst.polsar.fp.mf4cf(full_T3,window_size=3,write_flag=False)
dfp = pst.polsar.fp.dopfp(full_T3,window_size=3,write_flag=False)
gr = pst.polsar.fp.grvi(full_T3,window_size=3,write_flag=False)
rv = pst.polsar.fp.rvifp(full_T3,window_size=3,write_flag=False)
pr = pst.polsar.fp.prvifp(full_T3,window_size=3,write_flag=False)

print('full pol')

#%%

dxp_C2 = r'./sample_data/dual_pol/C2_VVVH'

dpr = pst.polsar.dxp.dprvi(dxp_C2,window_size=3,write_flag=False)
rvdp = pst.polsar.dxp.rvidp(dxp_C2,window_size=3,write_flag=False)
prvdp = pst.polsar.dxp.prvidp(dxp_C2,window_size=3,write_flag=False)
ddp = pst.polsar.dxp.dopdp(dxp_C2,window_size=3,write_flag=False)

print('dual cross-pol')




```

#### sample use case is provided in [tests](https://github.com/Narayana-Rao/polsartools/tree/main/tests)
Expand Down
5 changes: 3 additions & 2 deletions build/lib/polsartools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
warnings.filterwarnings("ignore")


__version__ = '0.4' # update current version
__version__ = '0.4.1' # update current version

from . import polsar
from . import preprocessing
from . import preprocessing
from . import utils
Binary file not shown.
Binary file added dist/polsartools-0.4.1.tar.gz
Binary file not shown.
Binary file removed dist/polsartools-0.4.tar.gz
Binary file not shown.
8 changes: 2 additions & 6 deletions meta
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ python setup.py sdist

python -m twine check dist/*

python -m twine upload --repository-url https://pypi.org/project/polsartools dist/*
python -m twine upload dist/*

python -m twine upload --repository-url https://upload.pypi.org dist/*
enter token

python -m twine upload -r testpypi dist/*


python -m twine upload --repository-url https://pypi.org/project/polsartools/ dist/polsartools-0.4.tar.gz

################### REFERNCES
https://packaging.python.org/en/latest/tutorials/packaging-projects/
Expand Down
4 changes: 2 additions & 2 deletions polsartools.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: polsartools
Version: 0.4
Version: 0.4.1
Summary: A package for processing Polarimetric Synthetic Aperture Radar (PolSAR) data.
Author: Narayanarao Bhogapurapu
Author-email: bnarayanarao@iitb.ac.in
Expand Down Expand Up @@ -50,7 +50,7 @@ pip install polsartools

#### gdal installation error fix

```conda install -c conda-forge gdal```
```conda install gdal```

#### Example
```python
Expand Down
5 changes: 3 additions & 2 deletions polsartools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
warnings.filterwarnings("ignore")


__version__ = '0.4' # update current version
__version__ = '0.4.1' # update current version

from . import polsar
from . import preprocessing
from . import preprocessing
from . import utils
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def run(self):

setup(
name='polsartools',
version='0.4',
version='0.4.1',
description='A package for processing Polarimetric Synthetic Aperture Radar (PolSAR) data.',
author='Narayanarao Bhogapurapu',
author_email='bnarayanarao@iitb.ac.in',
Expand Down

0 comments on commit 5f569ba

Please sign in to comment.