fes

package
v0.0.0-...-803c24c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2022 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fes is a go interface for the fes c-api

Copyright (C) 2020 Möller Data Workflow Systems AB

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

Package fes is a go interface for the fes c-api

Copyright (C) 2020 Möller Data Workflow Systems AB

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JulianDate

func JulianDate(t time.Time) float64

JulianDate converts a time to days since 1950-01-01

Types

type Fes

type Fes struct {
	// contains filtered or unexported fields
}

Fes ...

func NewFes

func NewFes(tideType TideType, mode Mode, path string) (*Fes, error)

NewFes creates a new Fes interface

func (*Fes) Close

func (fes *Fes) Close()

Close ...

func (*Fes) Tide

func (fes *Fes) Tide(lat float64, lon float64, time time.Time) (float64, float64, error)

Tide returns the height [cm] and long period height [cm] for supplied coordinates and time

type Mode

type Mode int8

Mode ...

const (
	// ModeIO reads grids from disk
	ModeIO Mode = iota
	// ModeMem loads grids into memory
	ModeMem
)

type TideType

type TideType int8

TideType ...

const (
	// OceanTide ...
	OceanTide TideType = iota
	// RadialTide ...
	RadialTide
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL