forked from sPaMFouR/RedPipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAirmass.asc
35 lines (25 loc) · 928 Bytes
/
Airmass.asc
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
DATE_OBS = '2014-12-26'
#####################################################################
# Calculating AIRMASS (To Be Run Using 'asthedit' Task In IRAF) #
#####################################################################
#####---Observatory Details (Will Also Print In The Header)---#####
OBSERVAT = "Indian Astronomical Observatory, Hanle"
LONG = 281.03583
LAT = 32.7794
ALT = 4500
TIMEZONE = -5.5
#####---Compute The Required Variables For Calculating Airmass---#####
UT = sexstr ((@'tm_start'+0.1)/3600.00)
JD = julday (DATE_OBS, UT)
ST = mst (DATE_OBS, UT, LONG)
HA = ST - RA
RA = sexstr (@'ra')
DEC = sexstr (@'dec')
AIRMASS = airmass (RA, DEC, ST, LAT)
####---Print Computed Keywords In The Terminal---#####
print(UT)
print(JD)
print(ST)
print(RA)
print(DEC)
print(AIRMASS)