import h5py import numpy as np import math import matplotlib.pylab as plt f = h5py.File("3DSND_12MAY2016_0000_L1B_SA1.h5","r") ls = list(f.keys()) f1 = h5py.File("3DSND_12MAY2016_0100_L1B_SA1.h5", "r") ls1 = list(f1.keys()) f2 = h5py.File("3DSND_12MAY2016_0200_L1B_SA1.h5", "r") ls2 = list(f2.keys()) f3 = h5py.File("3DSND_12MAY2016_0300_L1B_SA1.h5", "r") ls3 = list(f3.keys()) f4 = h5py.File("3DSND_12MAY2016_0500_L1B_SA1.h5", "r") ls4 = list(f4.keys()) f5 = h5py.File("3DSND_12MAY2016_0600_L1B_SA1.h5", "r") ls5 = list(f5.keys()) A = np.array(f1['SND_MWIR1'])[0] A1 = np.array(f2['SND_MWIR1'])[0] A2 = np.array(f3['SND_MWIR1'])[0] A3 = np.array(f4['SND_MWIR1'])[0] A4 = np.array(f5['SND_MWIR1'])[0] A5 = np.array(f6['SND_MWIR1'])[0] #SND_MWIR1 is a particular band count data dict0 = {1:A} dict1 = {2:A1} dict2 = {3:A2} dict3 = {4:A3} dict4 = {5:A4} dict5 = {6:A5} dict_MWIR1 = {} for d in (dict0, dict1, dict2, dict3, dict4, dict5): dict_MWIR1.update(d) print dict_MWIR1[1][0][1]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)