Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11,700 changes: 11,700 additions & 0 deletions Tutorial_1_ArrayConfig.ipynb

Large diffs are not rendered by default.

5,386 changes: 5,386 additions & 0 deletions Tutorial_2_CTA_Info.ipynb

Large diffs are not rendered by default.

835 changes: 835 additions & 0 deletions Tutorial_3_Application.ipynb

Large diffs are not rendered by default.

Empty file removed __init__.py
Empty file.
Binary file added archive/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions archive/development/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .load_fov import *

42 changes: 42 additions & 0 deletions archive/development/load_fov.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
from astropy.table import Table
import astropy.units as u

import numpy as np
from ..const import SCRIPT_DIR

# Load FoV
class loadFov():
_listOfFoV = ["05", "2", "4"]

def __init__(self):
self.__loadFov__()

for mode in self.listOfFoV:
setattr(self, "FoV_"+str(mode), self.__selectFoV__(mode))

def __repr__(self):
return self.table.__repr__()

@property
def table(self):
return self._table

@property
def listOfFoV(self):
return self._listOfFoV

def __loadFov__(self):
tels_dict = []
for mode in self.listOfFoV:
with open(SCRIPT_DIR+"/config/CTA-ULTRA6-LaPalma-divergent_{}_180.cfg".format(mode)) as div:
text = div.read()
text = text.split("#")[1:]

for line in text:
line_list = line.split("\n")
tels_dict.append([mode, float(line_list[1].split("=")[1]), float(line_list[2].split("=")[1])])

self._table = Table(np.asarray(tels_dict), names=["FoV", "Theta", "Phi"], units=["", u.deg, u.deg])

def __selectFoV__(self, mode):
return self.table[self.table["FoV"]==mode]
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions config/layout-corrected.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-70.04 -7.23 54.00 28 1.05
-34.37 110.98 43.00 28 1.05
76.18 95.34 39.70 28 1.05
31.81 -19.70 43.00 28 1.05
-210.65 50.51 61.3 16 1.0736
-179.06 223.02 42.1 16 1.0736
27.96 243.56 23.2 16 1.0736
176.27 127.90 19.3 16 1.0736
124.21 -134.56 39.6 16 1.0736
-74.73 -144.16 53.2 16 1.0736
-214.79 -122.52 74.1 16 1.0736
-98.11 376.45 20.7 16 1.0736
21.08 -307.61 73.3 16 1.0736
-196.40 -290.24 88.1 16 1.0736
0.90 44.85 40.0 16 1.0736
-302.85 384.60 3.3 16 1.0736
-345.00 175.00 69.0 16 1.0736
-374.99 -33.39 92.6 16 1.0736
204.28 -267.84 53.0 16 1.0736
Binary file added ctadiv/.DS_Store
Binary file not shown.
Binary file added ctadiv/ArrayConfig/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions ctadiv/ArrayConfig/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .layout import *

from . import utils

__version__ = 0.1
Loading