Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It does not work again with the new links #1383

Open
LEO-SUJIAFU opened this issue Aug 23, 2024 · 8 comments
Open

It does not work again with the new links #1383

LEO-SUJIAFU opened this issue Aug 23, 2024 · 8 comments

Comments

@LEO-SUJIAFU
Copy link

          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 #1324 (comment)

@LEO-SUJIAFU LEO-SUJIAFU changed the title It seems that this URL works well, and contains both history since 2013 and a 7 day forecast: It still does not work with the new links. Aug 23, 2024
@knutfrode
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

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 LEO-SUJIAFU changed the title It still does not work with the new links. It does not work again with the new links Sep 13, 2024
@LEO-SUJIAFU
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants