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::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
OceanRobots.ArgoFiles.list_floatsMethod
ArgoFiles.list_floats(;list=DataFrame())

Get list of Argo profilers from file ArgoFiles.list_floats().

Or write provided list to file as a DataFrame.

using OceanRobots, ArgoData
ArgoFiles.list_floats(list=GDAC.files_list())
source
OceanRobots.ArgoFiles.scan_txtFunction
ArgoFiles.scan_txt(fil="ar_index_global_prof.txt"; do_write=false)

Scan the Argo file lists and return summary tables in DataFrame format. Write to csv file if istrue(do_write).

ArgoFiles.scan_txt("ar_index_global_prof.txt",do_write=true)
ArgoFiles.scan_txt("argo_synthetic-profile_index.txt",do_write=true)
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
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