-
Notifications
You must be signed in to change notification settings - Fork 11
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
NDBC data #137
Comments
What are your preferred web api to download NDBC data? Thanks |
Hello Saeed,
Here are two ways I usually get the NDBC data:
https://github.com/NOAA-EMC/WW3-tools/blob/develop/ww3tools/downloadobs/wfetchbuoy.py
also this is a good tool as well:
https://pypi.org/project/NDBC/
Cheers,
*--------------------------------------------------------*
*Ali Salimi-Tarazouj, Ph.D.*
Physical Scientist, Coastal Engineer
Lynker at NOAA/NWS/NCEP/EMC
5830 University Research Court
College Park, Maryland, 20740
Office: (202) 964-0965
Mobile: (302) 588-5505
…On Wed, May 8, 2024 at 10:39 AM Saeed Moghimi ***@***.***> wrote:
@AliS-Noaa <https://github.com/AliS-Noaa> @aliabdolali
<https://github.com/aliabdolali>
What are your preferred web api to download NDBC data?
Thanks
—
Reply to this email directly, view it on GitHub
<#137 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4J7D7UFM5GI22CYFH3JHM3ZBI2LBAVCNFSM6AAAAABHNCR5C2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQG42DKNRUHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
From a correspondence with one of our colleagues:
|
During our meeting on June 5th we discussed the following items/tasks related to NDBC data:
Todo:
|
Hi @pmav99 today we discussed @abdu558's NDBC implementation. I suggested that he implements everything based on the "new" API (as in #125), but instead of using the Also we discussed whether to combine all data into a single dataframe or not and whether to keep the missing value columns, etc. I suggested discussing those in the next group meeting next week. @abdu558, can you please summarize your questions here as well so that we can discuss them more constructively next week? |
@abdu558, I forgot to ask, what is the state of conda package for |
Response from NDBC:
|
Thanks Soroosh. more on QC here: https://www.ndbc.noaa.gov/faq/qc.shtml |
You answered most of them but one that im not 100% sure of is if when multiple stations:
this is the one that im not 100% sure of |
@abdu558 different providers return different data. For example, when you try to retrieve data from a bunch of IOC stations you will end up with dataframes with different number of columns and different column names. E.g. https://www.ioc-sealevelmonitoring.org/bgraph.php?code=aden&output=tab&period=0.5&endtime=2018-06-07 Merging these will result in with a bunch of columns with NaNs. This is problematic because NaNs are floats and consume quite a bit of RAM. If you are retrieving hundreds/thousands of stations for many years this can quickly become problematic Furthermore, since you can't really know which column will have data for each station, you will end up calling Alternatively, you can just avoid merging in the first place. If somebody wants to merge the dictionary it is trivial to do so. E.g.: data = {
"st1": pd.DataFrame(index=["2020", "2021"], data={"var1": [111, 222]}),
"st2": pd.DataFrame(index=["2021", "2022", "2023"], data={"var2": [1, 2, 3], "var3": [0, float("nan"), float("nan")]}),
}
merged = pd.concat(data, names=["station_id", "time"]).reset_index(level=0)
print(data)
print(merged) |
https://www.ndbc.noaa.gov/
See an example here:
https://github.com/saeed-moghimi-noaa/prep_obs_ca
The text was updated successfully, but these errors were encountered: