fixing cpt table plumbing bug in isce2geotiff.py

LT1AB
kmaterna 2022-06-30 12:52:15 -07:00
parent 31bb73ba95
commit ef57de53e0
1 changed files with 1 additions and 5 deletions

View File

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