opendrift
opendrift copied to clipboard
time decode error since v1.11.13
I'm running a backwards simulation using daily data acquired from Copernicus. On an old version of opendrift (v1.11.13), on an old laptop, it runs with no warnings or errors and produces sensible output. In the latest version, installed on a newer laptop, (v1.13.1), it gives a warning, then it runs the simulation, but at the end, it errors with a sequence of messages, all copied below. My question is whether I can install the older version of the code on the newer laptop? I rummaged for retrospective versions, but couldn't see them here. I can provide more run/data details, but I'm using the same code and input file on both systems.
Grateful for any pointers, Jill
--> Warning: Chunk size for dimension time is 31. Reopening dataset with chunk time:1.
--> Error sequence: File "C:[etc etc]\opendrift\models\basemodel_init_.py", line 116, in inner r = func(self, *args, **kwargs)
File "C:[etc etc]\opendrift\models\basemodel_init_.py", line 2178, in run self.state_to_buffer(final=True) #Append final status to buffer
File "C:[etc etc]\opendrift\models\basemodel_init_.py", line 2244, in state_to_buffer insert_time = self.result.time.sel(time=self.time, method='backfill').values
File "C:[etc etc]\miniforge3\envs\opendrift\Lib\site-packages\xarray\core\dataarray.py", line 1698, in sel ds = self._to_temp_dataset().sel(
File "C:[etc etc]\miniforge3\envs\opendrift\Lib\site-packages\xarray\core\datatset.py", line 2890, in sel query_results = map_index_queries(
File "C:[etc etc]\miniforge3\envs\opendrift\Lib\site-packages\xarray\core\indexing.py", line 196, in map_index_queries results.append(index.sel(labels, **options))
File "C:[etc etc]\miniforge3\envs\opendrift\Lib\site-packages\xarray\core\indexes.py", line 787, in sel raise KeyError( KeyError: "not all values found in index 'time'"