# Gives the effective wavelength in microns for the standard wavelength regimes
wavelength_band = {
    "None": 0.000,
    "u": 0.350,
    "g": 0.475,
    "r": 0.630,
    "i": 0.780,
    "Z": 0.900,
    "Y": 1.020,
    "X": 1.100,
    "J": 1.200,
    "H": 1.650,
    "K": 2.200,
    "L": 3.400,
    "M": 4.800,
    "N": 11.70,
    "Q": 18.30,
}

nominal_extinction = {
    # These are the nominal MK and CP extinction values
    # ie the k values where the magnitude of the star should be modified by 
    # -= k(airmass-1.0)
    #
    # Columns are given as:
    # (telescope, filter) : k
    #
    ('Gemini-North', 'u'): 0.42,
    ('Gemini-North', 'g'): 0.14,
    ('Gemini-North', 'r'): 0.11,
    ('Gemini-North', 'i'): 0.10,
    ('Gemini-North', 'z'): 0.05,
    #
    ('Gemini-South', 'u'): 0.38,
    ('Gemini-South', 'g'): 0.18,
    ('Gemini-South', 'r'): 0.10,
    ('Gemini-South', 'i'): 0.08,
    ('Gemini-South', 'z'): 0.05
}

# TODO: This should be moved to the instruments. Figure out a way...
# CJS says: I don't think it should. These are standard filter
# wavelengths that can live in astrodata. Specific instruments
# override them, and *those* can live in the instrument lookups.

# Instrument, filter effective wavlengths
# '*' can be overriden by a specific instrument
filter_wavelengths = {
    ('*', 'u'): 0.3500,
    ('*', 'g'): 0.4750,
    ('*', 'r'): 0.6300,
    ('*', 'i'): 0.7800,
    ('*', 'z'): 0.9250,
    ('*', 'Y'): 1.0200,
    ('*', 'J'): 1.2500,
    ('*', 'H'): 1.6350,
    ('*', 'K'): 2.2000,
    ('*', 'FeII'): 1.6440,
}


# Names of spectrophotometric standards used in the Gemini OBJECT field,
# after converting to lowercase and stripping out spaces, then J2000.0
# coords and proper motions in mas/yr.
specphot_standards = {
    'bd+284211': ('21 51 11.0220905905 +28 51 50.366090892', -34.728, -56.851),
    'cd-329927': ('14 11 46.3240134300 -33 03 14.379335532', -4.136, 7.124),
    'cd-34241': ('00 41 46.9205477795 -33 39 08.431504848', -17.266, -18.719),
    'cygob2no9': ('20 33 10.7366753544 +41 15 08.222187463', -3.041, -4.659),  # Schulte 9
    'eg21': ('03 10 31.0201840720 -68 36 03.381441176', 39.451, -103.194),
    'eg81': ('11 37 26.3700093153 +14 10 14.103354248', -79.927, -44.696),
    'eg131': ('19 20 34.9229875534 -07 40 00.066805378', -61.279, -161.774),
    'eg274': ('16 23 33.8384178546 -39 13 46.160032569', 77.135, 0.334),
    'feige34': ('10 39 36.7377085527 +43 06 09.209752646', 12.542, -25.408),
    'feige56': ('12 06 47.2351675221 +11 40 12.658737086', -7.427, -6.526),
    'feige66': ('12 37 23.5157891619 +25 03 59.871049394', 1.833, -27.425),
    'feige67': ('12 41 51.7901702595 +17 31 19.750592670', -7.327, -37.281),
    'feige110': ('23 19 58.3995050606 -05 09 56.170282845', -10.68, 0.31),
    'g191b2b': ('05 05 30.6182785658 +52 49 51.920797126', 12.592, -93.525),
    'gd108': ('10 00 47.2462037648 -07 33 30.777365253', -42.368, -1.876),
    'gd140': ('11 37 05.1038329295 +29 47 58.292363897', -147.459, -12.782),
    'hd192281': ('20 12 33.1205906584 +40 16 05.442931142', -7.517, -2.162),
    'hd217086': ('22 56 47.1887219290 +62 43 37.654789076', -0.318, -2.077),
    'hilt600': ('06 45 13.3726265810 +02 08 14.688016523', -1.169, -0.534),
    'hz14': ('04 41 01.7398593372 +10 59 39.999082566', 91.354, -10.643),
    'hz44': ('13 23 35.2632775627 +36 07 59.545982652', -66.269, -4.516),
    'ltt377': ('00 41 30.4742099792 -33 37 32.032402561', -347.517, -251.053),
    'ltt1020': ('01 54 50.2704861570 -27 28 35.740415025', 310.816, -231.981),
    'ltt1788': ('03 48 22.6125635562 -39 08 37.013516494', 214.128, -189.449),
    'ltt2415': ('05 56 24.7419816722 -27 51 32.362978169', 236.465, -157.218),
    'ltt2915': ('07 40 20.7887176053 -17 24 49.155097204', 1138.640, -542.673),
    'ltt3218': ('08 41 32.4293043356 -32 56 32.916852010', -1061.335, 1345.946),
    'ltt3864': ('10 32 13.6185042385 -35 37 41.710291605', -260.740, -4.588),
    'ltt4364': ('11 45 42.9170659451 -64 50 29.464090822', 2661.594, -344.847),
    'ltt4816': ('12 38 49.7813250074 -49 48 00.218655097', -557.233, -74.089),
    'ltt6248': ('15 38 59.6477173130 -28 35 36.970418054', -233.378, -177.347),
    'ltt7379': ('18 36 25.9487430436 -44 18 36.919462094', -168.738, -159.044),
    'ltt7987': ('20 10 56.8485174654 -30 13 06.629141494', -340.722, -249.278),
    'ltt9239': ('22 52 41.0353308036 -20 35 32.995847106', 78.870, -314.210),
    'ltt9491': ('23 19 35.3881040214 -17 05 28.468265988', 242.143, 10.403),
    'pg0205+134': ('02 08 03.497520 +13 36 24.91632', 42.8, -1.6),
    'pg0216+032': ('02 19 18.9089371671 +03 26 51.366664476', -3.527, -31.225),
    'pg0310+149': ('03 13 37.1752356567 +15 06 21.260839282', 2.735, 1.513),
    'pg0823+546': ('08 26 49.6109695820 +54 28 00.332275894', 32.059, -25.138),
    'pg0846+249': ('08 49 05.8759372076 +24 45 07.928538213', -2.099, -7.195),
    'pg0934+554': ('09 38 20.3523773178 +55 05 50.091654658', -0.167, -67.714),
    'pg0939+262': ('09 42 50.6348760810 +26 00 59.845267830', -20.465, -19.262),
    'pg1121+145': ('11 24 15.1708225746 +14 13 46.246328238', 2.870, -3.645),
    'pg1545+035': ('15 48 24.2469238601 +03 22 50.906671685', -5.293, -2.113),
    'pg1708+602': ('17 09 15.8898636361 +60 10 11.009026085', -4.579, 9.591),
    'wolf1346': ('20 34 21.8849808924 +25 03 49.749569866', -403.633, -563.327),
}
