Closed SorooshMani-NOAA closed 3 months ago
@AtiehAlipour-NOAA this is the ticket related to station issue we talked about
@SorooshMani-NOAA, thank you for tagging me in this ticket. Please let me to talk to Armin and see what he suggests. Thanks!
Thank you @AtiehAlipour-NOAA for following up. To summarize:
[COOPS] do[es] not provide a single API that can retrieve all types of stations. Users need to explicitly request the list of stations they are interested in. The reason for this is that different types of stations have different types of data and formats, so this is the optimal way of obtaining data for most of their users.
and
[COOPS] server can easily handle 100 calls per second, so there shouldn't be any [rate] issues
also
it would be much easier to write a wrapper [... private API] might be feasible but involves too many logistics
COOPS web API seems to just return
waterlevel
stations when nothing is explicitly asked for in the parameters. We need to return all stations in thesearvey
API. See: https://api.tidesandcurrents.noaa.gov/mdapi/prod/#TypeTo further elaborate: The current state of COOPS web API means that when a user tries to get the list of all the stations,
searvey
needs to hit the COOPS servers with multiple requests.This also brings up the question about the rate limit for COOPS servers for either data and metadata.
To be more specific, ideally we'd like to be able to get all the stations using something like:
which is currently an error. The error states all valid types of stations: