OpenDrift / opendrift

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

It does not work again with the new links #1383

Open LEO-SUJIAFU opened 3 months ago

LEO-SUJIAFU commented 3 months ago
          It seems that this URL works well, and contains both history since 2013 and a 7 day forecast:

https://www.ncei.noaa.gov/thredds-coastal/dodsC/hycom/hycom_sfc_agg/HYCOM_Surface_Aggregation_best.ncd

So I now replaced the two old tds.hycom.org URLs with this one in the examples and in data_sources.txt: https://github.com/OpenDrift/opendrift/pull/1326/files#diff-bee6fdd6382d055b008ee978f9e38d213dc52b8ed4f0be957e136df3d7b2fbd7

Originally posted by @knutfrode in https://github.com/OpenDrift/opendrift/issues/1324#issuecomment-2186217345

knutfrode commented 3 months ago

This new URL seems to work well for me https://www.ncei.noaa.gov/thredds-coastal/dodsC/hycom/hycom_sfc_agg/HYCOM_Surface_Aggregation_best.ncd

Does it not work for you?

LEO-SUJIAFU commented 3 months ago

This new URL seems to work well for me https://www.ncei.noaa.gov/thredds-coastal/dodsC/hycom/hycom_sfc_agg/HYCOM_Surface_Aggregation_best.ncd

Does it not work for you?

Dear Sir, thanks for your quick reply. I run the exemple_long_Vietnam and some parts of the results as followed. I can not figure out what's the problem.

15:25:45 INFO opendrift.models.basemodel:507: OpenDriftSimulation initialised (version 1.11.2 / v1.11.2-69-gb16198b-dirty) 15:25:45 INFO opendrift.models.leeway:309: Seeding elements of object type 26: LIFE-RAFT-NB-1 (Life-raft, no ballast (NB) system, general (mean values)) 15:25:45 INFO opendrift.models.basemodel.environment:218: Adding a dynamical landmask with max. priority based on assumed maximum speed of 5.0 m/s. Adding a customised landmask may be faster... 15:25:45 INFO opendrift.models.basemodel:885: Using existing reader for land_binary_mask 15:25:45 INFO opendrift.models.basemodel:896: All points are in ocean 15:25:45 INFO opendrift.models.basemodel:1985: 2024-08-23 13:25:45.272607 - step 1 of 72 - 1000 active elements (0 deactivated) 15:25:45 INFO opendrift.readers:75: Connection error for https://www.ncei.noaa.gov/thredds-coastal/dodsC/hycom/hycom_sfc_agg/HYCOM_Surface_Aggregation_best.ncd 15:25:45 WARNING opendrift.models.basemodel.environment:414: Reader could not be initialised, and is discarded: LazyReader: https://www.ncei.noaa.gov/thredds-coastal/dodsC/hycom/hycom_sfc_agg/HYCOM_Surface_Aggregation_best.ncd 15:25:45 INFO opendrift.readers:75: Connection error for https://pae-paha.pacioos.hawaii.edu/thredds/dodsC/ncep_global/NCEP_Global_Atmospheric_Model_best.ncd 15:25:45 WARNING opendrift.models.basemodel.environment:414: Reader could not be initialised, and is discarded: LazyReader: https://pae-paha.pacioos.hawaii.edu/thredds/dodsC/ncep_global/NCEP_Global_Atmospheric_Model_best.ncd 15:25:45 WARNING opendrift.models.basemodel:2275: Missing variables: ['x_wind', 'y_wind', 'x_sea_water_velocity', 'y_sea_water_velocity'] 15:25:45 WARNING opendrift.models.basemodel:2081: The simulation stopped before requested end time was reached. 15:25:45 INFO opendrift.models.basemodel:2083: ======================== 15:25:45 INFO opendrift.models.basemodel:2084: End of simulation:

ValueError: Simulation stopped within first timestep. "Missing variables: ['x_wind', 'y_wind', 'x_sea_water_velocity', 'y_sea_water_velocity']", 'The simulation stopped before requested end time was reached.'

knutfrode commented 3 months ago

Ok, seems you are getting "Connection error" for both HYCOM and NCEP thredds ULRs. For me this script is working fine https://opendrift.github.io/gallery/example_long_vietnam.html Perhaps something with your internet connection when the script was run?

You could also try to update OpenDrift to the latest version.

LEO-SUJIAFU commented 3 months ago

Ok, seems you are getting "Connection error" for both HYCOM and NCEP thredds ULRs. For me this script is working fine https://opendrift.github.io/gallery/example_long_vietnam.html Perhaps something with your internet connection when the script was run?

You could also try to update OpenDrift to the latest version.

Thanks for your explanation and I will update the OpenDrift version.

LEO-SUJIAFU commented 2 months ago

ValueError: Simulation stopped within first timestep. "Missing variables: ['x_sea_water_velocity', 'y_sea_water_velocity']", 'The simulation stopped before requested end time was reached.'

the problem appears again.

knutfrode commented 2 months ago

Yes, that HYCOM aggregate seemed to end 4th September.

There is a new version (ESPD), but unfortunately this stores u and v-components in different files/URLS, which cannot very easily be used: https://groups.google.com/a/hycom.org/g/forum/c/Wpe2lB812bk https://tds.hycom.org/thredds/catalog.html

A workaround for users here could be to open both of these with Xarray, and combine to one dataset, before creating an OpenDrift reader from this dataset.

LEO-SUJIAFU commented 2 months ago

Yes, that HYCOM aggregate seemed to end 4th September.

There is a new version (ESPD), but unfortunately this stores u and v-components in different files/URLS, which cannot very easily be used: https://groups.google.com/a/hycom.org/g/forum/c/Wpe2lB812bk https://tds.hycom.org/thredds/catalog.html

A workaround for users here could be to open both of these with Xarray, and combine to one dataset, before creating an OpenDrift reader from this dataset.

Thanks a lot for your timely response!

LEO-SUJIAFU commented 2 months ago

However, if I want use reader_arome and reader_norkyst with some data before, like one day in August, 2024. Where could I download the nc file directly in a correct format accepted by Opendrift. Could you provide a file link?

Thanks for your help in advance.