fastwater.otm_gpl.parser_kenue module

@author Sebastien E. Bourban

@note … this work is based on a collaborative effort between

.________. ,–. | | . ( ( |,-. / HR Wallingford EDF - LNHE / _ _/ .–. / / Howbery Park, 6, quai Watier ) /_ )

,. `’ Wallingford, Oxfordshire 78401 Cedex `-’_ __ `

/ / OX10 8BA, United Kingdom Chatou, France __/ `.

/ `-’| www.hrwallingford.com innovation.edf.com | ) ) )

!________! `–’ `

@brief

Tools for handling Kenue native files in python. Kenue and its related software (Blue Kenue, Greem Kenue, ) are property of the NRC Canadian Hydrualics Centre

@details

Contains getI2S, getI3S and putI2S, putI3S, which read/write python variables into ASCII I2S and I3S files

@history 26/12/2011 – Sebastien E. Bourban:

First trial at parsing I2S and I3S

@history 09/01/2012 – Sebastien E. Bourban:

Addition of XY and XYZ parsing

@history 13/01/2012 – Sebastien E. Bourban:

Creates InS class with associated methods including: + removeDuplicates (remove duplicated points based on proximity) + make_clockwise (make closed loops clockwise) + make_anti_clockwise (make closed loops anti-clockwise) + smoothSubdivise (add points and weigthed average move) + smoothSubsampleDistance (remove points based on proximity) + smoothSubsampleAngle (remove points based on flatness)

@history 29/02/2012 – Sebastien E. Bourban:

The type of a contour can now be checked automatically so that mixed set can be stored into one I2S/I3S file. To use this feature, type must be absent from the putInS call.

class fastwater.otm_gpl.parser_kenue.InS(file_name)[source]

Bases: object

parser_content(file_name)[source]
put_content(file_name, head=None)[source]
fastwater.otm_gpl.parser_kenue.get_xyn(file_name)[source]
fastwater.otm_gpl.parser_kenue.put_xyn(fle, head, file_type, xyz)[source]