FileNotFoundError Traceback (most recent call last)
F:\Anaconda3\lib\site-packages\mpl_toolkits\basemap\__init__.py in _readboundarydata(self, name, as_polygons)
1234 try:
-> 1235 bdatfile = open(os.path.join(basemap_datadir,name+'_'+self.resolution+'.dat'),'rb')
1236 bdatmetafile = open(os.path.join(basemap_datadir,name+'meta_'+self.resolution+'.dat'),'r')
FileNotFoundError: [Errno 2] No such file or directory: 'F:\\Anaconda3\\lib\\site-packages\\mpl_toolkits\\basemap_data\\gshhs_f.dat'
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_10252\3713777642.py in <module>
6 fig = plt.figure(figsize=(81.92,81.92), frameon=False, dpi=200)
7 fig.add_axes((0, 0, 1, 1))
----> 8 m = Basemap(rsphere=(6378137.00,6356752.3142),\
9 llcrnrlon=-10,llcrnrlat=-10,urcrnrlon=144.523212256745,urcrnrlat=8.10021320756799,\
10 resolution='f',area_thresh=10000,projection='lcc',lat_1=37,lat_2=65,lat_0=50,lon_0=15)
F:\Anaconda3\lib\site-packages\mpl_toolkits\basemap\__init__.py in __init__(self, llcrnrlon, llcrnrlat, urcrnrlon, urcrnrlat, llcrnrx, llcrnry, urcrnrx, urcrnry, width, height, projection, resolution, area_thresh, rsphere, ellps, lat_ts, lat_1, lat_2, lat_0, lon_0, lon_1, lon_2, o_lon_p, o_lat_p, k_0, no_rot, suppress_ticks, satellite_height, boundinglat, fix_aspect, anchor, celestial, round, epsg, ax)
1123 if self.resolution is not None:
1124 self.coastsegs, self.coastpolygontypes =\
-> 1125 self._readboundarydata('gshhs',as_polygons=True)
1126 # reformat for use in matplotlib.patches.Polygon.
1127 self.coastpolygons = []
F:\Anaconda3\lib\site-packages\mpl_toolkits\basemap\__init__.py in _readboundarydata(self, name, as_polygons)
1236 bdatmetafile = open(os.path.join(basemap_datadir,name+'meta_'+self.resolution+'.dat'),'r')
1237 except:
-> 1238 raise IOError(msg)
1239 polygons = []
1240 polygon_types = []
OSError: Unable to open boundary dataset file. Only the 'crude', 'low' and
'intermediate' resolution datasets are installed by default. If you
are requesting a 'high' or 'full' resolution dataset, you need to
install the `basemap-data-hires` package.
|