Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
Fetch observational data
Browse files Browse the repository at this point in the history
Update fetch_noaa_nos script:
changed url to save observational data instead of prediction data.
  • Loading branch information
ted80810 authored Jan 4, 2022
1 parent 3651eb7 commit c536bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 01_fetch/src/fetch_noaa_nos.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def fetch_metadata(station_id, metadata_outfile, bucket, write_location, s3_clie

def fetch_noaa_nos_data(start_dt, end_dt, datum, station_id, time_zone, product, units, file_format, data_outfile, bucket, write_location, s3_client):
for products in product:
data_url = f'https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?product=predictions&application=NOS.COOPS.TAC.WL&begin_date=' \
data_url = f'https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?begin_date=' \
f'{start_dt}&end_date={end_dt}&datum={datum}&station={station_id}&product={products}&time_zone=' \
f'{time_zone}&units={units}&interval=&format={file_format}'
data_outfile_formatted = data_outfile.format(products=products, station_id=station_id)
Expand Down

0 comments on commit c536bf6

Please sign in to comment.