Merge pull request #514 from kmaterna/main

fixing cpt table plumbing in isce2geotiff.py
LT1AB
Ryan Burns 2023-01-17 13:30:19 -08:00 committed by GitHub
commit 275698d1bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -33,10 +33,6 @@ def cmdLineParse():
help='Number of colors')
inps = parser.parse_args()
if inps.table is not None:
if inps.reversemap:
raise Exception('Only matplotlib colormaps can be reversed')
return inps
@ -94,7 +90,7 @@ if __name__ == '__main__':
cmap = get_cmap(inps.cmap, inps.ncolors, inps.clim)
plt_cmap = True
else:
cmap = table
cmap = inps.table
plt_cmap = False