Internals

OceanRobots.OceanOPS.get_listFunction
get_list(nam=:Argo; status="OPERATIONAL")

Get list of platform IDs from OceanOPS API.

For more information see

  • https://www.ocean-ops.org/api/1/help/
  • https://www.ocean-ops.org/api/1/help/?param=platformstatus
list_Argo1=OceanOPS.get_list(:Argo,status="OPERATIONAL")
list_Argo2=OceanOPS.get_list(:Argo,status="CONFIRMED")
list_Argo3=OceanOPS.get_list(:Argo,status="REGISTERED")
list_Argo4=OceanOPS.get_list(:Argo,status="INACTIVE")
source
OceanRobots.OceanOPS.get_list_posFunction
get_list_pos(nam=:Argo; status="OPERATIONAL")

Get list of platform positions from OceanOPS API.

For more information see

  • https://www.ocean-ops.org/api/1/help/
  • https://www.ocean-ops.org/api/1/help/?param=platformstatus
source
OceanRobots.OceanOPS.get_platformMethod
get_platform(i)

Get info on platform with id=i (e.g., float or drifter) from OceanOPS API.

For more information see https://www.ocean-ops.org/api/1/help/

list_Drifter=OceanOPS.get_list(:Drifter)
tmp=OceanOPS.get_platform(list_Drifter[1000])
source
OceanRobots.OceanOPS.get_urlFunction
get_url(nam=:Argo; status="OPERATIONAL")

API/GET URL to OceanOPS API that will list platforms of chosen type.

Two URLs are reported; the second includes platform positions.

For more information see

  • https://www.ocean-ops.org/api/1/help/
  • https://www.ocean-ops.org/api/1/help/?param=platformstatus
  • https://www.ocean-ops.org/api/1/help/?param=platformtype
source
Base.readMethod
read(x::SurfaceDrifter,ii::Int)

Open file number ii from NOAA ftp server using NCDatasets.jl.

Server : ftp://ftp.aoml.noaa.gov/pub/phod/lumpkin/hourly/v2.00/netcdf/

Note: the first time this method is used, it calls GDP.list_files() to get the list of drifters from server, and save it to a temporary file.

using OceanRobots
sd=read(SurfaceDrifter(),1)
source
Base.readMethod
read(x::SurfaceDrifter; ID=300234065515480, version="v2.01")

Download file from NOAA http server read it using NCDatasets.jl.

Server : https://www.aoml.noaa.gov/ftp/pub/phod/lumpkin/hourly/

using OceanRobots
sd=read(SurfaceDrifter(),ID=300234065515480)
source
Base.readMethod
read(x::CloudDrift, file)

Read a GDP/CloudDrift file.

source
Base.readMethod
read(x::NOAAbuoy,args...)

Read a NOAA buoy file (past month).

source
Base.readMethod
read(x::NOAAbuoy_monthly,args...)

Read a NOAA buoy file (historical).

source
OceanRobots.NOAA.downloadFunction
NOAA.download(stations::Union(Array,Int),path=tempdir())

Download files listed in stations from ndbc.noaa.gov to path.

source
OceanRobots.NOAA.list_realtimeMethod
NOAA.list_realtime(;ext=:all)

Get either files list from https://www.ndbc.noaa.gov/data/realtime2/ or list of buoy codes that provide some file type (e.g. "txt" for "Standard Meteorological Data")

lst0=NOAA.list_realtime()
lst1=NOAA.list_realtime(ext=:txt)
source
Base.readFunction
read(x::Gliders, file::String)

Read a Spray Glider file.

source
Base.readFunction
read(x::OceanSite, ID=:WHOTS)

Read OceanSite data.

source
OceanRobots.OceanSites.read_variablesMethod
read_variables(file,args...)

Open file from opendap server.

file="DATA_GRIDDED/WHOTS/OS_WHOTS_200408-201809_D_MLTS-1H.nc"
OceanSites.read_variables(file,:lon,:lat,:time,:TEMP)
source
Base.readFunction
read(x::ShipCruise, ID="unknown")

Read ShipCruise data.

source
OceanRobots.CCHDO.downloadFunction
CCHDO.download(cruise::Union(Symbol,Symbol[]),path=tempdir())

Download files listed in stations from cchdo.ucsd.edu/cruise/ to path.

using OceanRobots
ID="33RR20160208"
path=OceanRobots.CCHDO.download(ID)
source
OceanRobots.CCHDO.extract_json_tableFunction
extract_json_table(url)
using JSON3, HTTP

url="https://cchdo.ucsd.edu/search?q=GO-SHIP"
url="https://cchdo.ucsd.edu/search?bbox=-75,-60,20,65" #Atlantic
url="https://cchdo.ucsd.edu/search?dtstart=1999-12-31&dtend=2000-01-31" #one month
url="https://cchdo.ucsd.edu/search?q=ARS01" # BATS
url="https://cchdo.ucsd.edu/search?q=PRS02" #HOT

table=extract_json_table(url)

ta=table[1]
xy1=ta.track.coordinates
x1=[i[1] for i in xy1]
y1=[i[2] for i in xy1]  

using GLMakie
scatter(x1,y1)
source