Safe Haskell | None |
---|---|
Language | Haskell98 |
- data SWMMParams = SWMMParams {}
- data Header = Header {}
- data ObjectIds = ObjectIds {
- subcatchmentIds :: [ByteString]
- nodeIds :: [ByteString]
- linkIds :: [ByteString]
- pollutantIds :: [ByteString]
- concentrationIds :: [Int]
- data ObjectProperties = ObjectProperties {}
- data ReportingVariables = ReportingVariables {}
- data ReportingInterval = ReportingInterval {}
- data ValuesForOneDateTime = ValuesForOneDateTime {
- dateTimeValue :: Double
- subcatchmentValue :: [[Float]]
- nodeValue :: [[Float]]
- linkValue :: [[Float]]
- systemValue :: [Float]
- data ClosingRecord = ClosingRecord {}
- data Properties = Properties {
- numberOfProperties :: Int
- codeNumberProperties :: [Int]
- valueProperties :: [Float]
- data Variables = Variables {}
- getInt :: Get Int
- getString :: Get ByteString
- getHeader :: Get Header
- getObjectIds :: Header -> Get ObjectIds
- getProperties :: Int -> Get Properties
- getObjectProperties :: Header -> Get ObjectProperties
- getVariables :: Get Variables
- getReportingVariables :: Get ReportingVariables
- getReportingInterval :: Get ReportingInterval
- getSWMMTopParams :: Get (Header, ObjectIds, ObjectProperties, ReportingVariables, ReportingInterval)
- getClosingRecord :: Get ClosingRecord
- extractSWMMParams :: FilePath -> IO (SWMMParams, ByteString)
- getSplitValues :: Int -> Int -> Get [[Float]]
- getValues :: Int -> Get [Float]
- getResults :: Header -> ReportingVariables -> Get ValuesForOneDateTime
Documentation
Header | |
|
ObjectIds | |
|
data ReportingInterval Source
data ValuesForOneDateTime Source
ValuesForOneDateTime | |
|
data ClosingRecord Source
data Properties Source
Properties | |
|
getString :: Get ByteString Source
Get a string
getObjectIds :: Header -> Get ObjectIds Source
getProperties :: Int -> Get Properties Source
getSWMMTopParams :: Get (Header, ObjectIds, ObjectProperties, ReportingVariables, ReportingInterval) Source
extractSWMMParams :: FilePath -> IO (SWMMParams, ByteString) Source
Extract the SWMM parameters from the file, and return the remainder of the binary file (containing only the result data now) as a lazy bytestring. If the bytestring is small, it can be forced and held in memory, otherwise it needs to be streamed strictly.