ioos / colocate

Co-locate oceanographic data by establishing constraints
MIT License
5 stars 9 forks source link

function for grabbing list of erddaps in erddapy #22

Open MathewBiddle opened 3 years ago

MathewBiddle commented 3 years ago

Looks like this function is built into erddapy: https://github.com/oceanhackweek/ohw19-project-co_locators/blob/f0b9b24e25aff33ed49b842dafe4c035380a91fa/colocate/run.py#L25-L42

See https://github.com/ioos/erddapy/blob/b0cd740fb01cfafd337727d15a4703953459f437/erddapy/servers.py#L14-L35

MathewBiddle commented 2 years ago

checkout this merged PR https://github.com/ioos/erddapy/pull/199

mwengren commented 2 years ago

Should be a one line replace of the get_erddaps() function used in run.py with:

from erddapy.servers import servers

hopefully. Also used in run.py here as well, and maybe some other places?

Example usage in erddapy: https://github.com/ioos/erddapy/blob/main/erddapy/multiple_server_search.py#L65-L67.