Skip to content

Commit

Permalink
a bug in new_dim
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Souri committed Oct 28, 2022
1 parent db4119a commit 28788da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GEOAkaze/GEOAkaze_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ def read_rad(self,fname,typesat,bandindex=None,w1=None,w2=None, new_dim = False)
# averaging radiance
if not (w1 is None): #w1 and w2 should be set or none of them
if new_dim:
rad = np.nanmean(rad[:,:,w1:w2],axis=0)
rad = np.nanmean(rad[:,:,w1:w2],axis=2)
else:
rad = np.nanmean(rad[w1:w2,:,:],axis=0)
else:
if new_dim:
rad = np.nanmean(rad[:,:,:],axis=2)
else:
rad = np.nanmean(rad[:,:,:],axis=2)
rad = np.nanmean(rad[:,:,:],axis=0)

elif typesat == 2: #landsat (nc)
rad = self.read_netcdf(fname,'Landsat')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
readme = f.read()

setup(name='GEOAkaze',
version='0.2.3',
version='0.2.4',
description='Geolocation correction using Akaze',
long_description=readme,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 28788da

Please sign in to comment.