尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證AQUAVIEW Python SDK
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Python SDK for the AQUAVIEW oceanographic and environmental data catalog.
Beyond catalog search, aquaview.Client exposes AQUAVIEW's data sources and
curated collections:檢視完整 README ↗Python SDK for the AQUAVIEW oceanographic and environmental data catalog.
📖 Full API reference: docs/api-reference.md
AI agents: https://mcp.aquaview.org/mcp (learn more)
Interactive discovery map: https://aquaview.org/explore
Read more on our blog: https://aquaview.org/blog
pip install aquaview
import aquaview
client = aquaview.connect()
# List STAC collections
for col in client.get_collections():
print(f"{col.id}: {col.title}")
# Search for datasets
search = client.search(
collections=["IOOS"],
bbox=[-71, 42, -70, 43],
datetime="2023-01-01/2023-12-31",
limit=10,
)
for item in search.items():
print(item.id, item.properties.get("title"))
# Multiple collections, bounding box, time range
search = client.search(
collections=["NDBC", "IOOS"],
bbox=[-75, 35, -70, 40],
datetime="2024-01-01/2024-12-31",
)
# CQL2 property filters
search = client.search(
filter={
"op": "like",
"args": [{"property": "aquaview:variables"}, "%temperature%"],
},
filter_lang="cql2-json",
)
# As GeoJSON
fc = client.search(collections=["IOOS"], limit=5).item_collection_as_dict()
Beyond catalog search, aquaview.Client exposes AQUAVIEW's data sources and
curated collections:
import aquaview
client = aquaview.Client()
# Queryable data sources (id, description, variables, limits, columns)
for src in client.get_sources():
print(src["source_id"], "—", src["description"])
# One source's detail
wod = client.get_source("WOD")
print(wod["canonical_variables"])
# Curated, theme-based collections (region / platform / use case)
for col in client.get_curated_collections():
print(col["id"], "—", col["title"])
# Search still works — it delegates to pystac-client
search = client.search(collections=["IOOS"], bbox=[-71, 42, -70, 43], limit=5)
for item in search.items():
print(item.id)
get_data() slices a source and returns the bytes, or streams them straight to
a file:
client.get_data(
"WOD",
variables=["temperature", "salinity"],
bbox=[-71, 42, -70, 43],
datetime="2020-01-01/2020-12-31",
limit=1000,
format="csv", # parquet | csv | arrow | ipc | netcdf
to_file="wod.csv", # omit to get the bytes back instead
)
# Similar datasets, and the Beacon schema
client.get_similar("IOOS", "unit_1190-20241218T1433-delayed", limit=5)
client.get_schema()
For pulls too big to stream inline, run them as a background job. submit_export
returns a handle you poll and then download — the result is partitioned into one
file per time shard. Requires an API key.
client = aquaview.Client(api_key="sk_...")
job = client.submit_export("WOD", ["temperature"], bbox=[-80, 20, -60, 45])
job.wait() # blocks until done (or raises JobError)
paths = job.download("wod_export/") # -> ["wod_export/part-0000.parquet", ...]
# Or fire-and-forget:
job = client.submit_export("WOD", ["temperature"])
job.status() # {"status": "running", "progress": {...}, ...}
Pass an API key (mint one in the portal under Settings → API keys) — or set
AQUAVIEW_API_KEY — to reach gated data and account endpoints:
client = aquaview.Client(api_key="sk_...")
client.get_usage() # your usage, limits, warnings
client.interpret("warm water off Florida in 2024") # NL → structured filters
# Ask the agent — chat() returns the final answer; chat_stream() yields live events
print(client.chat("what glider data is off the east coast?"))
for event in client.chat_stream("summarize WOD coverage in the Gulf"):
print(event["event"], event["data"])
Errors come back as aquaview.AquaviewAPIError with .status, .code
(e.g. query_too_large), .message, and the raw .payload.
aquaview.Client is the full surface:
| Area | Methods |
|---|---|
| Search (STAC) | search(), get_collections(), get_collection(id) |
| Sources & collections | get_sources(), get_source(id), get_curated_collections() |
| Data & discovery | get_data(...), submit_export(...) → ExportJob, get_similar(...), get_schema() |
| Account (needs key) | get_usage() |
| NL & chat | interpret(query), chat(message), chat_stream(message) |
aquaview.connect() remains a shortcut that returns a
pystac_client.Client for
search-only use.
MIT