Re: MixedRadixQuantity
- To: mathgroup at smc.vnet.net
- Subject: [mg130123] Re: MixedRadixQuantity
- From: Bob Hanlon <hanlonr357 at gmail.com>
- Date: Tue, 12 Mar 2013 00:34:31 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <20130311084215.116E269BD@smc.vnet.net>
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 at 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 >
- References:
- MixedRadixQuantity
- From: Šerých Jakub <Serych@panska.cz>
- MixedRadixQuantity