You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check more on the _[discovery methods guide](https://oceannetworkscanada.github.io/api-python-client/API_Guide.html#discovery-methods)_
77
+
Check more on the _[discovery methods guide](https://oceannetworkscanada.github.io/Oceans3.0-API/API_Guide.html#discovery-methods)_
78
78
and _[code examples](https://oceannetworkscanada.github.io/api-python-client/Code_Examples/index.html)_.
79
79
80
80
## Downloading data products
@@ -107,7 +107,7 @@ They also include a couple of filters to configure this specific data product ty
107
107
which can be obtained from the [Data Product Options](https://wiki.oceannetworks.ca/display/DP/Data+Product+Options) documentation.
108
108
You can download more than 120 different [types of data products](https://wiki.oceannetworks.ca/display/O2A/Available+Data+Products) including audio & video.
109
109
110
-
Check more on the _[data product download methods guide](https://oceannetworkscanada.github.io/api-python-client/API_Guide.html#data-product-download-methods)_
110
+
Check more on the _[data product download methods guide](https://oceannetworkscanada.github.io/Oceans3.0-API/API_Guide.html#data-product-download-methods)_
111
111
and _[code examples](https://oceannetworkscanada.github.io/api-python-client/Code_Examples/Download_Data_Products.html)_.
112
112
113
113
## Obtaining sensor readings in (near) real-time
@@ -125,13 +125,16 @@ params = {
125
125
"dateFrom": "2019-06-20T00:00:00.000Z",
126
126
"dateTo": "2019-06-20T00:00:05.000Z",
127
127
}
128
-
onc.getDirectByLocation(params)
128
+
onc.getScalardata(params)
129
+
130
+
# Longer method name
131
+
# onc.getScalardataByLocation(params)
129
132
```
130
133
131
134
The result includes matching lists of "values" and "sampleTimes" (increases performance for long time ranges).
132
135
We also use the property code "conductivity" to limit results to a specific property available in this CTD.
133
136
134
-
Check more on the _[near real-time data access methods guide](https://oceannetworkscanada.github.io/api-python-client/API_Guide.html#near-real-time-data-access-methods)_
137
+
Check more on the _[near real-time data access methods guide](https://oceannetworkscanada.github.io/Oceans3.0-API/API_Guide.html#near-real-time-data-access-methods)_
135
138
and _[code examples](https://oceannetworkscanada.github.io/api-python-client/Code_Examples/Request_Real_Time_Data.html)_.
136
139
137
140
## Downloading archived files
@@ -149,16 +152,19 @@ params = {
149
152
"dateFrom": "2016-12-01T00:00:00.000Z",
150
153
"dateTo": "2016-12-01T00:05:00.000Z",
151
154
}
152
-
result = onc.getListByLocation(params, allPages=True)
155
+
result = onc.getArchivefile(params, allPages=True)
156
+
157
+
# Longer method name
158
+
# result = onc.getArchivefileByLocation(params, allPages=True)
You can use the method `getFile()` as above to download individual files or the method `getDirectFiles()`
164
+
You can use the method `downloadArchivefile()` as above to download individual files or the method `downloadDirectArchivefile()`
159
165
to download all the files that match your filters.
160
166
161
-
Check more on the _[archive file download methods guide](https://oceannetworkscanada.github.io/api-python-client/API_Guide.html#archive-file-download-methods)_
167
+
Check more on the _[archive file download methods guide](https://oceannetworkscanada.github.io/Oceans3.0-API/API_Guide.html#archive-file-download-methods)_
162
168
and _[code examples](https://oceannetworkscanada.github.io/api-python-client/Code_Examples/Download_Archived_Files.html)_.
0 commit comments