rompy.swan.types.IDLA#

class rompy.swan.types.IDLA(value)[source]#

Order of values in the input files.

ONE#

SWAN reads the map from left to right starting in the upper-left-hand corner of the map. A new line in the map should start on a new line in the file.

Type:

1

TWO#

As 1 but a new line in the map need not start on a new line in the file.

Type:

2

THREE#

SWAN reads the map from left to right starting in the lower-left-hand corner of the map. A new line in the map should start on a new line in the file.

Type:

3

FOUR#

As 3 but a new line in the map need not start on a new line in the file.

Type:

4

FIVE#

SWAN reads the map from top to bottom starting in the lower-left-hand corner of the map. A new column in the map should start on a new line in the file.

Type:

5

SIX#

As 5 but a new column in the map need not start on a new line in the file.

Type:

6

Notes

It is assumed that the x-axis of the grid is pointing to the right and the y-axis upwards.

__init__()#

Methods

conjugate

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

bit_count()

Number of ones in the binary representation of the absolute value of self.

to_bytes(length, byteorder, *[, signed])

Return an array of bytes representing an integer.

from_bytes(byteorder, *[, signed])

Return the integer represented by the given array of bytes.

as_integer_ratio()

Return integer ratio.

Attributes

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

ONE

TWO

THREE

FOUR

FIVE

SIX