Skip to content

Is there any more efficient way to extract WPTO Hindcast data for large amount of lat-lon pairs? #253

Answered by ssolson
danuriyanto asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @radityadanu 👋 and thank you for your interest in MHKiT.

I get the same issue as you and it is due to the API. We are doing some overhauls to MHKiT improve our responses as best as possible from our end but we are quite limited in working with the hindcast API.

The summary is the API you are hitting will only allow you a few calls before it cuts you off. So at a minimum you need to add a wait time between API calls. Moreover I would reccomend saving each file between calls and performing a check to see where you left off.

For a suggestion I have grabbed your solution you posted on the rex GitHub which was very helpful and done an outline of what I suggest above:

from rex import WaveX
…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@danuriyanto
Comment options

@danuriyanto
Comment options

@ssolson
Comment options

Answer selected by danuriyanto
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@danuriyanto
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants