Versions in this module Expand all Collapse all v1 v1.0.1 Dec 2, 2022 Changes in this version + const ALL + const INTERNATIONAL_PARTNERS + const IOOS_PARTNERS + const MARINE_METAR + const NDBC_METEOROLOGICAL_OCEAN + const NERRS + const NOAASourcesURL + const NOS_CO_OPS + const SHIPS + const TAO + const TSUNAMI + var NauticalRegex = regexp.MustCompile(`\((.*?)\)`) + var SourceTypeMap = map[int]string + func ParseLocation(locationData string) (*loc.Point, error) + func ParseWinds(windData string) (float64, float64, error) + func RemoveEmpty(values []string) []string + func SourceTypeAsString(sourceType int) (string, error) + type Buoy struct + Description string + Location location.Point + Past []*BuoyData + Present *BuoyData + Station string + Valid bool + func CreateBuoy(stationID string) (*Buoy, error) + func ParseCData(cdata string) (*Buoy, error) + func (b *Buoy) FillBuoy() error + func (b *Buoy) GetCurrentData(root *soup.Root, search []string) error + func (b *Buoy) Hash() uint64 + func (b *Buoy) SetData(data *BuoyData) error + type BuoyData struct + AirTemperature float64 + AverageWavePeriod float64 + Chill string + Clcon string + Cond string + Day int + Depth float64 + DewPoint float64 + DominantWavePeriod float64 + Gust float64 + Heat string + LWRad string + MeanWindDirection string + Month int + NauticalMiles float64 + OceanTemperature float64 + OxygenPPM float64 + OxygenPercent float64 + PH string + Pressure float64 + PressureTendency float64 + SRad1 string + SWRad string + Salinity float64 + Steepness string + SwellDirection string + SwellHeight float64 + SwellPeriod float64 + Tide float64 + Time *nt.NauticalTime + Turb string + Visibility float64 + WaterTemperature float64 + WaveHeight float64 + WindDirection string + WindSpeed float64 + WindSpeed10Min float64 + WindSpeed20Min float64 + WindWaveDirection string + WindWaveHeight float64 + WindWavePeriod float64 + Year int + func (bd *BuoyData) EpochTime() (int64, error) + type LocationSign struct + LLType string + Sign float64 + type NauticalDate struct + Day int + Month int + Time *nt.NauticalTime + Year int + func ParseTime(timeData string) (*NauticalDate, error) + type Placemark struct + Description string + Name string + Placement location.Point + type Source struct + Buoys map[uint64]*Buoy + Description string + Name string + Placemarks []Placemark + func FilterSourcesByType(sources []*Source, sourceType int) ([]*Source, error) + func GetBuoySources() ([]*Source, error) + func (s *Source) AddBuoy(buoy *Buoy) error + func (s *Source) Contains(hash uint64) bool + func (s *Source) GetBuoy(station string) (*Buoy, error) + func (s *Source) GetBuoys() []*Buoy + func (s *Source) String() string + type XMLDoc struct + Sources []Source