{ "cells": [ { "cell_type": "markdown", "id": "64f45739", "metadata": {}, "source": [ "# Reading csv data\n", "\n", "An example how to read data from the ANTARES webpage and figuring out the coordinate system. \n", "Superseded by other examples in this directory!" ] }, { "cell_type": "code", "execution_count": 1, "id": "c53905ba", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "from astropy.coordinates import SkyCoord\n", "from astropy.coordinates import FK5\n", "\n", "url=\"https://antares.in2p3.fr/PublicData_0717.dat\"\n", "cols = [\"Decl\",\"RA\",\"Nhit\",\"Beta\",\"MJD\"]\n", "\n", "c = pd.read_csv(url, sep='\\t', skiprows=(0,1), names=cols)" ] }, { "cell_type": "markdown", "id": "de2f56de", "metadata": {}, "source": [ "## coordinate format\n", "from https://docs.astropy.org/en/stable/coordinates/\n", "ICRS: international celestial reference system " ] }, { "cell_type": "code", "execution_count": 2, "id": "a7d00523", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0