Giter Site home page Giter Site logo

dcf21 / star-charter Goto Github PK

View Code? Open in Web Editor NEW
337.0 17.0 28.0 12.9 MB

A command-line tool for producing vector-graphics charts of the night sky in SVG, PDF and PNG formats.

License: GNU General Public License v3.0

CMake 0.46% Makefile 1.47% Python 22.69% Shell 0.65% C 74.63% Dockerfile 0.10%
amateur-astronomy astronomy nightsky starchart vector-graphics

star-charter's People

Contributors

dcf21 avatar smcameron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

star-charter's Issues

Data source url changed

According to the admin of this site, the domain cdsarc.u-strasbg.fr is considered obsolete; the certificate does not get refreshed. Instead, cdsarc.cds.unistra.fr should be used

Star label missing

Hi!

I'm trying to get an A4 chart of Gemini per the included example.

It works fine up to angular_width=22.2. When I push it to 22.3 or beyond, Castor's label disappears.

Fiddling with the center of the chart or font_size may bring it back in some cases, but it's finicky.

Am I missing some configuration tweak?

Regards,

L

# Default settings which affect all the charts below
DEFAULTS
ra_central=7.25
dec_central=20
angular_width=40.0
mag_min=7
width=17.8
aspect=1.36
ra_dec_lines=1
constellation_boundaries=1
constellation_sticks=1
constellation_stick_design=rey
coords=ra_dec
projection=gnomonic
star_names=1
star_flamsteed_labels=0
constellation_names=1
plot_galaxy_map=1
plot_equator=0
plot_ecliptic=0
plot_galactic_plane=1
font_size=1.2
dso_label_mag_min=6

# Produce a PDF copy of this star chart
CHART
output_filename=output/gemini.pdf

alt_az cardinals are misaligned.

The "E" and "W" cardinal direction labels in the alt_az chart are not aligned vertically. I believe the label_positions should be as follows:

            chart_label(p, s, black, "N",
                        &(label_position) {-dh * sin(a), -dv * cos(a), 0, 0, -1}, 1,
                        0, 0, 2.5, 1, 0, 0, -1);
            chart_label(p, s, black, "E",
                        &(label_position) {-dh * sin(a + DEG90), -dv * cos(a + DEG90), 0, 1, 0}, 1,
                        0, 0, 2.5, 1, 0, 0, -1);
            chart_label(p, s, black, "S",
                        &(label_position) {-dh * sin(a + DEG180), -dv * cos(a + DEG180), 0, 0, 1}, 1,
                        0, 0, 2.5, 1, 0, 0, -1);
            chart_label(p, s, black, "W",
                        &(label_position) {-dh * sin(a + DEG270), -dv * cos(a + DEG270), 0, -1, 0}, 1,
                        0, 0, 2.5, 1, 0, 0, -1);

Compiling Error - unsupported option - 'fopenmp'

Each time I run the setup shell there is a compiling code error at the same place during producing output data catalogues.

Sorting list of stars in order of brightness
Producing output data catalogues
Compiling code
mkdir -p obj obj/astroGraphics obj/coreUtils obj/listTools obj/mathsTools obj/settings obj/vectorGraphics
cc -Wall -Wno-format-truncation -Wno-unused-result -g -fopenmp -c -I
/Astronomy/star-charter-master/src -O3 -D DEBUG=0 -D MEMDEBUG1=0 -D MEMDEBUG2=0 -D DCFVERSION="3.0" -D DATE="09/06/2019" -D PATHLINK="/" -D SRCDIR="/Astronomy/star-charter-master/src/" src/astroGraphics/constellations.c -o obj/astroGraphics/constellations.o
clang: error: unsupported option '-fopenmp'
make: *** [obj/astroGraphics/constellations.o] Error 1

application crashes running orion.sch example

After installing star-charter running under Ubuntu in VirtualBox the first example run was the orion.sch example provided. The code quickly crashed with the following errors after running the command

../bin/starchart.bin orion.sch

Error : Fatal Error encountered in src/astroGraphics/constellations.c at line 146:
Error: Could not open constellation stick figures

Error-Orion sch-example

Add manmade objects to charts

Would you be interested in a PR to add man-made satellites to your charts?

It's relatively straightforward to get the TLEs for satellites, then use that to compute the pass.

Braille compatible command line output

Is it possible for a contributor to add a mode that outputs the data to the command line in a way that can be panned around?

I'm from Bristol Braille and we and a Braillist are working on creating a fully tactile map of the night sky. We will be using the Canute Console which is a 40 cell by 9 line tactile output which precisely mirrors the terminal output. If star-docker could output directly to the command line, and be panned around from the command line, then the Canutr Console's built in conversion will do the rest and that will create one of the first fully spacial and digital tactile maps of the night sky for blind people.

README file : Date range for solar system objects

I think it would be useful to mention in the README file that there is a date cutoff when requiring the paths of solar system objects.

The cutoff dates are mentionned in the ephemerisCompute repository but I think a reminder in the star-charter project would be informative, maybe providing the actual JD range that is OK to use.

I tried plotting paths outside of that range and got unexpected results. The program could also log a warning in this case so users know about it.

Error: Could not open Tycho ASCII catalogue

I downloaded the package, installed the dependencies, also downloaded the new versions of empty star database (ftp://cdsarc.u-strasbg.fr/pub/cats/I/239/hip_main.dat). The catalogue merge script exits:

(...)
Warning: moving mag 10.4 star TYC 4640-232-1 by 0.010 deg (tycho1 --> tycho2)
Warning: moving mag 7.5 star TYC 2521-2279-1 by 0.012 deg (hipparcos --> tycho2)
./setup.sh: 57. sor: 23683 Kilőve ./catalogue_merge.py
Compiling code
make: Nothing to be done for 'all'.

I see the following error during the program run using sample data:

mint20@mint20-virtual-machine:~/Letöltések/star-charter-master/examples$ ../bin/starchart.bin orion.sch
Error: Fatal Error encounted in src/astroGraphics/stars.c at line 87:
Error: Could not open Tycho ASCII catalogue

Please advise, thank you!

Tiles missing from field of view

It seems like some of the tiles are being excluded from the field of view. I've attached a parameter file where this effect is visible. There is a fairly clear cutoff of faint stars above Orion's belt
wide.txt
.
For now I've worked around the issue by commenting out both uses of test_if_title_in_field_of_view() in astroGraphics/stars.c.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.