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

CO-OPS wind product #154

Open
AtiehAlipour-NOAA opened this issue Jul 16, 2024 · 3 comments
Open

CO-OPS wind product #154

AtiehAlipour-NOAA opened this issue Jul 16, 2024 · 3 comments
Labels

Comments

@AtiehAlipour-NOAA
Copy link

Hi, I am using searvey to retrieve CO-OPS wind observation data. I am requesting the CO-OPS wind product, and as you mentioned, I am expecting this list of variables: {"t": "time", "s": "speed", "d": "degree", "dr": "direction", "g": "gust", "f": "flags"} , However, the code is returning different variables and values:

image

I would greatly appreciate your help. Thanks!

@AtiehAlipour-NOAA
Copy link
Author

An example co-ops wind observation data for the region I am interested: https://tidesandcurrents.noaa.gov/met.html?bdate=20240707&edate=20240709&units=standard&timezone=GMT&id=8771972&interval=6

Here is my code:

bbox = shapely.box(Region[0], Region[2], Region[1], Region[3])
station_ds= searvey.coops.coops_product_within_region('wind', region=bbox, start_date=datetime.fromtimestamp(nowcast_2d_all.time.values[0].astype(int) * 1e-9)
, end_date=datetime.fromtimestamp(nowcast_2d_all.time.values[-1].astype(int) * 1e-9))

for this date range of start_date=datetime.datetime(2024, 7, 7, 0, 0) and end_date=datetime.datetime(2024, 7, 10, 0, 0)

@AtiehAlipour-NOAA
Copy link
Author

Similar result when I use coops.COOPS_Station:

station= searvey.coops.COOPS_Station(8771972) 
station_df = station.product(start_date=datetime.fromtimestamp(nowcast_2d_all.time.values[0].astype(int) * 1e-9, tz=timezone.utc)
, end_date=datetime.fromtimestamp(nowcast_2d_all.time.values[-1].astype(int) * 1e-9, tz=timezone.utc), product='wind')
station_df

Thanks for your help!

@AtiehAlipour-NOAA
Copy link
Author

Thanks to @SorooshMani-NOAA's help, I was able to extract wind observation data.

image

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

No branches or pull requests

2 participants