Pavan2k4 commited on
Commit
e691d83
·
verified ·
1 Parent(s): 4580190

Update Utils/convert_raster.py

Browse files
Files changed (1) hide show
  1. Utils/convert_raster.py +2 -2
Utils/convert_raster.py CHANGED
@@ -1,4 +1,4 @@
1
-
2
  import numpy as np
3
  import os
4
  import tempfile
@@ -11,7 +11,7 @@ except ImportError as e:
11
  st.write("Installed packages:")
12
  st.write(os.popen("pip list").read())
13
 
14
- def convert_gtiff_to_8bit(src):
15
  dst = src
16
  img = gdal.Open(src)
17
  driver = gdal.GetDriverByName('GTiff')
 
1
+ import streamlit as st
2
  import numpy as np
3
  import os
4
  import tempfile
 
11
  st.write("Installed packages:")
12
  st.write(os.popen("pip list").read())
13
 
14
+ def convert_gtiff_to_8bit(src):from osgeo import gdal
15
  dst = src
16
  img = gdal.Open(src)
17
  driver = gdal.GetDriverByName('GTiff')