skymap 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +133 -1
  3. data/README.md +570 -31
  4. data/data/LICENSE-deep_sky_objects.txt +30 -0
  5. data/data/LICENSE-stars.txt +35 -0
  6. data/data/deep_sky_objects.csv +1742 -0
  7. data/data/stars.bin +0 -0
  8. data/lib/skymap/canvas.rb +12 -3
  9. data/lib/skymap/catalog/deep_sky_objects.rb +60 -0
  10. data/lib/skymap/catalog/star_records.rb +322 -0
  11. data/lib/skymap/catalog/stars.rb +75 -12
  12. data/lib/skymap/chart.rb +18 -4
  13. data/lib/skymap/cone.rb +21 -0
  14. data/lib/skymap/context.rb +326 -8
  15. data/lib/skymap/deep_sky_object.rb +140 -0
  16. data/lib/skymap/eyepiece.rb +22 -0
  17. data/lib/skymap/field.rb +20 -0
  18. data/lib/skymap/geometry.rb +47 -0
  19. data/lib/skymap/horizon.rb +33 -3
  20. data/lib/skymap/label_placement.rb +263 -0
  21. data/lib/skymap/layers/cardinal_directions.rb +2 -0
  22. data/lib/skymap/layers/constellation_lines.rb +6 -1
  23. data/lib/skymap/layers/constellation_names.rb +5 -2
  24. data/lib/skymap/layers/deep_sky_objects.rb +128 -0
  25. data/lib/skymap/layers/ecliptic.rb +1 -7
  26. data/lib/skymap/layers/field_circles.rb +169 -0
  27. data/lib/skymap/layers/grid.rb +153 -0
  28. data/lib/skymap/layers/moon.rb +22 -12
  29. data/lib/skymap/layers/planets.rb +4 -0
  30. data/lib/skymap/layers/scale.rb +75 -0
  31. data/lib/skymap/layers/star_names.rb +21 -4
  32. data/lib/skymap/layers/stars.rb +31 -8
  33. data/lib/skymap/layers/sun.rb +13 -9
  34. data/lib/skymap/magnitude_limit.rb +15 -0
  35. data/lib/skymap/print_size.rb +50 -0
  36. data/lib/skymap/projection/oblique_stereographic.rb +87 -0
  37. data/lib/skymap/projection/stereographic.rb +11 -0
  38. data/lib/skymap/renderer/caption.rb +35 -3
  39. data/lib/skymap/renderer/deep_sky_symbol.rb +67 -0
  40. data/lib/skymap/renderer/field_circle.rb +7 -0
  41. data/lib/skymap/renderer/grid.rb +7 -0
  42. data/lib/skymap/renderer/horizon_line.rb +7 -0
  43. data/lib/skymap/renderer/label.rb +3 -1
  44. data/lib/skymap/renderer/scale_bar.rb +7 -0
  45. data/lib/skymap/renderer/svg.rb +204 -15
  46. data/lib/skymap/setup.rb +48 -0
  47. data/lib/skymap/star.rb +127 -2
  48. data/lib/skymap/star_list.rb +25 -0
  49. data/lib/skymap/telescope.rb +17 -0
  50. data/lib/skymap/theme.rb +54 -20
  51. data/lib/skymap/version.rb +1 -1
  52. data/lib/skymap/view.rb +49 -0
  53. data/lib/skymap.rb +24 -0
  54. metadata +31 -2
  55. data/data/stars.csv +0 -9097
@@ -0,0 +1,30 @@
1
+ data/deep_sky_objects.csv
2
+
3
+ This file is adapted from OpenNGC (https://github.com/mattiaverga/OpenNGC),
4
+ release v20260501, by Mattia Verga, and is licensed under the Creative Commons
5
+ Attribution-ShareAlike 4.0 International license (CC BY-SA 4.0):
6
+
7
+ https://creativecommons.org/licenses/by-sa/4.0/
8
+
9
+ The rest of the Skymap gem is released under the MIT License (LICENSE.txt).
10
+ This license applies to this data file only. If you share this file or data
11
+ adapted from it, you must give credit as above, indicate your changes and
12
+ release your version under CC BY-SA 4.0 or a compatible license.
13
+
14
+ Changes made to OpenNGC: only the Messier objects and the NGC and IC objects
15
+ of magnitude 12 or brighter are kept (from the NGC.csv and addendum.csv files,
16
+ without the duplicate record of M102, the non-existent objects, the stars, the
17
+ novae, the dark nebulae and the components of galaxies such as NED01), the
18
+ columns are renamed and reduced, the right ascensions are in decimal hours, the
19
+ type codes are replaced by Skymap types, the magnitude is the V magnitude, or
20
+ the B magnitude when there is none, and its band is added.
21
+
22
+ OpenNGC credits its data sources:
23
+
24
+ - NASA/IPAC Extragalactic Database (NED), operated by the Jet Propulsion
25
+ Laboratory, California Institute of Technology, under contract with the
26
+ National Aeronautics and Space Administration.
27
+ - HyperLEDA database (http://leda.univ-lyon1.fr).
28
+ - SIMBAD astronomical database, operated at CDS, Strasbourg, France.
29
+ - HEASARC, the High Energy Astrophysics Science Archive Research Center.
30
+ - Harold Corwin's NGC/IC Positions and Notes.
@@ -0,0 +1,35 @@
1
+ data/stars.bin
2
+
3
+ This file merges the Yale Bright Star Catalogue (Hoffleit & Warren, 1991) with
4
+ data of Tycho-2 (Høg et al., 2000), of the new reduction of Hipparcos (van
5
+ Leeuwen, 2007) and of Gaia DR3 (Gaia Collaboration, 2023), adapted and packed
6
+ into a binary format by bin/build_stars.
7
+
8
+ Credit: ESA, Gaia DPAC
9
+ Credit: ESA
10
+
11
+ This work has made use of data from the European Space Agency (ESA) mission
12
+ Gaia (https://www.cosmos.esa.int/gaia), processed by the Gaia Data Processing
13
+ and Analysis Consortium (DPAC,
14
+ https://www.cosmos.esa.int/web/gaia/dpac/consortium).
15
+
16
+ ESA distributes the Gaia and Hipparcos data, and the Hipparcos and Tycho
17
+ catalogues, under the Creative Commons Attribution-NonCommercial 3.0 IGO license
18
+ (CC BY-NC 3.0 IGO), and Tycho-2 is treated the same way here. This file is
19
+ released under the same license:
20
+
21
+ https://creativecommons.org/licenses/by-nc/3.0/igo/
22
+
23
+ ESA asks for authorization before any use of its data that directly or
24
+ indirectly generates a financial gain, under the Terms and Conditions for the
25
+ use of data in the ESA space science archives:
26
+
27
+ https://www.cosmos.esa.int/web/esdc/terms-and-conditions
28
+
29
+ Requests go to data.licences@esa.int. The data may not be used to state or imply
30
+ that ESA endorses a commercial product, service or activity.
31
+
32
+ The rest of the Skymap gem is released under the MIT License (LICENSE.txt).
33
+ This license applies to this data file only. If you share this file or data
34
+ adapted from it, you must give credit as above, indicate your changes and
35
+ release your version under CC BY-NC 3.0 IGO.