Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13814

Re: MixedRadixQuantity

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: MixedRadixQuantity
Date 2013-03-12 04:33 +0000
Message-ID <khmb7l$ngg$1@smc.vnet.net> (permalink)
References <20130311084215.116E269BD@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


This is not what you asked for but it handles conversions

latlongDecDeg = {40.624, 47.973};

latlongDMS = DMSList /@
  latlongDecDeg

{{40, 37, 26.4}, {47, 58, 22.8}}

(latlongString1 =
   DMSString[latlongDecDeg]) //
 FullForm

"40\[Degree]37'26.40000\"N 47\[Degree]58'22.80000\"E"

(latlongString2 =
   DMSString /@ latlongDecDeg) //
 FullForm

List["40\[Degree]37'26.40000\"","47\[Degree]58'22.80000\""]

latlongString2 ==
 DMSString /@ latlongDecDeg ==
 DMSString /@ latlongDMS

True

latlongDecDeg ==
 FromDMS /@ latlongDMS ==
 FromDMS[latlongString1] ==
 FromDMS /@ latlongString2

True

latlongDMS ==
 DMSList /@ latlongDecDeg ==
 DMSList[latlongString1] ==
 DMSList /@ latlongString2

True


Bob Hanlon


On Mon, Mar 11, 2013 at 4:42 AM, =C5 er=C3=BDch Jakub <Serych@panska.cz> wrote:
> Dear mathgroup,
> does anybody know, how to convert position (GPS) coordinates using MixedRadixQuantity and UnitConvert (new in 9). I can succesfully convert time quantities:
>
> time  MixedRadixQuantity[{9, 46, 38.321}, {"Hours", "Minutes", "Seconds"}]
> UnitConvert[time, "Seconds"]
> UnitConvert[time, "Minutes"]
>
> But I cannot find the unit names and the correct way to write down quantity for arc units like 50=B04'47.793"N
> I tried {"Degrees", "ArcMinutes", "ArcSeconds"}, but it doesn't help. Yes, I know, that I can bluff little bit and convert arc units using time unit
s, but from the point of view of the whole system of units covered by Quantity function it is not usable in this way.
> As this is the brand new functionality of M9, documentation is not very ample by that time.
>
> It would also be helpful to have some possibility to list all the units and constants which can be used by Quantity function.
> I mean something similar to keyword "Properties" in the datapaclets oriented functions, for example ChemicalData["Properties"].
>
> Thanks in advance for any help
>
> Jakub
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: MixedRadixQuantity Bob Hanlon <hanlonr357@gmail.com> - 2013-03-12 04:33 +0000

csiph-web