コード例 #1
0
  def  __init__(self, filename=None):
    """PancamSpectra(filename="")

    Read in Pancam spectra in CSV format from filename.
    """

    FloatDataset.__init__(self, filename, "pancam_spectra")
    
    self.readin(1)
    self.update_features()
コード例 #2
0
  def  __init__(self, filename=None):
    """PancamSpectra(filename="")

    Read in Pancam spectra in CSV format from filename.
    """

    FloatDataset.__init__(self, filename, "pancam_spectra")
    
    self.readin(1)
    self.update_features()
コード例 #3
0
  def  __init__(self, filename=None):
    """DANSpectra(filename="")

    Read in DAN spectra in CSV format from filename.
    """

    FloatDataset.__init__(self, filename, "dan_spectra")
    
    self.readin(1)
    self.update_features()
コード例 #4
0
  def  __init__(self, filename=None, initfilename=None):
    """Floats(filename="")

    Read in floating point data in CSV format from filename.
    """

    FloatDataset.__init__(self, filename, "floats", initfilename)
    
    try:
      self.readin(0)
    except:
      print
      print 'This class assumes no identifiers in the data, i.e., just numeric values.'
      sys.exit(1)
コード例 #5
0
  def  __init__(self, filename=None):
    """APFSpectra(filename="")

    Read in APF spectra in CSV format from filename.
    """

    FloatDataset.__init__(self, filename, "apf_spectra")

    # readin(1) means that the first entry on each line is an item name.  
    # readin(0) means that the first entry on each line is the first feature.
    self.readin(1)

    # Feature names (wavelengths in Angstroms) are in the data file
    # on the first line (starts with #).
    # This is read in by the FloatDataset class.

    self.xlabel = 'Wavelength (A)'
    self.ylabel = 'Flux'
コード例 #6
0
  def  __init__(self, filename=None):
    """GBTSpectra(filename="")

    Read in GBT spectra in CSV format from filename.
    """

    FloatDataset.__init__(self, filename, "gbt_spectra")

    # readin(1) means that the first entry on each line is an item name.  
    # readin(0) means that the first entry on each line is the first feature.
    self.readin(1)

    # Feature names (frequencies in MHz) are in the data file
    # on the first line (starts with #).
    # This is read in by the FloatDataset class.

    self.xlabel = 'Frequency (MHz)'
    self.ylabel = 'Flux'
コード例 #7
0
  def  __init__(self, filename=None, initfilename=None):
    """CNNFeat(filename="")

    Read in CNN feature vectors in CSV format from filename.
    """

    FloatDataset.__init__(self, filename, "cnn", initfilename)

    # readin(1) means that the first entry on each line is an item name.  
    # readin(0) means that the first entry on each line is the first feature.
    self.readin(1)

    # Feature names (wavelengths in Angstroms) are in the data file
    # on the first line (starts with #).
    # This is read in by the FloatDataset class.

    self.xlabel = 'x'
    self.ylabel = 'y'
コード例 #8
0
  def  __init__(self, filename=None):
    """GBTSpectra(filename="")

    Read in GBT spectra in CSV format from filename.
    """

    FloatDataset.__init__(self, filename, "gbt_spectra")

    # readin(1) means that the first entry on each line is an item name.  
    # readin(0) means that the first entry on each line is the first feature.
    self.readin(1)

    # Feature names (frequencies in MHz) are in the data file
    # on the first line (starts with #).
    # This is read in by the FloatDataset class.

    self.xlabel = 'Frequency (MHz)'
    self.ylabel = 'Flux'
コード例 #9
0
  def  __init__(self, filename=None):
    """APFSpectra(filename="")

    Read in APF spectra in CSV format from filename.
    """

    FloatDataset.__init__(self, filename, "apf_spectra")

    # readin(1) means that the first entry on each line is an item name.  
    # readin(0) means that the first entry on each line is the first feature.
    self.readin(1)

    # Feature names (wavelengths in Angstroms) are in the data file
    # on the first line (starts with #).
    # This is read in by the FloatDataset class.

    self.xlabel = 'Wavelength (A)'
    self.ylabel = 'Flux'