])

    return DataTable


DataLog_Extension = '_dr10_LinesLog_v3.txt'  #First batch process for untreated spectra
TexTable_Extension = '_TableSingleIntensities.tex'  #First data log for untreated spectra

# DataLog_Extension   = '_WHT_LinesLog_v3.txt'                    #First batch process for untreated spectra
# TexTable_Extension  = '_WHT_TableSingleIntensities.tex'        #First data log for untreated spectra

CatalogueFolder, DataType, Log_Format = DataToTreat()
Pattern = DataType + '.fits'

# Importing Dazer libraries for launching the batch measurement
pv = plotMan.myPickle()

#Find and organize files from terminal command or .py file
FilesList = pv.FindAndOrganize(Pattern, CatalogueFolder, CheckComputer=True)

HBeta_Ion = "Hbeta_4_2"

HeaderSize = 2

for m in range(len(FilesList)):
    for j in range(len(FilesList[m])):

        #       Get the spectrum:
        CodeName, FileName, FileFolder = pv.FileAnalyzer(FilesList[m][j])

        LineIntensity_Table = GetDataTable(FileFolder, CodeName,
Beispiel #2
0
import CodeTools.PlottingManager as plotMan
import numpy as np


def mAB_to_ergs(Flux_Ab):

    Exponent = -0.4 * (Flux_Ab + 48.6)
    Flux_Erg = np.power(10, Exponent)

    return Flux_Erg


# Data search configuration

Pv = plotMan.myPickle()

# Generate figures
Pv.FigFormat_One(ColorConf="Day1")
c_AperS = 2.99792458e18  # A / s

Night1_Folder = "/home/vital/Astrodata/WHT_HII_Galaxies/HII_WHT_2012_12/Noche1/Blue/"
Night2_Folder = "/home/vital/Astrodata/WHT_HII_Galaxies/HII_WHT_2012_12/Noche2/Blue/"

#  --------------------------------NIGHT 1-----------------------------------------

# StarFile_1                      = 'a_std_wolf.dat'
# StarSpectra                     = 'Star_Wolf_wide_cr_f_a_bg0001_fxW_v1.fits'
# Title                           = 'Wolf 1346 flux calibration comparison with reference Night 1'
# Folder                          =  Night1_Folder
#
# WaveTheo, FluxTheo_AB           = np.loadtxt(Folder + StarFile_1, comments='#',  usecols = (0, 1), unpack=True)
#!/usr/bin/python

import CodeTools.MethodsPyplot as mp
import matplotlib.pyplot as plt
from PipeLineMethods.ManageFlow import DataToTreat

import CodeTools.PlottingManager as plotMan
import PipeLineMethods.pyFlow_Configuration as pyFlowMan
import AstroTools.AstroClass as astrotools
import AstroTools.ScienceClass as mathtools

# Data search configuration
PipeManager = pyFlowMan.FlowManager()
PlotVector  = plotMan.myPickle()
Astro       = astrotools.AstroPythonMethods()
vit         = mathtools.FittingMethods()


def Galaxy_Properties():
#This method contains the redshift calculated from the emission lines and the EBV from the dust maps.
#It must be recalculated
      
    GalaxyList=["obj52703-612v1_z0.009_EBV0.0097",
                "obj52703-612v2_z0.009_EBV0.0097",
               "obj51991-224_z0.102_EBV0.0176 ",
               "obj51959-092_z0.042_EBV0.0267 ",
               "obj52235-602_z0.024_EBV0.0266",
               "obj52319-521_z0.033_EBV0.0247",               
               "objSHOC575_z0.016_EBV0.0331",
               "objSHOC593_z0.028058_EBV0.1013",          
               "objSHOC036_z0.037519_EBV0.0235",