-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
FileNotFoundError Traceback (most recent call last)
Cell In[28], line 29
24 ax.set_title("{} Ma".format(time), fontsize=title_size)
25 input_filename = os.path.join(
26 input_dir,
27 "probability_grid_{}Ma.nc".format(time),
28 )
---> 29 raster = gplately.Raster(
30 plate_reconstruction=model,
31 data=input_filename,
32 time=time,
33 )
34 raster.data *= 100.0
35 im = raster.imshow(
36 ax=ax,
37 cmap=cmap,
(...)
40 zorder=1,
41 )
File ~/miniconda3/envs/sdm/lib/python3.12/site-packages/gplately/grids.py:1536, in Raster.__init__(self, data, plate_reconstruction, extent, realign, resample, time, origin, **kwargs)
1533 if isinstance(data, str):
1534 # Filename
1535 self._filename = data
-> 1536 self._data, lons, lats = read_netcdf_grid(
1537 data,
1538 return_grids=True,
1539 realign=realign,
1540 resample=resample,
1541 )
1542 self._lons = lons
1543 self._lats = lats
File ~/miniconda3/envs/sdm/lib/python3.12/site-packages/gplately/grids.py:191, in read_netcdf_grid(filename, return_grids, realign, resample)
188 label_z = label_z + [label.capitalize() for label in label_z] + [label.upper() for label in label_z]
190 # open netCDF file and re-align from -180, 180 degrees
--> 191 with netCDF4.Dataset(filename, 'r') as cdf:
192 keys = cdf.variables.keys()
194 # find the names of variables
File src/netCDF4/_netCDF4.pyx:2470, in netCDF4._netCDF4.Dataset.__init__()
File src/netCDF4/_netCDF4.pyx:2107, in netCDF4._netCDF4._ensure_nc_success()
FileNotFoundError: [Errno 2] No such file or directory: 'outputs/grids/probability_grid_160Ma.nc'
Metadata
Metadata
Assignees
Labels
No labels