getting_data.rst 3.06 KB

Getting the data

The :ref:`first CTA Data Challenge <glossary_1dc>` 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) <glossary_irf>`, and the :ref:`model definition files <glossary_moddef>` that were used for the simulation.

The data were split into the separate files that can be downloaded by clicking on the following links:

You can also download the files using the wget tool from the command line by typing:

$ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gps.tar.gz --user=<user> --ask-password
$ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gc.tar.gz --user=<user> --ask-password
$ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/egal.tar.gz --user=<user> --ask-password
$ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/agn.tar.gz --user=<user> --ask-password
$ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/caldb.tar.gz --user=<user> --ask-password
$ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/models.tar.gz --user=<user> --ask-password

Warning

<user> 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.

After downloading, uncompress the files at any place by typing

$ 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:

1dc/
1dc/caldb
1dc/data
1dc/models
1dc/obs

Before continuing, please set the following environment variables:

$ 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 <glossary_1dc>` is always setup correctly.