OpenDrift / opendrift

Open source framework for ocean trajectory modelling
https://opendrift.github.io
GNU General Public License v2.0
232 stars 113 forks source link

o.get_variables_along_trajectory #1218

Closed HatYaz closed 4 months ago

HatYaz commented 5 months ago

Subject: Inquiry about 'get_variables_along_trajectory' Attribute Error in OpenDrift

Dear OpenDrift Specialist,

I hope this message finds you well. I am currently working on a project involving the use of OpenDrift for trajectory simulations. While attempting to use the 'get_variables_along_trajectory' method as documented, I encountered an AttributeError.

Here is the relevant code snippet: cur_traj = o.get_variables_along_trajectory(variables=['x_sea_water_velocity', 'y_sea_water_velocity'], lons=lon_mtr, lats=lat_mtr, times=times_sim)

The error message I received is as follows:

AttributeError: 'OceanDrift' object has no attribute 'get_variables_along_trajectory'

I have reviewed the OpenDrift documentation, and it seems that 'get_variables_along_trajectory' should be a valid method for the 'OceanDrift' class. Could you please provide guidance on resolving this issue or clarify if there have been any changes in recent versions of OpenDrift that may affect the usage of this method?

Thank you in advance for your assistance.

knutfrode commented 4 months ago

Duplicate of https://github.com/OpenDrift/opendrift/issues/1220