Re: Re: Slow start to AstronomicalData[]
- To: mathgroup at smc.vnet.net
- Subject: [mg102155] Re: [mg102113] Re: Slow start to AstronomicalData[]
- From: DrMajorBob <btreat1 at austin.rr.com>
- Date: Fri, 31 Jul 2009 05:53:11 -0400 (EDT)
- References: <h4p3n3$j82$1@smc.vnet.net> <200907300929.FAA21378@smc.vnet.net>
- Reply-to: drmajorbob at bigfoot.com
BenT, This works: AstronomicalData["Sun", {"Altitude", {2009, 7, 30, 23, 00}, $GeoLocation}, TimeZone -> $TimeZone] -28.27349 In your working code, {23,00} is taken to be a geopraphic location, not the 11:00 PM you intended it to be. AstronomicalData["Sun", {"Altitude", {2009, 7, 30}, {23, 00}}, TimeZone -> $TimeZone] Bobby On Thu, 30 Jul 2009 04:29:17 -0500, BenT <brtubb at pdmusic.org> wrote: > After the database collection is loaded and indexed (i.e. downloaded), > further access to the data such be automatic. I've confirmed that on > my on PC which is similarly configured as yours > > In[106]:= $Version > DateString[] > $TimeZone > > Out[106]= "7.0 for Microsoft Windows (32-bit) (January 30, 2009)" > > Out[107]= "Wed 29 Jul 2009 15:04:09" > > Out[108]= -5. > > In[116]:= AstronomicalData["Sun", {"Altitude", {2009, 7, 30}, {23, > 00}}, TimeZone -> $TimeZone] > > Out[116]= -7.34052 > > However when I tried to apply the {latitude, longitude} pararmeters > which can be obtained from the globle variable $GetLocation (in Fort > Walton Beach, FL), I got the following output with errors: > > In[117]:= AstronomicalData["Sun", {"Altitude", {2009, 7, 30}, {23, > 00}, {$GeoLocation}}, TimeZone -> $TimeZone] > > During evaluation of In[117]:= AstronomicalData::notprop: {"Altitude", > {2009, 7, 30}, {23, 0}, {{30.830000000000002, -85.74}}} is not a known > property for AstronomicalData. Use AstronomicalData["Properties"] for > a list of properties. >> > > Out[117]= AstronomicalData["Sun", {"Altitude", {2009, 7, 30}, {23, > 0}, {{30.83, -85.74}}}, TimeZone -> -5.] > > BTW, for convenience I suggest you devote a notebook for reference > with the output of these commands: > > [define this as a Section [Alt-4]] > $Version > DateString[] > $TimeZone > $GeoLocation > ?AstronomicalData > > [define this as a Section [Alt-4]] > AstronomicalData[] // ColumnForm > > [define this as a Section [Alt-4]] > AstronomicalData["Properties"] // ColumnForm > > [define this as a Section [Alt-4]] > {* Applications *) > > Ben > > On Jul 29, 4:10 am, Chonny <jcon... at aerodyne.com> wrote: >> Hi, >> >> Under Mathematica 7.0.1 I'm using: >> >> AstronomicalData[ "Sun", {"Altitude", datetime, {lat, long}}, >> TimeZone -> 0 ]; >> >> to get the Sun's Az and El. Works fine, but it takes about 50 seconds >> for "Loading Astronomical Indices...". This is presumably because >> there is so much data in the database. >> >> Any ideas on how this could be sped up?? >> >> System is WinXP Pro SP2 on a 3.2 GHz Xeon with 1.5 Gb of RAM. Thanks. >> >> Chonny > > -- DrMajorBob at bigfoot.com
- References:
- Re: Slow start to AstronomicalData[]
- From: BenT <brtubb@pdmusic.org>
- Re: Slow start to AstronomicalData[]