Questions on the astronomical applications of Mathematica.

learn more… | top users | synonyms

0
votes
0answers
21 views

How To Sort BarChart Data Based On the Selected Column

This sample code works fine for the category of StarData selected. What I would like to do is sort the data based on which BarChart is selected. ...
4
votes
1answer
101 views

Mass distribution in NDSolve

I'm trying to model the solar system with NDSolve, basically a numerical n-body solution. I model the initial positions of bodies from a data set thusly: ...
2
votes
1answer
87 views
4
votes
0answers
132 views

Predicting Manhattanhenge

At the time of writing, Manhattanhenge is tonight in New York City (ref 1), "an event during which the setting sun is aligned with the east–west streets of the main street grid of Manhattan, New York ...
3
votes
1answer
64 views
0
votes
1answer
62 views

How To Replace xAxis and yAxis Number Values With An Associated Name

This application works great. The thing is, the associations: {{xAxis, 6}, {4, 5, 6, 7, 8}}, {{yAxis, 7}, {5, 6, 7, 8}}, while functional, are not very intuitive. How can I replace xAxis and yAxis ...
1
vote
2answers
47 views

How to Refresh ChartLabels when Manipulate BarChart Take Data Positions Change

See attached sample code at the bottom of this post. Under Manipulate, as I step through BarChart data using Take with different start/end positions, the chart of the data is refreshed, but the ...
6
votes
0answers
52 views

Extracting, Formatting, and Exporting Mathematica AstronomicalData - Is There an Easier Way?

If any of you have tried to use Mathematica AstronomicalData and its newest replacements like StarData, you may already be familiar with the large data issues, and the almost impossible download times....
1
vote
1answer
129 views

Plotting Earth's position with units

I'm trying to plot the Earth position with the Sun in the origin. I have two lists like this: ...
26
votes
4answers
4k views
7
votes
1answer
166 views

How to get star coordinates for a given time

Fixed in 10.3.1 In the documentation of StarData, there is an example that shows how to get the altitude of Sirius at a given time (in the horizontal coordinate ...
11
votes
1answer
219 views

How can I get curated data to be expressed consistently in SI units?

AstronomicalData objects are consistently in SI units: ...
11
votes
5answers
2k views

Beautiful dance of the Earth and Venus around the sun

I have seen very nice dynamic graphics created by users of Ma. I would like to get help whether the following graphics can be created using Ma. I was not able to create the dynamic picture here. ...
20
votes
1answer
270 views

Interstellar Image Effects

I'd like to know how to create this type of gravitational lensing effect in an image (here are some star fields from the hubble) "I wrote down the equations and I tested them in Mathematica by ...
5
votes
1answer
304 views

GeoGraphics - mapping the Moon

The link here shows a nice way to depict the map of the Moon in Mathematica. But is there a way, to center the Mollweide projection onto the far side of the Moon?
5
votes
1answer
142 views

Inaccurate Heliocentric coordinates of PlanetaryMoonData

I have noticed that the heliocentric coordinates obtained with PlanetaryMoonData are very inaccurate. Fore example, consider the Galilean moons of Jupiter: ...
6
votes
0answers
85 views

Heliocentric coordinates in PlanetData

I tried to use planets' HeliocentricLongitude and I wonder if anyone has any insight on what coordinate system they use. I took vernal equinox times from http://ns1763.ca/equinox/eqindex.html and ...
0
votes
1answer
133 views

How to add moon to orbit Earth that Orbit Sun

I want to add moon(Blue) that orbiting earth(Red). while Earth is orbiting Sun. this is my code so far that consist of earth, sun and moon. how to write a code so that Moon is orbiting earth instead ...
11
votes
1answer
365 views

Can I create a radar chart of sunrise/sunset times for a year

Can I create a radar chart (or just a simple curve) of sunrise/sunset times, for a given location thougout a year? It would be something like this, but with a smooth curve: Can it be done in ...
2
votes
0answers
45 views

Plotting the Equation of Time: SiderealTime and SunPosition

The equation of time describes the discrepancy between two kinds of solar time. The word equation is used in the medieval sense of reconcile a difference. The two times that differ are the apparent ...
30
votes
2answers
3k views

The Orbit and Perigee of the Flamsteed comet

Historical context This year we have the 330-th anniversary of the Battle of Vienna - one of the great formative events of European history, it took place on September 12, 1683. Kara Mustafa, Grand ...
13
votes
1answer
2k views

What is the closest star to Earth other than the sun?

How to find the Sun's nearest neighbor star using Mathematica? I tried but it didn't work
7
votes
0answers
136 views

3D orbits of moons around their respective planets

I have seen a lot of solar system models (both animated and not), but I am trying to replicate the same thing with moons. Either just one planet and its lunar system or the our whole solar system with ...
7
votes
2answers
244 views

Extracting and displaying data from GW150914 hdf5 files

Has anyone looked at the LIGO data using Mathematica or know how to do this? I'm not familiar with the hdf5 format but I've been able to import the data, consisting primarily of 131,072 floating ...
4
votes
2answers
139 views

How to find the Andromeda Galaxy

I would like to find the Andromeda Galaxy ($M31$) with the unaided eye. One way is to use the following image and graphic but I can’t find it just by looking in a dark sky. It is hard to detect ...
3
votes
1answer
74 views

Convert star name into entity value

I have a list of star names: stan = Select[#, Last[#] < Quantity[153.5, "LightYears"] &] &@ StarData[StarData[], {"Name", "DistanceFromEarth"}] ...
0
votes
1answer
64 views
4
votes
1answer
116 views

Impact Crater Sim. with added criteria

I have been trying with out success to edit this impact crater simulation script into producing a variable which calculates crater density. In addition I have been trying to figure out how to ...
7
votes
1answer
204 views

ParametricNDSolve[ ] and NMinimize[ ] in Combination

I have the following code that is used to simulate a spacecraft orbiting Mars, and uses ParametricNDSolve to vary the spacecraft's initial conditions using a parameter value ...
5
votes
2answers
201 views

Series solution of the Lane-Emden equation

I have the following problem: I'd like to show how the Lane-Emden equation would look like if someone would solve it as a series. Here's the code: ...
6
votes
2answers
267 views

Solving the path of Earth around Sun

This maybe isn't a universally helpful question. Maybe a little of a code dump. But here goes. I'm trying to solve the path Earth moves around Sun from Earths mass, Suns mass, Earths initial velocity ...
10
votes
2answers
435 views

Impact Crater Simulation

I have been trying to model crater formation on a given planetary surface - $500\,\textrm{km}^2$. The locations of impacts are random, however, if an impact is within $30\,\textrm{km}$ of another, the ...
5
votes
1answer
150 views

Confused by result of MoonPosition when running on Linux [closed]

I've just switched from Windows to Linux and am running Mathematica 10.1 on Ubuntu 14.04. MoonPosition[] Gives me: ...
14
votes
3answers
2k views

How do I compute sidereal time and JD?

There was once a package that provided a wide range of functions for computing astronomical information. This package now appears to be out of date; but as near as I can tell, many of the useful ...
16
votes
3answers
905 views

Only final result from NDSolve

Finally, I started to play with differential equations in Mathematica. And I have faced the problem, which seems to me so basic that I'm afraid this question is going to be closed soon. However, I'...
1
vote
0answers
315 views

Earth to Mars Interplanetary Travel Escape Velocity [closed]

I'm trying to create a script that simulates interplanetary travel from Earth to Mars using a Hohmann transfer, but I'm having a few difficulties getting the correct escape velocity. I'm using an x-y ...
9
votes
1answer
237 views

Finding planetary conjunctions with Mathematica (project-level) [closed]

Summary: What's an efficient way of finding planetary conjuctions with Mathematica using the SPICE kernels, and without using AstronomicalData (which I believe is less efficient). NASA publishes ...
2
votes
0answers
147 views

Creating an orrery

I am interested in creating an orrery, ideally with SystemModeler. I have been experimenting with the MultiBody library since that allows you to do animations. The most relevant example seems to be ...
4
votes
1answer
344 views

Using ParametricNDSolve and NMinimize to find accurate interplanetary trajectory arrival periapse radius

I have an interplanetary trajectory simulation that calculates the required velocity (using a Lambert solver) and escape angle for a spacecraft to travel from Earth to Mars. This model does not use a ...
3
votes
1answer
131 views

Computing planet conjunctions with 2D circular orbits still hard?

All methods I've seen for computing planetary/stellar conjuctions (when two planets or a planet and a star appear close together in the sky because their angular separation, as measured from Earth, ...
10
votes
1answer
311 views

GeoProjection for astronomical data - wrong ticks

Here is an excellent answer to what I wanted to do, and it works like a charm. Unfortunately, when I want to change it a bit, it fails. For setting the stage, here is the datafile, and this is my ...
17
votes
2answers
718 views

Using map projections with astronomical data

I noticed that all important "Geoprojections" are available in projections for a spherical reference models: GeoProjectionData function; 1 - I am trying using the sinusoidal projection for ...
2
votes
0answers
46 views

PlanetData “VelocityAroundSun” giving inconsistent answers

My goal is to create a ListPlot showing the Earth's orbital speed over the course of a year, with one datapoint per day. I'm seeing problems long before I even get to the point of plotting the data! ...
5
votes
1answer
696 views

p-iteration algorithm to solve Lambert's problem for interplanetary trajectories

I've been reading up on using the p-iteration method to solve Lambert's problem for choosing the correct interplanetary trajectory between two planets given the ...
19
votes
1answer
616 views

Right Ascension and Declination in astronomical functions

In the process of answering this question, I was forced to confront the various astronomical coordinate systems used by Mathematica. Background In astronomy, positions of celestial objects (stars, ...
5
votes
0answers
94 views

Is there a problem with some of the curated Star Data?

I'm not really sure if I'm doing something wrong, or if there's a problem with some of the Mathematica curated data on stars. My problem is this: I'm trying to find the location (latitude and ...
23
votes
2answers
5k views

Creating a simulation of our Solar System

As the title says, my objective is to create a simulation of the motion of the planets in our Solar System using Mathematica. All the theoretical background regarding the equations of motion of ...
2
votes
2answers
118 views

Finding Minimium Periapse Distance Between Spacecraft and Planet

I have the following simple model that simulates a spacecraft orbiting Mars. What I'm hoping to do is be able to find the periapse radius of the spacecraft as I did below, except instead of using ...
4
votes
1answer
2k views

Combining Gravity Turn and Orbit Models

I have a mathematical model for the motion of an orbiting spacecraft about Earth: ...