.. _1dc_getting_data: Getting the data ================ The :ref:`first CTA Data Challenge ` data are available on the `CTA ownCloud server `_. You need your usual CTA credentials to download the data. The release contains simulated data for the Galactic Plane Survey, the Galactic Centre Survey, the Extragalactic Survey and the AGN monitoring program, :ref:`instrument response functions (IRFs) `, and the :ref:`model definition files ` that were used for the simulation. The data were split into the separate files that can be downloaded by clicking on the following links: * `Galactic Plane Survey `_ (8.3 GB) * `Galactic Centre Survey `_ (4.4 GB) * `Extragalactic Survey `_ (2.5 GB) * `AGN monitoring program `_ (4.7 GB) * `Instrument Response Functions `_ (1.2 MB) * `Sky and background models `_ (0.9 GB) You can also download the files using the ``wget`` tool from the command line by typing: .. code-block:: bash $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gps.tar.gz --user= --ask-password $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gc.tar.gz --user= --ask-password $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/egal.tar.gz --user= --ask-password $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/agn.tar.gz --user= --ask-password $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/caldb.tar.gz --user= --ask-password $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/models.tar.gz --user= --ask-password .. .. warning:: ```` needs to be replaced by your CTA user name. Don't type the ``$`` symbol. It indicates that a command should be typed on the command line of your terminal. .. note:: You may need to add the ``--no-check-certificate`` option to download the files using ``wget``. .. note:: In case you encounter the following error message .. code-block:: bash HTTP request sent, awaiting response... 401 Unauthorized Authentication selected: Basic realm="ownCloud" Reusing existing connection to owncloud.cta-observatory.org:443. HTTP request sent, awaiting response... 404 Not Found 2017-06-06 14:43:33 ERROR 404: Not Found. or any other problems with the download, please contact sstober@cta-observatory.org. To make sure that you have the relevant files you may check the MD5 checksums after downloading by typing for example .. code-block:: bash $ md5 gps.tar.gz on Mac OS X or .. code-block:: bash $ md5sum gps.tar.gz on Linux. Below the expected results: .. code-block:: bash gps.tar.gz c7129c71e911920f82273270c9d7c818 gc.tar.gz 07aa46bb2d67cd64fa4685078643b043 egal.tar.gz 4ea5f2ff8312b700dcc133a89d9fd096 agn.tar.gz cef82d6772bd123cd9c6949aeede9d71 caldb.tar.gz ce718128e1b2fe19c4b8dc79b688d113 models.tar.gz 87662cf53a2988522f485cad984d8810 Now uncompress the files at any place by typing .. code-block:: bash $ tar xfvz gps.tar.gz $ tar xfvz gc.tar.gz $ tar xfvz egal.tar.gz $ tar xfvz agn.tar.gz $ tar xfvz caldb.tar.gz $ tar xfvz models.tar.gz You should now have a folder named ``1dc`` in your current working directory with the following structure: .. code-block:: bash 1dc/ 1dc/caldb 1dc/data 1dc/models 1dc/obs Before continuing, please set the following environment variables: .. code-block:: bash $ export CTADATA=$PWD/1dc $ export CALDB=$CTADATA/caldb .. .. note:: You may consider adding the ``CTADATA`` and ``CALDB`` environment variables to your ``.bashrc`` file (or equivalent) so that your analysis environment for the :ref:`first CTA Data Challenge ` is always setup correctly.