-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sun_vs_dec.py
executable file
·51 lines (29 loc) · 1.12 KB
/
Sun_vs_dec.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import argparse
import numpy as np
from icecube import dataclasses,astro
import ingredients as ing
HSun = ing.H1D.Empty(-1.0,0.0,200)
TIME=dataclasses.I3Time(0)
for year in [2010,2011,2012,2013,2014,2015,2016]:
print year
for month in range(3,11):
print month
for day in range(1,32):
if month==2 and day > 28:
if not year in [2012,2016]:
continue
elif day > 29:
continue
if month in [4,6,9,11] and day==31:
continue
for hour in range(24):
for minute in range(0,60):
#for second in range(0,60,10):
TIME.set_utc_cal_date(year,month,day,hour,minute,0,0.0)
print minute
print TIME
pos=np.cos(astro.I3GetSunDirection(TIME).zenith)
if pos < 0.0:
# print pos
HSun.Fill(pos)
HSun.Write("/home/ctoennis/Analyses/Standard_Analysis_Framework/Signal_Ingredients/HSun.txt")