alvinxy package

Submodules

alvinxy.alvinxy module

AlvinXY Utility Module

All of this is based on WHOI’s original implementations in C and MATLAB.

alvinxy.alvinxy.ll2xy(lat, lon, orglat, orglon)[source]

AlvinXY: Lat/Long to X/Y Converts Lat/Lon (WGS84) to Alvin XYs using a Mercator projection.

Args:
lat (float): Latitude of location lon (float): Longitude of location orglat (float): Latitude of origin location orglon (float): Longitude of origin location
Returns:
tuple: (x,y) where...
x is Easting in m (Alvin local grid) y is Northing in m (Alvin local grid)
alvinxy.alvinxy.mdeglat(lat)[source]

Provides meters-per-degree latitude at a given latitude

Args:
lat (float): latitude
Returns:
float: meters-per-degree value
alvinxy.alvinxy.mdeglon(lat)[source]

Provides meters-per-degree longitude at a given latitude

Args:
lat (float): latitude in decimal degrees
Returns:
float: meters per degree longitude
alvinxy.alvinxy.xy2ll(x, y, orglat, orglon)[source]

X/Y to Lat/Lon Converts Alvin XYs to Lat/Lon (WGS84) using a Mercator projection.

Args:
x (float): Easting in m (Alvin local grid) x (float): Northing in m (Alvin local grid) orglat (float): Latitude of origin location orglon (float): Longitude of origin location
Returns:
tuple: (lat,lon)

alvinxy.alvinxy_example module

Here is an example of using lat/lon along with AlvinXY coordinates.

Module contents