//# UnitMap6.cc: Unit map custom units initialisation part 2 //# Copyright (C) 2001,2002 //# Associated Universities, Inc. Washington DC, USA. //# //# This library is free software; you can redistribute it and/or modify it //# under the terms of the GNU Library General Public License as published by //# the Free Software Foundation; either version 2 of the License, or (at your //# option) any later version. //# //# This library is distributed in the hope that it will be useful, but WITHOUT //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public //# License for more details. //# //# You should have received a copy of the GNU Library General Public License //# along with this library; if not, write to the Free Software Foundation, //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. //# //# Correspondence concerning AIPS++ should be addressed as follows: //# Internet email: aips2-request@nrao.edu. //# Postal address: AIPS++ Project Office //# National Radio Astronomy Observatory //# 520 Edgemont Road //# Charlottesville, VA 22903-2475 USA //# //# $Id$ //# Includes #include namespace casacore { //# NAMESPACE CASACORE - BEGIN // Initialise the maps void UnitMap::initUMCust2 (UMaps& maps) { map& mapCust = maps.mapCust; mapCust.insert(map::value_type ("abA", UnitName("abA", UnitVal(10.0, "A", &maps), "abampere"))); mapCust.insert(map::value_type ("abC", UnitName("abC", UnitVal(10.0, "C", &maps), "abcoulomb"))); mapCust.insert(map::value_type ("abF", UnitName("abF", UnitVal(1.0e+9, "F", &maps), "abfarad"))); mapCust.insert(map::value_type ("abH", UnitName("abH", UnitVal(1.0e-9, "H", &maps), "abhenry"))); mapCust.insert(map::value_type ("abOhm", UnitName("abOhm", UnitVal(1.0e-9, "Ohm", &maps), "abohm"))); mapCust.insert(map::value_type ("abV", UnitName("abV", UnitVal(1.0e-8, "V", &maps), "abvolt"))); mapCust.insert(map::value_type ("statA", UnitName("statA", UnitVal((0.1/C::c), "A", &maps), "statampere"))); mapCust.insert(map::value_type ("statC", UnitName("statC", UnitVal((0.1/C::c), "C", &maps), "statcoulomb"))); mapCust.insert(map::value_type ("statF", UnitName("statF", UnitVal(1.0/(3.0e+3*C::c), "F", &maps), "statfarad"))); mapCust.insert(map::value_type ("statH", UnitName("statH", UnitVal((3.0e+3*C::c), "H", &maps), "stathenry"))); mapCust.insert(map::value_type ("statOhm", UnitName("statOhm", UnitVal((3.0e+3*C::c), "Ohm", &maps), "statohm"))); mapCust.insert(map::value_type ("statV", UnitName("statV", UnitVal((C::c*1.0e-6), "V", &maps), "statvolt"))); mapCust.insert(map::value_type ("debye", UnitName("debye", UnitVal(10e-18, "statC.cm", &maps), "statvolt"))); mapCust.insert(map::value_type ("ac", UnitName("ac", UnitVal(4.0*40*16.5*12*2.54e-2*16.5*12*2.54e-2, "m2", &maps), "acre"))); mapCust.insert(map::value_type ("Ah", UnitName("Ah", UnitVal(1., "A.h", &maps), "ampere hour"))); mapCust.insert(map::value_type ("Angstrom", UnitName("Angstrom", UnitVal(1.0e-10, "m", &maps), "angstrom"))); mapCust.insert(map::value_type ("atm", UnitName("atm", UnitVal(1.01325e+5, "Pa", &maps), "standard atmosphere"))); mapCust.insert(map::value_type ("ata", UnitName("ata", UnitVal(9.80665, "N.cm-2", &maps), "technical atmosphere"))); mapCust.insert(map::value_type ("u", UnitName("u", UnitVal(1.661e-27, "kg", &maps), "atomic mass unit"))); mapCust.insert(map::value_type ("bar", UnitName("bar", UnitVal(1.0e+5, "Pa", &maps), "bar"))); mapCust.insert(map::value_type ("Btu", UnitName("Btu", UnitVal(1055.056, "J", &maps), "British thermal unit (Int)"))); mapCust.insert(map::value_type ("cal", UnitName("cal", UnitVal(4.1868, "J", &maps), "calorie (Int)"))); mapCust.insert(map::value_type ("Cal", UnitName("Cal", UnitVal(1., "kcal", &maps), "large calorie (Int)"))); mapCust.insert(map::value_type ("CM", UnitName("CM", UnitVal((1e-3/5.0), "kg", &maps), "metric carat"))); mapCust.insert(map::value_type ("mHg", UnitName("mHg", UnitVal(13.5951*9.80665, "kPa", &maps), "metre of mercury"))); mapCust.insert(map::value_type ("dyn", UnitName("dyn", UnitVal(1.0e-5, "N", &maps), "dyne"))); mapCust.insert(map::value_type ("eV", UnitName("eV", UnitVal(1.60217733e-19, "J", &maps), "electron volt"))); mapCust.insert(map::value_type ("erg", UnitName("erg", UnitVal(1.0e-7, "J", &maps), "erg"))); } } //# NAMESPACE CASACORE - END