Skip to content

Commit bc650da

Browse files
committed
bugfix in save_gdal.py by @4restwilliams
1 parent f95d820 commit bc650da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mintpy/save_gdal.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525

2626

2727
EXAMPLE = """example:
28-
save_tif.py geo/geo_velocity.h5
29-
save_tif.py geo/geo_timeseries_ERA5_demErr.h5 -d 20200505_20200517 --of ENVI
30-
save_tif.py geo/geo_ifgramStack.h5 -d unwrapPhase-20101120_20110220 --of ISCE
31-
save_tif.py geo/geo_ifgramStack.h5 -d coherence-20101120_20110220 --of ISCE
28+
save_gdal.py geo/geo_velocity.h5
29+
save_gdal.py geo/geo_timeseries_ERA5_demErr.h5 -d 20200505_20200517 --of ENVI
30+
save_gdal.py geo/geo_ifgramStack.h5 -d unwrapPhase-20101120_20110220 --of ISCE
31+
save_gdal.py geo/geo_ifgramStack.h5 -d coherence-20101120_20110220 --of ISCE
3232
"""
3333

3434

@@ -125,11 +125,11 @@ def main(iargs=None):
125125
yStep = float(attr['Y_STEP'])
126126

127127
# convert array to raster
128-
reversed_arr = array[::-1]
129-
array2raster(reversed_arr, inps.outfile, inps.out_format, rasterOrigin, xStep, yStep)
128+
array2raster(array, inps.outfile, inps.out_format, rasterOrigin, xStep, yStep)
130129

131130
return
132131

133132

134133
if __name__ == "__main__":
135134
main()
135+

0 commit comments

Comments
 (0)