habsim-0.1.0.0: High Altitude Balloon flight path simulator

Copyright(C) 2017 Ricky Elrod
License(see project LICENSE file)
MaintainerRicky Elrod <ricky@elrod.me>
Stabilityexperimental
PortabilityGeneralizedNewtypeDeriving, ViewPatterns
Safe HaskellNone
LanguageHaskell2010

Data.HABSim.Grib2.CSVParse.Types

Description

This module provides types for parsing CSV files generated by wgrib2. It is used (and re-exported) by CSVParse.

Synopsis

Documentation

data Direction #

The wind direction

UGRD is North/South, VGRD is East/West.

If we're given something other than UGRD or VGRD in this field, we store the value in the Other constructor.

Constructors

UGRD 
VGRD 
Other String 

Instances

newtype GribTime #

This is used for both the referenceTime and the forecastTime. The reason it exists is solely so we can create a FromField instance on UTCTime while avoiding orphan instances.

Constructors

GribTime 

Fields

newtype UGRDLine #

A single UGRD line.

Constructors

UGRDLine 

newtype VGRDLine #

A single VGRD line.

Constructors

VGRDLine 

newtype OtherLine #

A single non-UGRD and non-VGRD line.

Constructors

OtherLine 

data GribLine #

Either a UGRDLine or a VGRDLine. This is so we can parse and ultimately return a Vector containing both UGRD and VGRD lines. We return a Vector GribLine (or rather, Cassava does) and we just know that a GribLine will either be a UGRDLine or a VGRDLine.

If the line is anything else, we return the raw line in OtherGribLine.

type Pressure = Int #