-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrequest_current_data.py
35 lines (26 loc) · 1.02 KB
/
request_current_data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /usr/bin/env python
from functions import common
# Go to ooinet.oceanobservatories.org, log in and find your username under your user profile.
username = 'API USERNAME'
token = 'API TOKEN'
# Specify your inputs for the data request. Use http://ooi.visualocean.net as a reference.
sub_site = 'RS03AXPS'
platform = 'SF03A'
instrument = '2A-CTDPFA302'
delivery_method = 'streamed'
stream = 'ctdpf_sbe43_sample'
# note that requests are sent for the entire stream, from which the parameter input here is parsed out for plotting.
parameter = 'corrected_dissolved_oxygen'
output_csv = True # set to true if you want to write data to a csv file in csv_output folder.
common.requestNow(
username,
token,
sub_site,
platform,
instrument,
delivery_method,
stream,
parameter,
write_csv = output_csv)
# Run the script from a linux or unix shell $ python request_current_data.py &
# The & will allow you to modify parameters in the script and fire up another plot alongside the existing plot.