.. |start| image:: img/ui/icon/iconic-play-circle.png
:class: icon-invert
.. |download| image:: img/ui/icon/iconic-data-transfer-download.png
:class: icon-invert
.. |prefsicon| image:: img/ui/icon/gear.png
:class: icon-invert
.. |helpicon| image:: img/ui/icon/help-icon.png
:class: icon-invert
.. |docs| image:: img/ui/icon/iconic-book.png
:class: icon-invert
.. |exit| image:: img/ui/icon/quit-icon.png
:class: icon-invert
.. |arrow-bottom| image:: img/ui/icon/iconic-arrow-circle-bottom.png
:class: icon-invert
.. |binicon| image:: img/ui/icon/bin-icon.png
:class: icon-invert
.. _download-manager:
Getting datasets
================
Installation packages do not contain any datasets, but Gaia Sky needs datasets to display planets, stars, and other objects. The welcome screen provides a few options to download and install datasets.
.. raw:: html
Since 3.2.0
.. contents::
:backlinks: none
Welcome screen
--------------
When you launch Gaia Sky **for the first time**, you are greeted with the following onboarding screen:
.. figure:: img/welcome/welcome-screen-onboarding.jpg
:alt: Gaia Sky onboarding screen.
:align: center
:target: _images/welcome-screen-onboarding.jpg
The onboarding screen offers a choice between a quick-start recommended setup or a fully customized experience.
From this window, you can access global **Preferences** (|prefsicon|), the **Help** window (|helpicon|), or **Exit** the program (|exit|) using the icons in the bottom-right corner.
There are two primary ways to begin:
- |start| :guilabel:`Start with recommended datasets` — Automatically downloads a curated selection of essential datasets and launches Gaia Sky immediately.
- |download| :guilabel:`Customize datasets` — Opens the :ref:`dataset manager `, where you choose which datasets to download and enable.
If you choose the **recommended** option, a progress window will appear. Once the download is complete, Gaia Sky will launch automatically.
If you choose to **customize** your setup, you will see the following view:
.. figure:: img/welcome/welcome-screen-nods.jpg
:alt: Gaia Sky welcome screen with no datasets.
:align: center
:target: _images/welcome-screen-nods.jpg
The welcome screen displayed when no local datasets are detected.
From here, you can return to the previous screen by clicking **Back**, or click |download| :guilabel:`Dataset manager` to begin your manual dataset selection. This process is covered in detail in the next section.
When at least one dataset is installed, the welcome screen looks like this:
.. figure:: img/welcome/welcome-screen.jpg
:alt: The welcome screen in Gaia Sky
:align: center
:target: _images/welcome-screen.jpg
The welcome screen when at least one dataset is installed.
.. _dataset-manager:
Dataset manager
---------------
From the welcome screen, you can start Gaia Sky or launch the **Dataset manager**, which lets you download, enable and disable datasets. Enabled datasets are loaded when Gaia Sky starts up. All downloads from the dataset server are performed over a secure, encrypted HTTPS connection, and data consistency is checked using ``SHA256`` checksums once the download has finished. The dataset manager displays two tabs at the top (:guilabel:`Available for download` and :guilabel:`Installed`), and a button to change the default data directory, at the bottom.
Data location
~~~~~~~~~~~~~
All datasets are installed in the data location. Check out :ref:`the directories section ` for the defaults. The install location can be changed by clicking on the button next to :guilabel:`Data location`, at the bottom of the window. When changing the data location, no data files are actually moved. If you want to migrate your data files to a different location, you must first do so by hand, and then point Gaia Sky to the new directory.
.. note:: The chosen directory must be readable and writable, or Gaia Sky will show a warning and refuse to install datasets there.
Available datasets
~~~~~~~~~~~~~~~~~~
.. figure:: img/welcome/dataset-manager.jpg
:alt: The dataset manager of Gaia Sky
:align: center
:target: _images/dataset-manager.jpg
The available datasets view in the dataset manager.
At the top of the window you can choose to view the datasets available for download (using the :guilabel:`Available for download` tab) or the installed datasets (using the :guilabel:`Installed` tab).
Each of these two views consists of a two-pane layout. The **left pane** displays a list of the installed or available datasets with some basic information for each. Once you click on one of these datasets, the **right pane** displays extensive information about the dataset and its files.
The :guilabel:`Available for download` tab lists all server datasets that can be downloaded and installed locally. In order to display a dataset in Gaia Sky, it must first be installed locally. To install a dataset, use the install button |arrow-bottom| or right-click on the dataset entry in the left pane and select :guilabel:`Install` in the context menu.
Multiple datasets can be downloaded at the same time without problems. The download process can be canceled at any time by clicking on the :guilabel:`Cancel download` button in the **right pane**. Canceled downloads can be resumed any time without losing progress, as the ``.part`` files are kept in the file system.
.. note:: If you close the dataset manager while downloads are running, you are asked to confirm, listing the current downloads. Closing the window cancels them.
Updates
~~~~~~~
The dataset manager also checks the versions of your installed datasets against the versions available on the server.
- If any installed dataset has a newer version available, the tab is labelled :guilabel:`Installed (N updates)`, the window title shows the number of updates, and the entry in the left pane is flagged as *Outdated dataset!*.
- For an outdated dataset, the install button in the right pane reads :guilabel:`Update` instead of :guilabel:`Install`.
- In the right pane you can compare the local version with the server version, read the release notes, and see if a newer dataset replaces the one you have installed.
Some datasets are tied to a particular Gaia Sky version. If a dataset was built for a different version of Gaia Sky than the one you are running, the right pane shows a compatibility warning, and the dataset may be disabled automatically. In that case, update Gaia Sky or download a version of the dataset that matches your installation.
Installed datasets
~~~~~~~~~~~~~~~~~~
.. figure:: img/welcome/catalog-selection.jpg
:alt: The dataset selection window of Gaia Sky
:align: center
:target: _images/catalog-selection.jpg
The installed datasets view in the dataset manager.
The installed datasets view shows the datasets found in the currently selected data directory. From this view, you can **enable** and **disable** datasets by either using the checkbox next to the dataset name, or by right-clicking and selecting :guilabel:`Enable` or :guilabel:`Disable` in the context menu. Only datasets that are enabled are loaded into Gaia Sky.
Some datasets are always enabled. This is the case for all texture packs (whose usage depends on the graphics quality setting) and for the base data pack.
.. warning:: Removing a dataset deletes all of its files on disk. To remove one, right-click on the dataset entry in the datasets list (left pane) and select |binicon| :guilabel:`Remove`, then confirm in the dialog that appears.
Enabling incompatible datasets
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Some combinations of datasets cannot be loaded together: more than one level-of-detail star catalog, more than one cluster catalog, or more than one SDSS release, for example. This can result in repeated stars or clusters and in naming conflicts. Gaia Sky warns you about these combinations before applying the selection.
Other ways to get datasets
--------------------------
- **Preferences window** — the :guilabel:`Data` tab of the :ref:`Preferences window ` has a :guilabel:`Dataset manager` button, which opens the same window. Note that newly enabled or newly downloaded datasets are only available after restarting Gaia Sky.
- **Manual download** — datasets can be downloaded from the `Gaia Sky dataset repository `__ and installed by copying them to your data location.
- **Loading datasets at runtime** — the dataset loader lets you load a dataset from file (.vot, .csv, etc.) or pick one of the installed datasets, without adding it permanently to the configuration.
Troubleshooting
---------------
The following messages can appear in the download area of the dataset manager:
- **HTTP Error (status code N)** — the server rejected the request. This is usually temporary; try again later.
- **No checksum found for dataset** — the dataset has no ``SHA256`` checksum published, so its contents cannot be verified.
- **SHA256 check failed** / **Error checking SHA256** — the downloaded file does not match the expected checksum, or the checksum could not be computed. Delete the partial download and try again.
- **Error decompressing** / **Error extracting data** — the downloaded archive is corrupt or was truncated. Cancel the download, delete the ``.part`` files, and retry.
- **Not enough free space on disk** — free up space in the data location and try again.
- **You don't have read and/or write permissions in the chosen directory** — pick a different data location.
- **Can't connect to data server!** — the dataset server is unreachable. If your base data pack is already installed, Gaia Sky will offer to continue in offline mode; otherwise, download the base data pack manually from the repository above.