/
Untitled1.py
47 lines (26 loc) · 839 Bytes
/
Untitled1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# coding: utf-8
# In[1]:
get_ipython().magic(u'config InlineBackend.rc = {}')
import matplotlib
matplotlib.rc_file('C:\\Users\\sleblan2\\Research\\python_codes\\file.rc')
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import numpy as np
import scipy.io as sio
import Sp_parameters as Sp
import hdf5storage as hs
import load_modis as lm
import os
# In[2]:
hs.__version__
# In[3]:
from mpl_toolkits.basemap import Basemap,cm
# In[4]:
get_ipython().magic(u'matplotlib notebook')
# In[6]:
fp_lut_mat = 'C:\\Users\\sleblan2\\Research\\NAAMES\\lut\\v2_NAAMES_lut.mat'
print('Loading the lut file:{}'.format(fp_lut_mat))
if not os.path.isfile(fp_lut_mat):
print('File {} does not exist'.format(fp_lut_mat))
raise IOError('LUT File not found: {}'.format(fp_lut_mat))
luts = hs.loadmat(fp_lut_mat)