model.conversions

Conversion module.

Provides useful conversions for the following

energy conversions volume conversions mass conversions distance conversions land area conversions inflation-adjusted-dollars

def mha_to_ha(mha=1):

Convert mega hectares to hectares mha : the number of mega hectares

def terawatt_to_kilowatt(tw=1):

Convert terawatts to kilowatts tw : the number of terawatt hours

class EnergyConversion(Conversion):

Convert between 'tj', 'gcal', 'mtoe', 'mbtu', 'gwh', 'twh', 'kwh' Source: http://www.iea.org/statistics/resources/unitconverter/

class VolumeConversion(Conversion):

Convert between U.S gallon ('gal_us'), U,K gallon ('gal_uk',) Barrel ('bbl'), Cubic foot ('cubic_ft'), litre('l'), Cubic meter ('cubic_m') Source: http://www.iea.org/statistics/resources/unitconverter/

class MassConversion(Conversion):

Convert between gram ('g'), kilogram ('kg') and tonne ('t')

class DistanceConversion(Conversion):

Convert between miles ('mi') and kilometres ('km')