{"cells":[{"cell_type":"markdown","metadata":{"_cell_guid":"362ccaf7-89aa-13a0-924c-df832d116a15"},"source":"Will Python Libraries be Available?\n==================================="},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"2a231860-110a-eca9-b0db-845e7811835d"},"outputs":[],"source":"import json\n#import geojson #sudo -H pip3 install --upgrade geojson\n#import shapely #sudo apt-get install python-shapely\n#import gdal #sudo apt-get install python3-gdal\n#from gdalconst import *"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"7fc8bb5e-a7e2-a453-2030-7edf3fc75d86"},"outputs":[],"source":"#img_filename_16bandA = '../input/sixteen_band/6100_1_3_A.tif' #need to expand to full path\n#img_filename_16bandM = '../input/sixteen_band/6100_1_3_M.tif' #need to expand to full path\n#img_filename_16bandP = '../input/sixteen_band/6100_1_3_P.tif' #need to expand to full path\n\n#datasetA = gdal.Open(img_filename_16bandA, GA_ReadOnly )\n#datasetM = gdal.Open(img_filename_16bandM, GA_ReadOnly )\n#datasetP = gdal.Open(img_filename_16bandP, GA_ReadOnly ) \n\n#print ('Size is ',datasetA.RasterXSize,'x',datasetA.RasterYSize, 'x',datasetA.RasterCount)\n#print ('Size is ',datasetM.RasterXSize,'x',datasetM.RasterYSize, 'x',datasetM.RasterCount)\n#print ('Size is ',datasetP.RasterXSize,'x',datasetP.RasterYSize, 'x',datasetP.RasterCount)"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"ef25ea7c-7b1f-2f0f-1f4b-8b1fe59dd82f"},"outputs":[],"source":"#import tifffile as tiff\n#import matplotlib.pyplot as plt\n#%matplotlib inline\n\n#P = tiff.imread(img_filename_16bandP) \n#tiff.imshow(P)"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"2d9332ea-f632-aaf4-3614-afbbd0a99b3c"},"outputs":[],"source":"import os, glob\nimport cv2\nimport matplotlib.pyplot as plt\nimport matplotlib.animation as animation\n\nfig = plt.figure(frameon=False)\nfig.set_size_inches(400/fig.dpi,400/fig.dpi)\nax = fig.add_subplot(111)\nax.set_axis_off()\nfig.subplots_adjust(left=0, bottom=0, right=1, top=1, wspace=None, hspace=None)\nframes = glob.glob(\"..input/three_band/*.tif\")\nframes = [(ax.imshow(cv2.cvtColor(cv2.resize(cv2.imread(y), (600, 100)), cv2.COLOR_BGR2RGB)), ax.set_title(''), ax.annotate('', (5,5))) for x,y in enumerate(frames)]\nvid = animation.ArtistAnimation(fig, frames, interval=200, repeat_delay=200, blit=True)\nvid.save('vid.gif', writer='imagemagick')\nplt.show()\nplt.clf()"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"81f4e2ee-dbf0-87f6-f8d7-3e15b2bc93cd"},"outputs":[],"source":""}],"metadata":{"_change_revision":0,"_is_fork":false,"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.5.2"}},"nbformat":4,"nbformat_minor":0}