1
2
3
4
5
6 package org.astrogrid.intensity;
7
8
9 /***
10 * (taken from http://www.astro.utoronto.ca/~patton/astro/mags.html)
11 *<p>
12 This magnitude system is defined such that, when monochromatic flux f is measured in erg sec^-1 cm^-2 Hz^-1,
13
14 m(AB) = -2.5 log(f) - 48.60
15 where the value of the constant is selected to define m(AB)=V for a flat-spectrum source. In this system, an object with constant flux per unit frequency interval has zero color.
16
17 References:
18 Oke, J.B. 1974, ApJS, 27, 21
19 *
20 * @author M Hill
21 */
22
23 public class AbMagnitude extends Magnitude
24 {
25 public AbMagnitude(double magnitude, double error, boolean apparent)
26 {
27 super(magnitude, error, apparent);
28 }
29
30 /***
31 * Defaults to apparent magnitude
32 */
33 public AbMagnitude(double magnitude, double error)
34 {
35 super(magnitude, error, true);
36 }
37
38 public Flux toFlux()
39 {
40 throw new UnsupportedOperationException("Not yet implemented");
41 }
42
43 /***
44 * Converts to (Vega) JohnsonMagnitude. See http://www.astro.utoronto.ca/~patton/astro/mags.html,
45 */
46 public JohnsonMagnitude toJohnsonMagnitude()
47 {
48
49
50
51
52
53
54 throw new UnsupportedOperationException("Do not know how to convert to Johnson Magnitude with passband "+passband);
55
56 }
57
58
59 }
60
61
62
63
64
65
66
67
68
69