Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navstars improvements #955

Merged
merged 20 commits into from Mar 1, 2020
Merged

Conversation

A-j-K
Copy link
Contributor

@A-j-K A-j-K commented Feb 1, 2020

Add Nautical Almanac data to extraInfoStrings for navigation stars

Description

The standard out of the box Nav Stars plugin highlights a set of stars that represent those chosen and found in Nautical Almanacs around the world. However, it only high lights them and doesn't provide any extra data.

This patch adds additional information points that include the intermediate values derived from the Almanac along with the Sight Reduction solution. All these additional data points are displayed using the format found in The Nautical Almanac, DDMM.m

These are:-

  • GHAa : The Greenwich Hour Angle for the first point of Aries
  • LMST : Local mean sidereal time
  • SHA : Sidereal hour angle of the target object
  • DEC : The declination of the target object
  • GHA : The Green Hour Angle of the target object
  • LHA : The Local Hour Angle of the target object
  • LAT : The observer latitude
  • LON : The observer longitude
  • Hc : The computed altitude as derived via a Sight Reduction (solution)
  • Zn : The computed azimuth as derived via a Sight Reduction (solution)

Additionally, two new configuration checkboxes have been added (default unchecked gives original behavior).

CB: Existing. Only highlight nav stars when the star is visible. Currently, when the plugin is enabled all nav stars are highlighted all the time, even during the day when the star is not visible. Checking this box will only allow the highlight if the star is visible.

CB: New. The modifications allow for Nautical Almanac data for any selectable object. This can be limited to only display data for nav stars, Sun, Moon, and planets.

CB: New. Use "upper limb". Most users of sextants use the lower limb of the Sun or Moon. However, a few use the upper limb. Checking this box ensures the Ho (observed altitude) uses the limb of choice.

Fixes # (issue)

Addresses #408

Screenshots (if appropriate):

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • This change requires a documentation update

How Has This Been Tested?

The patch includes a Unit Test. The data from which was reduced and tested using pencil and paper using the 2020 Nautical Almanac. Other pencil and paper tests were conducted around various nav stars.

Checklist:

  • My code follows the code style of this project.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@A-j-K A-j-K requested a review from alex-w February 1, 2020 18:27
@alex-w
Copy link
Member

alex-w commented Feb 1, 2020

I got this problem:

In file included from /home/aw/devel/stellarium/plugins/NavStars/src/NavStars.cpp:34:0:
/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.hpp:143:7: error: extra qualification ‘NavStars::’ on member ‘extraInfoStrings’ [-fpermissive]
void NavStars::extraInfoStrings(const QMap<QString, double>& data, QMap<QString, QString>& strings, QString extraText = "");
^~~~~~~~
/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.hpp:182:7: error: extra qualification ‘NavStars::’ on member ‘addExtraInfo’ [-fpermissive]
void NavStars::addExtraInfo(StelCore* core);
^~~~~~~~
/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.hpp:186:7: error: extra qualification ‘NavStars::’ on member ‘extraInfo’ [-fpermissive]
void NavStars::extraInfo(StelCore* core, const StelObjectP& selectedObject, bool withTables);
^~~~~~~~
/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.hpp: In constructor ‘NavStars::NavStars()’:
/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.hpp:166:7: warning: ‘NavStars::limitInfoToNavStars’ will be initialized after [-Wreorder]
bool limitInfoToNavStars;
^~~~~~~~~~~~~~~~~~~
/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.hpp:164:7: warning: ‘bool NavStars::upperLimb’ [-Wreorder]
bool upperLimb;
^~~~~~~~~
/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.cpp:68:1: warning: when initialized here [-Wreorder]
NavStars::NavStars()
^~~~~~~~
In file included from /home/aw/devel/stellarium/plugins/NavStars/src/NavStars.cpp:34:0:
/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.hpp:164:7: warning: ‘NavStars::upperLimb’ will be initialized after [-Wreorder]
bool upperLimb;
^~~~~~~~~
/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.hpp:163:7: warning: ‘bool NavStars::starLabelsState’ [-Wreorder]
bool starLabelsState;
^~~~~~~~~~~~~~~
/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.cpp:68:1: warning: when initialized here [-Wreorder]
NavStars::NavStars()
^~~~~~~~

Please fix order of variables and remove extra NavStars:: in headers file.

Copy link
Member

@alex-w alex-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are added few additional fields:

GHAa : The Greenwich Hour Angle for the first point of Aries
LMST : Local mean sidereal time
SHA : Sidereal hour angle of the target object
DEC : The declination of the target object
GHA : The Green Hour Angle of the target object
LHA : The Local Hour Angle of the target object
LAT : The observer latitude
LON : The observer longitude
Hc : The computed altitude as derived via a Sight Reduction (solution)
Zn : The computed azimuth as derived via a Sight Reduction (solution)

and I think for many newbies will be very helpful if you added short description of each field in About tab of plugin.

Plus I have a 2 questions:

  1. You are calculate and show declination of target object, but RA/Dec already exists for each object. Is it really necessary to add an additional Dec field?

  2. You are show geodetic coordinates as separate 2 fields. These coordinates already available as tooltip data for location string, but I guess you need it to simplificate of some the navigation tasks. Why you just do not join both coordinates in one line - for example "Geodetic coordinates: N53.55 W33.89"?

@gzotti
Copy link
Member

gzotti commented Feb 2, 2020

I assume it's just the labels from the tables which navigators are so used to. LMST is also already available without the plugin. (No, I don't want to allow re-labeling by arbitrary plugins...) But "LON/LAT" and "Zn/Hn" with two coord values each could be an option to save two lines.
However, what we need most with these new data is indeed a description of these fields in the About tab, and a 2-5 pages (?) chapter on astro nav basics in the User Guide. It should at least include the derivation of the new fields. How SHA is connected to RA, etc... Does the plugin already help in navigation (enter a few measurements, derive new location, adjust Stellarium's location), or does it "only" provide the data for the known location?

@alex-w alex-w requested a review from gzotti February 2, 2020 10:16
@alex-w
Copy link
Member

alex-w commented Feb 2, 2020

@gzotti thanks for notification! I've forgot about Stellarium User Guide.

@A-j-K
Copy link
Contributor Author

A-j-K commented Feb 2, 2020

Thank you for the feedback.

  • I will add some information to the About tab as requested.
  • I will add some information to the User Guide.

As for your questions. I was aware that some information is repeated. However, having discussed how Stellarium could be used by Celestial Nav teachers the first thing to note was "getting all this data into a viewable form is too complicated for most students, please display it in a form that's together and in a format that students will be using, whole degrees and decimal (one place) minutes. This format must be consistent for all display values, it's all they will ever use. Please make it so that all other data, except the name, can be switched off and the Nav Data is just shown. The data must include the Ho altitude (apparent Alt) for the current position, Nautical Almanac table inputs (UTC and Ho), table intermediate outputs (GP, which is GHA/DEC) and what that final sight reduction solution should be assuming they followed the Almanac sight reduction procedure correctly (that's Hc/Zn)".

So, that above was my guide to how I presented the information. However, I will adjust so that coord pairs (lat/lon ie AP, gha/dec ie GP, Hc/Zn Almanac computed alt/az) are paired on a single line.

I will also update the user guide to reflect the above. For example, when teaching the celestial object sub-point is important and is called GP (ground point). However, when using the Almanac and following sight reduction, we find GHA and DEC of the target which is the GP. But "GP" doesn't appear in the procedure, only GHA and DEC do. GP is just part of the teaching process to understand what is actually going on.

@alex-w @gzotti Please let me know what you think here with regards to the above "requirement" I was trying to achieve.

@gzotti
Copy link
Member

gzotti commented Feb 2, 2020

OK, thanks for explanations of the "external requirements". I did not know about GP, is that the location where the object is in the zenith? Indeed, some basics on CelNav in the Guide would help clarifying the displayed values. Maybe even a label "GP: GHA/DEC=" would be helpful?
In the Guide you can also recommend settings in the Config/Info tab to avoid display clutter for navigators (switch off distance, spectral class, or such...)

@A-j-K
Copy link
Contributor Author

A-j-K commented Feb 2, 2020

OK, thanks for explanations of the "external requirements". I did not know about GP, is that the location where the object is in the zenith?

Yes.

Indeed, some basics on CelNav in the Guide would help clarifying the displayed values. Maybe even a label "GP: GHA/DEC=" would be helpful?

Indeed. I will add information to the user guide that's an introduction to CN and how Stellarium can be used to assist learning.

In the Guide you can also recommend settings in the Config/Info tab to avoid display clutter for navigators (switch off distance, spectral class, or such...)

I will do that. I can also add a script that initializes the display. In fact, I added some in my PR that allows me to set up Stellarium to run the test cases where I manually reduced using the Almanac to check the numbers. It's also what I based the Unit tests on, a manual reduction.

With regards to the pairing of values such as gha/dec, alt/az, etc. I just spoke with one of my advisors and this was telling... "the problem is most CN students are not astronomers, they are sailors. Whilst astronomers are more than accustomed to coord pairs such as alt/az, CN students work with tables of data. That's why I like the tabulated form I see now. It's how it looks on paper and how they'll actually write it down in their logbooks. It's also how we expect to see it on exam papers. We aren't teaching astronomy but CN".

So, I'm a bit at a loss here on the correct display. I could certainly make it configurable to either see paired coords or tabulated. Your thoughts?

@gzotti
Copy link
Member

gzotti commented Feb 2, 2020

Hm, a config option "compact/separate" would of course be extra comfortable, to add the data without taking too many lines for "regular" ("somewhat interested astronomers") users.
Your Nav students will then likely configure their program to disable all other astronomical data output, so splitting into separate lines may not be such an issue also on 1368x768 notebook screens.

@A-j-K
Copy link
Contributor Author

A-j-K commented Feb 2, 2020

Hm, a config option "compact/separate" would of course be extra comfortable, to add the data without taking too many lines for "regular" ("somewhat interested astronomers") users.
Your Nav students will then likely configure their program to disable all other astronomical data output, so splitting into separate lines may not be such an issue also on 1368x768 notebook screens.

OK, I will add the ability to allow the user to configure how they want the data to be displayed. That's not a big issue. I will default to "astronomer view", ie paired coords as it is how most Stellarium users will expect. Are we ok with the duplication of data fields? Or should in "paired display view" omit duped fields?

I will start work on the User Guide shortly. LaTex is a learning curve for me. I expect writing the guide will take longer than the code took to write :) I also need my contribution to the guide to be proofread for grammar and accuracy by others. Luckily I have access to people who can assist me in that. However, this will all take some extra time.

@gzotti
Copy link
Member

gzotti commented Feb 2, 2020

About "astronomer view": Maybe even an extra opt to "omit duplicates" that does not display LON/LAT and Zn/Hn. That may invite a combo box selection, but I don't know what looks best.

LaTeX: Maybe it's difficult to start a new project. However I hope it's not very difficult (conceptually it is approximately as difficult as HTML, just a decade older) to follow examples and add a few \section{...}, and else it's all set up to "make pdf" on the command line. Please see the README in the folder.

@A-j-K
Copy link
Contributor Author

A-j-K commented Feb 2, 2020

@gzotti @alex-w

Here are two screen grabs of the display. Which is used is as determined by the user in the config system. If you are happy with this I'll commit this code and move onto extending the About text to provide extra info. Once we are all settled on the UI section I will begin on the User Guide.

Default View:-
Astroview

Tabulated view (selectable by config, not the default out of the box view)
Tableview

@gzotti
Copy link
Member

gzotti commented Feb 2, 2020

I think in the first screen the tags should also be capitalized (like in the Almanac). Else, from my side yes please proceed.

@A-j-K
Copy link
Contributor Author

A-j-K commented Feb 2, 2020

@gzotti I also noticed GHA doesn't have the leading + sign. I have added that (handling sign is an important part of the sight reduction process and should always be specified, even if the value is always positive). I will capitalize as you suggest.

@A-j-K
Copy link
Contributor Author

A-j-K commented Feb 2, 2020

I think in the first screen the tags should also be capitalized (like in the Almanac). Else, from my side yes please proceed.

I decided that SHA was important enough to add to this view. Screengrab added for reference.

Astroview2

@A-j-K
Copy link
Contributor Author

A-j-K commented Feb 2, 2020

D'oh, I broke it. Fix coming.

@axd1967
Copy link
Contributor

axd1967 commented Feb 3, 2020

@A-j-K I have a core dump with 8d5c267 - I try to check this ASAP.

@alex-w
Copy link
Member

alex-w commented Feb 3, 2020

I've found warning also:

/home/aw/devel/stellarium/plugins/NavStars/src/NavStars.cpp:448:30: warning: variable ‘infoGroup’ set but not used [-Wunused-but-set-variable]
StelObject::InfoStringGroup infoGroup = StelObject::OtherCoord;

@A-j-K
Copy link
Contributor Author

A-j-K commented Feb 3, 2020

@A-j-K I have a core dump with 8d5c267 - I try to check this ASAP.

@axd1967 Are you building in Release mode or Debug mode? I have found there seems to be a problem in Qt5 libs/headers that causes a core dump/crash when running in Debug mode. I have a workaround but it's not pretty. I really need to isolate the actual cause and figure a proper solution.

(edit: the problem appears to be with QMultiMap iterators)

@gzotti
Copy link
Member

gzotti commented Feb 4, 2020

But I also need to investigate the accuracy of the results compared to real world Almanac sight reductions. They should match within +/-0.1 minute of arc.

They can't. Be happy if they are within 0.33' now, and when we drop the 0 after the aberration fix, we should be within (hopefully) 2''.

@gzotti
Copy link
Member

gzotti commented Feb 6, 2020

What does the "Only highlight when visible" do?
You may want to add tooltips to the checkboxes for a short help.

@A-j-K
Copy link
Contributor Author

A-j-K commented Feb 6, 2020

With Stellarium today the highlight circles are drawn around the Nav stars all the time. This includes during the daytime when the star it is highlighting is not visible. Checking this box will only draw the highlight circle if the star is visible in the sky. So, as dawn approaches are stars start to appear, Nav stars are highlighted at that point and not permanently stuck on.

I will add tooltips.

@gzotti
Copy link
Member

gzotti commented Feb 6, 2020

Ah, now I see it. Good feature, thanks! Tooltips will certainly help.

@larawag
Copy link

larawag commented Feb 10, 2020

@A-j-K

Within the last days I had the opportunity to take a deeper look into your code. I still like it but now I have some comments and questions:

You are going to supply the computed altitude of the selected celestial object, cf. Ho in NavStar plugin window. If Ho is indeed the computed observed altitude and azimuth as a solution of Sight Reduction, I cannot see where to define the height of the observer over the sea level. This could be done in the NavStars plugin window. Also I expected the horizontal parallax HP (for Moon or Planets) and the semi-diameter R (for Moon or Sun) in the main window for the selected object.

In addition to that I miss the current time and date of Greenwich on the main screen. From my perspective showing this on the main window is mandatory, especially in cases where your current location is in the vicinity of the 180th degree of longitude.

Maybe you already discussed this issue but when I learned CN we were forced to use the format xx° xx.x' for LAT, Dec, etc. and xxx° xx.x' for LON, etc. and we were forced to write a leading zero (if existing). The idea behind this was to avoid mistakes and so I suggest to use this format also in Stellarium - also for teaching a more robust way to your students and to me ;-) Additionally the data can be vertical aligned on the screen more easily.

To my feeling there is some additional code necessary before a merge into Stellarium is useful. That is the reason why I retracted my pull request #812 last year. At begin of January 2020, you mentioned the first time that you were going to do first steps for implementing CN in Stellarium whereas I already was doing the same. So I tried to ask you for collaboration but I did not get any clear answer. What do you think now about bundling our work? I do have some ideas what I would expect a CN plugin should can do.

To be consistent to the other lines in NavStarsCalculator.cpp you can drop in lines 74 and 75 the std:: namespace command.

If you need some \LaTeX{} support just let me know.

@A-j-K
Copy link
Contributor Author

A-j-K commented Feb 10, 2020

@larawag

You are going to supply the computed altitude of the selected celestial object, cf. Ho in NavStar plugin window. If Ho is indeed the computed observed altitude and azimuth as a solution of Sight Reduction, I cannot see where to define the height of the observer over the sea level. This could be done in the NavStars plugin window. Also I expected the horizontal parallax HP (for Moon or Planets) and the semi-diameter R (for Moon or Sun) in the main window for the selected object.

First off, I'm displaying Ho, Hc and Zn. As a begin writing the User Guide update I am now toying with the wisdom of displaying Ho at all because it doesn't add anything except confusion (your observation is evidence of just that). So it's likely I will remove it as I make progress with the manual.

As for height of the observer, that's merely a function of what the user chooses in the Location window. Again, there will be information about this in the guide.

In addition to that I miss the current time and date of Greenwich on the main screen. From my perspective showing this on the main window is mandatory, especially in cases where your current location is in the vicinity of the 180th degree of longitude.

It is shown? UTC is the first line added in the infoStrings displayed.

Maybe you already discussed this issue but when I learned CN we were forced to use the format xx° xx.x' for LAT, Dec, etc. and xxx° xx.x' for LON, etc. and we were forced to write a leading zero (if existing). The idea behind this was to avoid mistakes and so I suggest to use this format also in Stellarium - also for teaching a more robust way to your students and to me ;-) Additionally the data can be vertical aligned on the screen more easily.

Agreed, the leading zero where required is important. I will add that.

To my feeling there is some additional code necessary before a merge into Stellarium is useful. That is the reason why I retracted my pull request #812 last year. At begin of January 2020, you mentioned the first time that you were going to do first steps for implementing CN in Stellarium whereas I already was doing the same. So I tried to ask you for collaboration but I did not get any clear answer. What do you think now about bundling our work? I do have some ideas what I would expect a CN plugin should can do.

I'd be more than happy to collab. The only reason I continued on was I probably found myself with more time on my hands. But yeah, please do! :)

The one point I do want to achieve is based on feedback I had from CN instructors. Make sure it's all on the screen. If you have to open another window and start entering data it's not going to be used. What they were looking for was a supporting role. They can "pretend" to be making an observation (that's what Stellarium excels at, it looks superb). But they just wanted the intermediates
(such as gha) and the solution (Hc/Zn) right there on the screen. "Instant feedback". Their focus is on the use of the Almanac, not Stellarium. So listing the solution right there without a faff is important. Instructors noted that the use of scripting was a feature they could use to set up a session. I have also used this when testing :)

To be consistent to the other lines in NavStarsCalculator.cpp you can drop in lines 74 and 75 the std:: namespace command.

Will do.

If you need some \LaTeX{} support just let me know.

It doesn't look too bad. \LaTeX{} isn't the issue, writer's block is ;)

--Andy

@alex-w
Copy link
Member

alex-w commented Mar 1, 2020

I see that fixes for guide are in separate branch, so, I'll merge this branch.

@alex-w alex-w merged commit 9e85003 into Stellarium:master Mar 1, 2020
@A-j-K
Copy link
Contributor Author

A-j-K commented Mar 3, 2020

@alex-w Ah yes, I decided to use a separate branch for guide mainly because I have created a number of "temporary" tools to create graphic for the manual. Some of these tolls will turn out to be "not temporary" as I'll want to keep them in case I need to adjust the manual in future (which is possible) . However, I found that these were "cluttering up" my otherwise clean code branch. So I spun that off to work on as a seperate "mini project". I hope to have that done soon. However, for me, code is easier than manuals so I need endless cycles of proofreading. I'd like to make sure my contribution to the User Guide is the best effort.

@axd1967
Copy link
Contributor

axd1967 commented Mar 3, 2020

@A-j-K please shout when you want a review of the manual.

@A-j-K
Copy link
Contributor Author

A-j-K commented Mar 3, 2020

@A-j-K please shout when you want a review of the manual.

@axd1967

I will open a new PR for the guide and I will tag you on it when I do. Thank you for your time and effort, it's appreciated.

@A-j-K
Copy link
Contributor Author

A-j-K commented Mar 3, 2020

@axd1967

I should have asked, do you have the ability to compile the manual or would you like me to provide temp links to download the PDF from? I can make them available short term if required unless you can compile it yourself.

@axd1967
Copy link
Contributor

axd1967 commented Mar 4, 2020

@A-j-K I'm new to LaTex, am stumbling across a make error
! LaTeX Error: File `tikz.sty' not found. so I'm now figuring out how to get this tikz package (which apparently drags me into a LaTex update horror story).

don't produce binary (PDF) documents that cannot be annotated (yes, I know it is possible, but nevertheless, that is not manageable). and something that does not contain diffs is impossible to review. so my only choice is to do a diff of these commits (which I now see have already merged ............... so where can I find all documentation changes related to this issue? ) and understand this LaTex beast (how elegant it might be). I am trying TexStudio 2.12.6 atm.

(so I could ask @gzotti the same question he asled in #960 ... what editor IDE are you using? but that is an academical question. and also: LaTex is waaaaay more complicated to use than a wiki format such as Asciidoc, Markdown, ReStructuredText...)

https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution
https://tex.stackexchange.com/questions/2044/how-to-install-a-current-version-of-tikz

Update:

whoohoo!
image

doh!
image

@gzotti
Copy link
Member

gzotti commented Mar 4, 2020

@axd1967 You could read the README.md which resides in the guide directory about the tools that have been used successfully.

@axd1967
Copy link
Contributor

axd1967 commented Mar 4, 2020

I have read that README...

@alex-w
Copy link
Member

alex-w commented Mar 4, 2020

@axd1967 just try sudo apt install libpgf6

@axd1967
Copy link
Contributor

axd1967 commented Mar 4, 2020

thanks - still the same error.
I don't like to install random packages without understanding what goes wrong... StackOverflow is full of well-meant, but wrong suggestions, that end up making a system unstable.
I'll review the diffs for now.

@alex-w
Copy link
Member

alex-w commented Mar 4, 2020

I just use TeXLive from tug.org - https://tug.org/texlive/quickinstall.html

@axd1967
Copy link
Contributor

axd1967 commented Mar 4, 2020

@A-j-K you can find a first review here: https://github.com/axd1967/stellarium/compare/navstars_improvements_guide...axd1967:contrib/review-ajk-doc?expand=1

@alex-w thx but I still get errors. don't worry, I wil try to find out but it will take time, I'll try to update the README too.
image
(and having to install 6 Gb that will take an hour to download/install is flabbergasting ... I bet I don't need 99% of this...)

@gzotti
Copy link
Member

gzotti commented Mar 4, 2020

Last time I configured a system it worked out of the box with these packages:

sudo apt-get install texlive-base texlive-bibtex-extra texlive-latex-recommended \
texlive-latex-extra texlive-pictures texlive-fonts-recommended biber make

@axd1967
Copy link
Contributor

axd1967 commented Mar 4, 2020

yes, that's how it is written in the README. but I first want to untangle whatever LaTex was installed via TexStudio.

@A-j-K
Copy link
Contributor Author

A-j-K commented Mar 4, 2020

If it's any help I created a Docker image with all the tools required to build the user guide. I then just have Docker Engine installed on my Ubuntu VM and building it becomes simple. I'm actually going to add instructions and a quick way to build the manual using Docker.

As for the manual, I'll be making a new PR shortly to get it rolling.

https://hub.docker.com/repository/docker/andykirkham/stellarium-build

https://github.com/A-j-K/base-dockers/blob/master/stellarium_build/Dockerfile

Really needs instructions on how to use it but it has everything installed to compile the User Guide PDF.

In theory, it should compile Stellarium but I haven't tried that yet as I have a Windows dev env currently working quite well so just using that for code.

@axd1967
Copy link
Contributor

axd1967 commented Mar 5, 2020

that is an interesting solution!

but I see a (for a Linux user) suspect symlink to an .exe in https://github.com/A-j-K/base-dockers/blob/1962c3e9fa7828837528f74420a8d45dae2f018a/stellarium_build/Dockerfile#L63-L64 (wonder if that would work on other systems).

tip: you might also want to separate the packages for stellarium compilation from the packages to build the docs (https://github.com/A-j-K/base-dockers/blob/1962c3e9fa7828837528f74420a8d45dae2f018a/stellarium_build/Dockerfile#L6)

but you just gave me an idea; I am more of a Vagrant user, as that allows me to completely isolate the VM environment from the host env, while Docker relies on host OS - in your case Windows.

@A-j-K
Copy link
Contributor Author

A-j-K commented Mar 5, 2020

@axd1967
The reason the symlink is there is because the Makefile for the User Guide expects the executable to be named that way.

Yes, Vagrant is another option. I just use VMWare to run Ubuntu and install Docker Engine. Then, I build all my tools as images as it makes running them simple without having my Ubuntu image polluted with 1000s of package installs. Each Docker image contains what it needs to get the job done. It also means my building environments are always the same unless I update the image. Just makes being consistent and repeatable a lot easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants