OpenDrift / opendrift

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

Question about io_netcdf #792

Closed Boorhin closed 2 years ago

Boorhin commented 2 years ago

line77 var.setncattr('coordinates', 'lat lon time') Is added as an attribute of the variables while initialising the netcdf. I don't understand this as the variable has for coordinates ('trajectory', 'time') Is that an error? or is there a specific from CF that I am not understanding? Cheers

knutfrode commented 2 years ago

You are right, I have no idea where that strange line came from. So I have now removed it: https://github.com/OpenDrift/opendrift/pull/793

Boorhin commented 2 years ago

Sorry just found also a minor one with a range starting by 0 line 93 0:num_steps_to_export Could be :num_steps_to_export