Message Boards Message Boards

Computing with Entity classes involving large amounts of data

Posted 10 years ago

Continuing along the lines of the question here

http://community.wolfram.com/groups/-/m/t/367014

but within Mathematica rather than Wolfram|Alpha... And using this as a prototype of a more general question....

How does one efficiently compute the list of stars within a particular distance from the sun? (This is a prototype of the more general question of how to use curated Entity data that involves a large quantities of data to then process.)

One can get a list of all stars using (there appear to be about 107000 of them... so don't execute this if you don't want to wait).

EntityList[EntityClass["Star", "Star"]]

And one can get the stars' names along with their distances (and thus select those stars from the list that are within a desired maximum distance from the Earth) using

EntityValue[
 EntityClass["Star", "Star"], {EntityProperty["Star", "Name"], 
  EntityProperty["Star", "DistanceFromEarth"]}]

But, again, one has to download all 107000 items and then perform the calculation.

So my question is, is there a syntax that can solve this problem (say asking for the stars that are within 10 lightyears of the Earth) without having to actually download all 107000 the stars' data first. It takes an excruciatingly long time... in fact it is not clear that that computation will properly complete.

POSTED BY: David Reiss
2 Replies
POSTED BY: David Reiss
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract