View Javadoc

1   /*
2    * $Id JohnsonMagnitude.java $
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  //    if (passband == Passband.U)
50  //       return new JohnsonMagnitude(something or other);
51  //    else if (passband == Passband.B)
52  //       return new
53  //    else
54           throw new UnsupportedOperationException("Do not know how to convert to Johnson Magnitude with passband "+passband);
55        
56     }
57  
58     
59  }
60  
61  /*
62  $Log: AbMagnitude.java,v $
63  Revision 1.1.1.1  2003/08/25 18:36:27  mch
64  Reimported to fit It02 source structure
65  
66  Revision 1.1  2003/06/26 19:17:26  mch
67  new classes for handling passbands, etc
68  
69  */