gnome.basic_types

basic_types.py

The python version of the various type definitions used

Imports all the symbols from cy_basic_types.pyx

Adds some for Python-only use

Module Contents

Classes

wind_datasources

Enum where members are also (and must be) ints

fate

An enum for weathering status. The numpy array will contain np.uint8

numerical_methods

Enum where members are also (and must be) ints

Attributes

ts_format

oil_status

spill_type

seconds

oil_status_map

np_long

mover_type

world_point_type

windage_type

water_current_type

datetime_value_2d

datetime_value_1d

world_point

velocity_rec

time_value_pair

ebb_flood_data

tide_height_data

w_point_2d

long_point

triangle_data

cell_data

status_code_type

id_type

date_rec

gnome.basic_types.ts_format
gnome.basic_types.oil_status
gnome.basic_types.spill_type
gnome.basic_types.seconds
gnome.basic_types.oil_status_map
gnome.basic_types.np_long
gnome.basic_types.mover_type
gnome.basic_types.world_point_type
gnome.basic_types.windage_type
gnome.basic_types.water_current_type
gnome.basic_types.datetime_value_2d
gnome.basic_types.datetime_value_1d
class gnome.basic_types.wind_datasources

Bases: enum.IntEnum

Enum where members are also (and must be) ints

Initialize self. See help(type(self)) for accurate signature.

undefined = 0
file = 1
manual = 2
nws = 3
buoy = 4
class gnome.basic_types.fate

Bases: enum.IntEnum

An enum for weathering status. The numpy array will contain np.uint8 datatype. Can still define 2 more flags as 2**6, 2**7 These are bit flags

Initialize self. See help(type(self)) for accurate signature.

non_weather = (1,)
surface_weather = (2,)
subsurf_weather = (4,)
skim = (8,)
burn = (16,)
disperse = (32,)
class gnome.basic_types.numerical_methods

Bases: enum.IntEnum

Enum where members are also (and must be) ints

Initialize self. See help(type(self)) for accurate signature.

Euler = 0
RK2 = 1
RK4 = 2
gnome.basic_types.world_point
gnome.basic_types.velocity_rec
gnome.basic_types.time_value_pair
gnome.basic_types.ebb_flood_data
gnome.basic_types.tide_height_data
gnome.basic_types.w_point_2d
gnome.basic_types.long_point
gnome.basic_types.triangle_data
gnome.basic_types.cell_data
gnome.basic_types.status_code_type
gnome.basic_types.id_type
gnome.basic_types.date_rec