Commit 31de37ed authored by Zhang Xin's avatar Zhang Xin
Browse files

git init

parent 072cc0cc
Pipeline #7245 failed with stages
in 1 minute and 59 seconds
CONFIG_FILE /Users/zhangxin/Work/SED_PRJ/superSim/LePhare//config/zphot_su.para
LIB_TYPE STAR
LIB_NAME LIB_STAR
NUMBER_SED 154
NUMBER_ROWS 154
RECORD_LENGTH 104
FILTER_FILE candles.filt
FILTERS 0.00000e+00 0.00000e+00 0.00000e+00 0.00000e+00 0.00000e+00 0.00000e+00 0.00000e+00 0.00000e+00 0.00000e+00 0.00000e+00
MAG_TYPE AB
AB_COR 1.572 -0.080 0.091 0.403 0.436 0.537 0.651 0.908 1.084 1.270
FLUX_COR 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000
CREATION_DATE Tue Jun 21 11:56:41 2022
cd $LEPHAREWORK
mkdir lib_bin lib_mag filt
$LEPHAREDIR/source/sedtolib -t S -c $LEPHAREWORK/config/zphot_su.para
$LEPHAREDIR/source/sedtolib -t Q -c $LEPHAREWORK/config/zphot_su.para
$LEPHAREDIR/source/sedtolib -t G -c $LEPHAREWORK/config/zphot_su.para
# more $LEPHAREWORK/lib_bin/LIB_CWW.doc
$LEPHAREDIR/source/filter -c $LEPHAREWORK/config/zphot_su.para
$LEPHAREDIR/source/mag_star -c $LEPHAREWORK/config/zphot_su.para
$LEPHAREDIR/source/mag_gal -t Q -c $LEPHAREWORK/config/zphot_su.para
$LEPHAREDIR/source/mag_gal -t G -c $LEPHAREWORK/config/zphot_su.para
$LEPHAREDIR/source/zphota -c $LEPHAREWORK/config/zphot_su.para -CAT_IN /Users/zhangxin/Work/SED_PRJ/superSim/src/test.in -CAT_OUT /Users/zhangxin/Work/SED_PRJ/superSim/src/test.out
### multi-color hight resolution image data
data_dir: "/LePhare/superSim/simData/inputImageSample/"
####### produce gal spec by Lepahre
##True or False,
##True: spec is exist
##False: spec not exist, need produce
spec_isExist: False
##Lephare Work dir, config file and some pre-process data
lePhareWorkDir: "/LePhare/superSim/LePhare/"
##Lephare lib dan binary file dir
lePhareDir: "/LePhare/lephare_dev/"
##spec file dir
spec_outDir: "/LePhare/superSim/Gal_test/lp_spec/"
#######
### mock data output dir
img_outDir: "/LePhare/superSim/Gal_test/"
### input galaxy catalog
catFn: "/LePhare/superSim/simData/catalog/goodn_sample.fits"
################# telescope information
# "CSST", "EUCLID" or "ROMAN"
tel: "CSST"
# CSST: 'NUV','u','g','r','i','z','y'
# EUCLID: 'VIS','NISP.Y','NISP.J','NISP.H'
# ROMAN: 'F062','F087','F106','F129','F158','F184','F146','F213'
fil: 'g'
time_nexp: [150]
nexp: [1]
# ---
# ###############################################
# #
# # Configuration file for CSST simulation
# # Overall settings
# # CSST-Sim Group, 2024/01/08
# #
# ###############################################
# # Base diretories and naming setup
# # can add some of the command-line arguments here as well;
# # ok to pass either way or both, as long as they are consistent
# work_dir: "/public/home/fangyuedong/project/workplace/"
# run_name: "ext_on"
# # Project cycle and run counter are used to name the outputs
# project_cycle: 9
# run_counter: 1
# # Run options
# run_option:
# # Output catalog only?
# # If yes, no imaging simulation will be run. Only the catalogs
# # of corresponding footprints will be generated.
# out_cat_only: NO
# ###############################################
# # Catalog setting
# ###############################################
# # Configure the input catalog: options should be implemented
# # in the corresponding (user defined) 'Catalog' class
# catalog_options:
# input_path:
# cat_dir: "/public/share/yangxuliu/CSSOSDataProductsSims/data_50sqDeg/"
# star_cat: "starcat_C9/"
# galaxy_cat: "qsocat/cat2CSSTSim_bundle-50sqDeg/"
# SED_templates_path:
# star_SED: "/public/share/yangxuliu/CSSOSDataProductsSims/data_50sqDeg/starcat_C9/"
# galaxy_SED: "/public/share/yangxuliu/CSSOSDataProductsSims/data_50sqDeg/sedlibs/"
# AGN_SED: "/public/share/yangxuliu/CSSOSDataProductsSims/data_50sqDeg/qsocat/qsosed/"
# # Only simulate stars?
# star_only: NO
# # Only simulate galaxies?
# galaxy_only: NO
# # rotate galaxy ellipticity
# rotateEll: 0. # [degree]
# # Whether to apply milky way extinction to galaxies
# enable_mw_ext_gal: YES
# planck_ebv_map: "/public/home/fangyuedong/project/ext_maps/planck/HFI_CompMap_ThermalDustModel_2048_R1.20.fits"
# ###############################################
# # Observation setting
# ###############################################
# obs_setting:
# # (Optional) a file of point list
# # if you just want to run default pointing:
# # - pointing_dir: null
# # - pointing_file: null
# pointing_file: "/public/share/yangxuliu/CSSOSDataProductsSims/data_50sqDeg/pointing50_C9/pointing_50_1_n.dat"
# obs_config_file: "/public/home/fangyuedong/project/csst_msc_sim/config/obs_config_SCI.yaml"
# # Run specific pointing(s):
# # - give a list of indexes of pointings: [ip_1, ip_2...]
# # - run all pointings: null
# # Note: only valid when a pointing list is specified
# run_pointings: [0, 1, 2, 3, 4]
# # Whether to enable astrometric modeling
# enable_astrometric_model: YES
# # Cut by saturation magnitude in which band?
# cut_in_band: "z"
# # saturation magnitude margin
# mag_sat_margin: -2.5
# # mag_sat_margin: -15.
# # limiting magnitude margin
# mag_lim_margin: +1.0
# ###############################################
# # PSF setting
# ###############################################
# psf_setting:
# # Which PSF model to use:
# # "Gauss": simple gaussian profile
# # "Interp": Interpolated PSF from sampled ray-tracing data
# psf_model: "Interp"
# # PSF size [arcseconds]
# # radius of 80% energy encircled
# # NOTE: only valid for "Gauss" PSF
# # psf_rcont: 0.15
# # path to PSF data
# # NOTE: only valid for "Interp" PSF
# # PSF models for photometry survey simulation
# psf_pho_dir: "/public/share/yangxuliu/CSSOSDataProductsSims/dataC6/psfCube1"
# # PSF models for slitless spectrum survey simulation
# psf_sls_dir: "/public/share/yangxuliu/CSSOSDataProductsSims/data_50sqDeg/SLS_PSF_PCA_fp/"
# ###############################################
# # Shear setting
# ###############################################
# shear_setting:
# # Options to generate mock shear field:
# # "constant": all galaxies are assigned a constant reduced shear
# # "catalog": get shear values from catalog
# shear_type: "constant"
# # For constant shear field
# reduced_g1: 0.
# reduced_g2: 0.
# ###############################################
# # Output options
# ###############################################
# output_setting:
# output_format: "channels" # Whether to export as 16 channels (subimages) with pre- and over-scan ("image"/"channels")
# shutter_output: NO # Whether to export shutter effect 16-bit image
# prnu_output: NO # Whether to export the PRNU (pixel-to-pixel flat-fielding) files
# ###############################################
# # Random seeds
# ###############################################
# random_seeds:
# seed_poisson: 20210601 # Seed for Poisson noise
# seed_CR: 20210317 # Seed for generating random cosmic ray maps
# seed_flat: 20210101 # Seed for generating random flat fields
# seed_prnu: 20210102 # Seed for photo-response non-uniformity
# seed_gainNonUniform: 20210202 # Seed for gain nonuniformity
# seed_biasNonUniform: 20210203 # Seed for bias nonuniformity
# seed_rnNonUniform: 20210204 # Seed for readout-noise nonuniformity
# seed_badcolumns: 20240309 # Seed for bad columns
# seed_defective: 20210304 # Seed for defective (bad) pixels
# seed_readout: 20210601 # Seed for read-out gaussian noise
# ...
# conda create -n csstsim_py311 python==3.11
###
# @Author: Zhang Xin zhangx@bao.ac.cn
# @Date: 2024-11-05 10:47:51
# @LastEditors: Zhang Xin zhangx@bao.ac.cn
# @LastEditTime: 2024-11-05 14:57:44
# @FilePath: /superSim_git/install.sh
# @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
###
conda config --add channels conda-forge
conda install numpy==1.26.4
conda install cython==3.0.6
conda install sep==1.2.1
conda install mpi4py==3.1.6
conda install -c conda-forge opencv
python -m pip install astro-sedpy
conda install matplotlib=3.8.0
conda install photutils=1.11.0
pip install -e .
FROM --platform=linux/amd64 ubuntu:20.04
LABEL maintainer="zhangx@bao.ac.cn"
RUN apt-get update
RUN apt-get install gcc -y
RUN apt-get install make -y
RUN apt install gfortran -y
RUN apt install vim -y
RUN gfortran --version
COPY . /LePhare/
WORKDIR /LePhare/lephare_dev/source/
RUN pwd
RUN make clean
RUN make
WORKDIR /LePhare
RUN mkdir tmpData
RUN export LEPHAREDIR=/LePhare/lephare_dev/
RUN export LEPHAREWORK=/LePhare/tmpData/
EXPOSE 8000
###################################################################
# --- INSTALL ---
###################################################################
#
### -1- PATHNAME for LEPHARE ###
#
# LEPHAREDIR -> where goes the zphot tar file
setenv LEPHAREDIR /your_path/lephare_dev
OR export LEPHAREDIR='/your_path/lephare_dev'
# LEPHAREWORK -> where will go all the intermediate stuffs you will create
setenv LEPHAREWORK /your_path/lepharework
OR export LEPHAREWORK='/your_path/lepharework'
#
#############################################################
#
### -2- Tar files ###
#
> cd your_path
> tar -zxvf lephare_main.tar.gz
--> it will place the files in /your_path/lephare_dev/*
( idem for additional SED tar files if you want them
> cd your_path
> tar -zxvf lephare_sed_gissel.tar.gz
> tar -zxvf lephare_sed_pegase2.tar.gz
> tar -zxvf lephare_sed_hyperz.tar.gz
--> it will place the files in /your_path/lephare_dev/*
)
#
#############################################################
#
### -3a- Compilation ###
#
> cd $LEPHAREDIR/source
> make -f Makefile (or make)
-> change Makefile options if needed
-> If you want to recompile the programs :
> make -f Makefile clean (or make clean)
> make -f Makefile
--> It will compile all the programs and
it will create the subdirectories needed
inside $LEPHAREWORK.
#
### -3b- Create required subdirectories in $LEPHAREWORK ###
it can be also done separately with :
> make work
-> creates the following directories :
$LEPHAREWORK/filt
$LEPHAREWORK/lib_bin
$LEPHAREWORK/lib_mag
#
#
### -4- --> It s ready
#
#
#
###################################################################
# --- COMMAND LINES ---
###################################################################
#
###################################################################
### ASCII SEDs LIST TO BE CONVERTED IN BINARY LIBRARY ###
###################################################################
#
# Binary Library for STARs
$LEPHAREDIR/source/sedtolib -c $LEPHAREDIR/config/zphot.para -t S
# Binary Library for QSO ns
$LEPHAREDIR/source/sedtolib -c $LEPHAREDIR/config/zphot.para -t Q
# Binary Library for GALAXIEs
$LEPHAREDIR/source/sedtolib -c $LEPHAREDIR/config/zphot.para -t G
#
#
###################################################################
### FILTER FILE CREATION ###
###################################################################
#
# create a unique file with all transmission curves to be used
$LEPHAREDIR/source/filter -c $LEPHAREDIR/config/zphot.para
#
###################################################################
### Additional stuff relative to filters :
---------------------------------------
#
# gives info about filters used
$LEPHAREDIR/source/filter_info -f filter_hdfn.dat
#
exemple: $LEPHAREDIR/source/filter_info -f filter_hdfn.dat
#
# plot the transmission curves with a kshell including Supermongo macro
$LEPHAREDIR/tools/filterplot full_pathname_for_FILTER_FILE
#
exemple: $LEPHAREDIR/tools/filterplot $LEPHAREWORK/filt/filter_hdfn.dat
#
# atmospheric and galactic extinction through the filters
$LEPHAREDIR/source/filter_extinc -f filter_hdfn.dat -e extinc_etc.dat -o exti_test.out
####################################################################
#
###################################################################
### THEORETICAL MAGNITUDES AND K-CORRECTION COMPUTATION ###
###################################################################
#
# mag for stars
$LEPHAREDIR/source/mag_star -c $LEPHAREDIR/config/zphot.para
# mag for GALs
$LEPHAREDIR/source/mag_gal -c $LEPHAREDIR/config/zphot.para -t G
# mag for QSOs
$LEPHAREDIR/source/mag_gal -c $LEPHAREDIR/config/zphot.para -t Q -EB_V 0.
###################################################################
### Additional stuff :
# -------------------
#
# z + mags + k-corr extracted in ASCII file if
# option : LIB_ASCII YES
#
# mag for GALs with fixed Zformation (if Z_FORM specified)
# $LEPHAREDIR/source/mag_zform -c $LEPHAREDIR/config/zphot.para
# -> OFF for the moment
###################################################################
#
###################################################################
#### ZPHOT COMPUTATION ###
###################################################################
#
# run the zphot code
$LEPHAREDIR/source/zphota -c $LEPHAREDIR/config/zphot.para
#
### Additional stuff relative to output spectra :
# --------------------------------------------
#
# look at the best SED-fitting if (SPEC_OUT=YES) inside SM environment
prompt> sm
sm> macro read "{$LEPHAREDIR}/tools/spec.sm" zsp Name [1-131] [0-1]
Name : file Name of the object to plot.
[1-131] : SED of the best Gal/GAL-FIR/GAL-STOCH/QSO/Star to plot
1 : GAL
2 : GAL-FIR
4 : GAL-BCSTOCH
8 : QSO
16: STAR
32: GAL + GAL-FIR
64: GAL-BCSTOCH + GAL-FIR
[1-131] Sum of any combinations of the above numbers
[0-1] : 0 plot on screen
1 plot in ps file
###################################################################
###################################################################
##############################################################################
# CREATION OF LIBRARIES FROM SEDs List #
# $LEPHAREDIR/source/sedtolib -t (S/Q/G) -c $LEPHAREDIR/config/zphot.para #
# help : $LEPHAREDIR/source/sedtolib -h (or -help) #
##############################################################################
#
#------ STELLAR LIBRARY (ASCII SEDs)
STAR_SED $LEPHAREDIR/sed/STAR/STAR_MOD.list # STAR list (full path)
STAR_FSCALE 3.432E-09 # Arbitrary Flux Scale
STAR_LIB LIB_STAR # Bin. STAR LIBRARY ->
# $LEPHAREWORK/lib_bin
#
#------ QSO LIBRARY (ASCII SEDs)
QSO_SED $LEPHAREDIR/sed/QSO/QSO_MOD.list # QSO list (full path)
QSO_FSCALE 1 # Arbitrary Flux Scale
QSO_LIB LIB_QSO # Bin. QSO LIBRARY ->
# $LEPHAREWORK/lib_bin
#
#------ GALAXY LIBRARY (ASCII or BINARY SEDs)
GAL_SED $LEPHAREDIR/sed/GAL/CWW_KINNEY/CWW_MOD.list # GAL list (full path)
GAL_FSCALE 1. # Arbitrary Flux Scale
GAL_LIB LIB_CWW # Bin. GAL LIBRARY ->
# $LEPHAREWORK/lib_bin
#SEL_AGE $LEPHAREDIR/sed/GAL/HYPERZ/AGE_GISSEL_ALL.dat # Age list(full path)
# (def=NONE)
AGE_RANGE 0.,13.e9 # Age Min-Max in yr
#
#############################################################################
# FILTERS #
# $LEPHAREDIR/source/filter -c $LEPHAREDIR/config/zphot.para #
# help: $LEPHAREDIR/source/filter -h (or -help) #
#############################################################################
# Filter number and context
# f300 f450 f606 f814 J H K
# 1 2 3 4 5 6 7
# 1 2 4 8 16 32 64 = 127
#
FILTER_LIST tmp/f300.pb,tmp/f450.pb,tmp/f606.pb,tmp/f814.pb,tmp/Jbb.pb,tmp/H.pb,tmp/K.pb
# (in $LEPHAREDIR/filt/*)
TRANS_TYPE 0 # TRANSMISSION TYPE
# 0[-def]: Energy, 1: Nb of photons
FILTER_CALIB 0 # 0[-def]: fnu=ctt
# 1 : nu.fnu=ctt
# 2 : fnu=nu
# 3 : fnu=Black Body @ T=10000K
# 4 : for MIPS (leff with nu fnu=ctt and flux with BB @ 10000K
FILTER_FILE HDF.filt # output name of filter's file ->
# $LEPHAREWORK/filt/
#
############################################################################
# THEORETICAL MAGNITUDES #
# $LEPHAREDIR/source/mag_star -c $LEPHAREDIR/config/zphot.para (star only)#
# help: $LEPHAREDIR/source/mag_star -h (or -help) #
# $LEPHAREDIR/source/mag_gal -t (Q or G) -c $LEPHAREDIR/config/zphot.para #
# (for gal. & QSO) #
# help: $LEPHAREDIR/source/mag_gal -h (or -help) #
############################################################################
#
#------- From STELLAR LIBRARY
STAR_LIB_IN LIB_STAR # Input STELLAR LIBRARY in $LEPHAREWORK/lib_bin/
STAR_LIB_OUT STAR_HDF # Output STELLAR MAGN -> $LEPHAREWORK/lib_mag/
#
#------- From QSO LIBRARY
QSO_LIB_IN LIB_QSO # Input QSO LIBRARY in $LEPHAREWORK/lib_bin/
QSO_LIB_OUT QSO_HDF # Output QSO MAGN -> $LEPHAREWORK/lib_mag/
#
#------- From GALAXY LIBRARY
GAL_LIB_IN LIB_CWW # Input GAL LIBRARY in $LEPHAREWORK/lib_bin/
GAL_LIB_OUT CWW_HDF # Output GAL LIBRARY -> $LEPHAREWORK/lib_mag/
#
#------- MAG + Z_STEP + EXTINCTION + COSMOLOGY
MAGTYPE AB # Magnitude type (AB or VEGA)
Z_STEP 0.04,6.,0.1 # dz, zmax, dzsup(if zmax>6)
COSMOLOGY 70,0.3,0.7 # H0,om0,lbd0 (if lb0>0->om0+lbd0=1)
MOD_EXTINC 0,0 # model range for extinction
EXTINC_LAW calzetti.dat # ext. law (in $LEPHAREDIR/ext/*)
EB_V 0.,0.05,0.1,0.2,0.3 # E(B-V) (<50 values)
EM_LINES NO
# Z_FORM 8,7,6,5,4,3 # Zformation for each SED in GAL_LIB_IN
#
#------- ASCII OUTPUT FILES OPTION
LIB_ASCII NO # Writes output in ASCII
# in working directory
#
############################################################################
# PHOTOMETRIC REDSHIFTS #
# $LEPHAREDIR/source/zphot -c $LEPHAREDIR/config/zphot.para #
# help: $LEPHAREDIR/source/zphot -h (or -help) #
############################################################################
#
#
#
#------- Input Catalog Informations
CAT_IN $LEPHAREDIR/test/hdfn_lanzetta.in # Input catalog (full path)
INP_TYPE F # Input type (F:Flux or M:MAG)
CAT_MAG AB # Input Magnitude (AB or VEGA)
CAT_FMT MEME # MEME: (Mag,Err)i
# MMEE: (Mag)i,(Err)i
CAT_LINES 1,100000 # MIN and MAX RANGE of ROWS used in input cat [def:-99,-99]
CAT_TYPE LONG # Input Format (LONG,SHORT-def)
CAT_OUT $LEPHAREDIR/test/zphot.out # Output catalog (full path)
PARA_OUT $LEPHAREDIR/config/zphot_output.para # Ouput parameter (full path)
#
BD_SCALE 0 # Bands used for scaling
# (Sum 2^n; n=0->nbd-1, 0[-def]:all bands)
GLB_CONTEXT -1 # Overwrite Context (Sum 2^n; n=0->nbd-1,
# 0 : all bands used,
# -1[-def]: used context per object
# FORB_CONTEXT -1 # context for forbitten bands
# ERR_SCALE 0.03,0.02,0.02,0.02,0.04,0.04,0.04 # errors per band added in quadrature
ERR_FACTOR 1.5 # error scaling factor 1.0 [-def]
#
#------- Theoretical libraries
ZPHOTLIB CWW_HDF,STAR_HDF,QSO_HDF # Library used for Chi2 (max:3)
ADD_EMLINES NO
#
######## PHOTOMETRIC REDSHIFTS OPTIONS ###########
# FIR LIBRARY
FIR_LIB NONE
FIR_LMIN 7.0 # Lambda Min (micron) for FIR analysis
FIR_CONT -1
FIR_SCALE -1
FIR_FREESCALE YES # ALLOW FOR FREE SCALING
FIR_SUBSTELLAR NO
# PHYSICAL LIBRARY with Stochastic models from BC07
PHYS_LIB NONE
PHYS_CONT -1
PHYS_SCALE -1
PHYS_NMAX 100000
#
#------- Priors
# MASS_SCALE 6.,16. # Lg(Scaling) min,max [0,0-def]
MAG_ABS -10.,-26. # Mabs_min , Mabs_max [0,0-def]
MAG_REF 4 # Reference number for band used by Mag_abs
# ZFORM_MIN 5,5,5,5,5,5,3,1 # Min. Zformation per SED -> Age constraint
Z_RANGE 0.,99.99 # Z min-max used for the Galaxy library
EBV_RANGE 0,9 # E(B-V) MIN-MAX RANGE of E(B-V) used
# NZ_PRIOR 4,2,4 # I Band for prior on N(z)
#
#------- Fixed Z (need format LONG for input Cat)
ZFIX NO # fixed z and search best model [YES,NO-def]
#
#------- Parabolic interpolation for Zbest
Z_INTERP YES # redshift interpolation [YES,NO-def]
#
#------- Analysis of normalized ML(exp-(0.5*Chi^2)) curve
#------- Secondary peak analysis
DZ_WIN 0.5 # Window search for 2nd peaks [0->5;0.25-def]
MIN_THRES 0.1 # Lower threshold for 2nd peaks[0->1; 0.1-def]
#
#------- Probability (in %) per redshift intervals
# PROB_INTZ 0,0.5,0.5,1.,1.,1.5 # even number
#
######### ABSOLUTE MAGNITUDES COMPUTATION ###########
#
MABS_METHOD 1 # 0[-def] : obs->Ref
# 1 : best obs->Ref
# 2 : fixed obs->Ref
# 3 : mag from best SED
# 4 : Zbin
MABS_CONTEXT -1 # CONTEXT for Band used for MABS
MABS_REF 4 # 0[-def]: filter obs chosen for Mabs :
# ONLY USED IF MABS_METHOD=2
MABS_FILT 1,2,3,4 # Chosen filters per redshift bin (MABS_ZBIN)
# ONLY USED IF MABS_METHOD=4
MABS_ZBIN 0,0.5,1,1.5,2,3,3.5,4 # Redshift bins (even number)
# ONLY USED IF MABS_METHOD=4
######### OUTPUT SPECTRA ###########
#
SPEC_OUT NO # spectrum for each object? [YES,NO-def]
CHI2_OUT NO # output file with all values : z,mod,chi2,E(B-V),...
# BE CAREFUL can take a lot of space !!
######### OUTPUT PDZ ANALYSIS
PDZ_OUT NONE # pdz output file name [def-NONE]
# add automatically PDZ_OUT[.pdz/.mabsx/.mod/.zph]
PDZ_MABS_FILT 2,10,14 # MABS for REF FILTERS to be extracted
#
######### FAST MODE : color-space reduction #####
#
FAST_MODE NO # Fast computation [NO-def]
COL_NUM 3 # Number of colors used [3-def]
COL_SIGMA 3 # Enlarge of the obs. color-errors[3-def]
COL_SEL AND # Combination between used colors [AND/OR-def]
#
######### MAGNITUDE SHIFTS applied to libraries ######
#
# APPLY_SYSSHIFT 0. # Apply systematic shifts in each band
# used only if number of shifts matches
# with number of filters in the library
#
######### ADAPTIVE METHOD using Z spectro sample ###
#
AUTO_ADAPT NO # Adapting method with spectro [NO-def]
ADAPT_BAND 4,2,4 # Reference band, band1, band2 for color
ADAPT_LIM 18,22.0 # Mag limits for spectro in Ref band [18,21.5-def]
ADAPT_POLY 1 # Number of coef in polynom (max=4) [1-def]
ADAPT_METH 1 # Fit as a function of
# 1 : Color Model [1-def]
# 2 : Redshift
# 3 : Models
ADAPT_CONTEXT -1 # Context for bands used for training
# -1[-def] used context per object
ADAPT_ZBIN 0.01,6 # Redshift's interval used for training
# [0.001,6-Def]
ADAPT_MODBIN 1,1000 # Model's interval used for training
# [1,1000-Def]
ERROR_ADAPT NO # [YES,NO-def]
# Add error in quadrature according to
# the difference between observed
# and predicted apparent magnitudes
#
IDENT
Z_BEST
Z_BEST68_LOW
Z_BEST68_HIGH
Z_ML
#Z_ML68_LOW
#Z_ML68_HIGH
#Z_BEST90_LOW
#Z_BEST90_HIGH
#Z_BEST99_LOW
#Z_BEST99_HIGH
CHI_BEST
MOD_BEST
EXTLAW_BEST
EBV_BEST
#ZF_BEST
#MAG_ABS_BEST
PDZ_BEST
SCALE_BEST
DIST_MOD_BEST
NBAND_USED
#NBAND_ULIM
#
####### Z-2nd GALAXY ###########
Z_SEC
CHI_SEC
MOD_SEC
#AGE_SEC
#EBV_SEC
#ZF_SEC
#MAG_ABS_SEC
#PDZ_SEC
#SCALE_SEC
#
######## Z-Best QSO #############
Z_QSO
CHI_QSO
MOD_QSO
#MAG_ABS_QSO
#DIST_MOD_QSO
######## Best STAR #############
MOD_STAR
CHI_STAR
#
######## OBSERVED MAGNITUDES ####
#MAG_OBS()
#ERR_MAG_OBS()
######## MODEL MAGNITUDES FOR GALAXY ####
#MAG_MOD()
#
######## K-COR , ABSOLUTE MAG, FILTER CHOICE FOR GALAXY ##########
#K_COR()
#MAG_ABS()
#MABS_FILT()
#
######## K-COR , ABSOLUTE MAG. FOR QSO ##########
#K_COR_QSO()
#MAG_ABS_QSO()
#
####### PROBABILITY PER Z BINS ##
#PDZ()
#
####### INPUT INFO ##############
CONTEXT
ZSPEC
#STRING_INPUT
####### Far-IR PARAMETERS derived from FIR_LIB library ###########
#LUM_TIR_BEST
#LIB_FIR
#MOD_FIR
#CHI2_FIR
#FSCALE_FIR
#NBAND_FIR
#LUM_TIR_MED
#LUM_TIR_INF
#LUM_TIR_SUP
#MAG_MOD_FIR()
#MAG_ABS_FIR()
#K_COR_FIR()
######### PHYSICAL PARAMETERS derived from ZPHOTLIB library IF DEFINED ######
#AGE_BEST
#AGE_INF
#AGE_MED
#AGE_SUP
##
#LDUST_BEST
#LDUST_INF
#LDUST_MED
#LDUST_SUP
##
#MASS_BEST
#MASS_INF
#MASS_MED
#MASS_SUP
#
#SFR_BEST
#SFR_INF
#SFR_MED
#SFR_SUP
#
#SSFR_BEST
#SSFR_INF
#SSFR_MED
#SSFR_SUP
#
#LUM_NUV_BEST
#LUM_R_BEST
#LUM_K_BEST
######### PHYSICAL PARAMETERS derived from PHYS_LIB library
# best Chi^2 or median+/-68% of the ML distribution
# 1: Lg(Age[yr]) [1]
# 2: Lg(Lnuv[Lo]) [23] 3: Lg(Lr[Lo]) [24]
# 4: Lg(Lk[Lo]) [25]
# 5: Lg(Ldust[Lo]) [5] 6: Lg(Mass[Mo]) [6]
# 7: Lg(SFR_1e8[Mo/yr]) [8] 8: Lg(SFR_1e9[Mo/yr]) [9]
# 9: Gamma[Gyr] [10] 10: Metallicity [11]
# 11: Tauv [12] 12: mu [13]
# 13: Lg(Age_weightmass[yr])[14] 14: Lg(Age_weightLr[yr]) [15]
# 15: Lg(Age_Tlastburst[yr])[16]
# 16: Frac_burst<1.e8[yr] [17] 17: Frac_burst<1e9[yr] [18]
# 18: Nb burst [21]
# 19: Lg(SSFR_1e8 [yr-1]) [42] 20: Lg(SSFR_1e9 [yr-1]) [43]
# 21: A(1500) [mag] [26] 22: A(2300) [mag] [27]
# 23: A(4500) [mag] [29] 24: A(6000) [mag] [30]
# 25: A(8500) [mag] [31] 26: A(22000)[mag] [32]
# 27: A(3500) [mag] [28]
# 28: D4000 [34] 29: Lg(Ldust_LC00) [39]
# 30: F_mu[Ld(ISM)/Ld_LC00] [40] 31: eta[Ld(>4000)/Ld)] [41]
# 32: Rec_Mass[(Mt-M*)/Mt] [7]
#####################################################
#PHYS_CHI2_BEST
#PHYS_MOD_BEST
#PHYS_MAG_MOD()
#PHYS_MAG_ABS()
#PHYS_K_COR()
#PHYS_PARA1_BEST
#PHYS_PARA2_BEST
#PHYS_PARA3_BEST
#PHYS_PARA4_BEST
#PHYS_PARA5_BEST
#PHYS_PARA6_BEST
#PHYS_PARA7_BEST
#PHYS_PARA8_BEST
#PHYS_PARA9_BEST
#PHYS_PARA10_BEST
#PHYS_PARA11_BEST
#PHYS_PARA12_BEST
#PHYS_PARA13_BEST
#PHYS_PARA14_BEST
#PHYS_PARA15_BEST
#PHYS_PARA16_BEST
#PHYS_PARA17_BEST
#PHYS_PARA18_BEST
#PHYS_PARA19_BEST
#PHYS_PARA20_BEST
#PHYS_PARA21_BEST
#PHYS_PARA22_BEST
#PHYS_PARA23_BEST
#PHYS_PARA24_BEST
#PHYS_PARA25_BEST
#PHYS_PARA26_BEST
#PHYS_PARA27_BEST
# based on ML analysis with MEDIAN,68p_INF,68p_SUP values
#PHYS_PARA1_MED
#PHYS_PARA2_MED
#PHYS_PARA3_MED
#PHYS_PARA4_MED
#PHYS_PARA5_MED
#PHYS_PARA6_MED
#PHYS_PARA7_MED
#PHYS_PARA8_MED
#PHYS_PARA9_MED
#PHYS_PARA10_MED
#PHYS_PARA11_MED
#PHYS_PARA12_MED
#PHYS_PARA13_MED
#PHYS_PARA14_MED
#PHYS_PARA15_MED
#PHYS_PARA16_MED
#PHYS_PARA17_MED
#PHYS_PARA18_MED
#PHYS_PARA19_MED
#PHYS_PARA20_MED
#PHYS_PARA21_MED
#PHYS_PARA22_MED
#PHYS_PARA23_MED
#PHYS_PARA24_MED
#PHYS_PARA25_MED
#PHYS_PARA26_MED
#PHYS_PARA27_MED
#PHYS_PARA1_INF
#PHYS_PARA2_INF
#PHYS_PARA3_INF
#PHYS_PARA4_INF
#PHYS_PARA5_INF
#PHYS_PARA6_INF
#PHYS_PARA7_INF
#PHYS_PARA8_INF
#PHYS_PARA9_INF
#PHYS_PARA10_INF
#PHYS_PARA11_INF
#PHYS_PARA12_INF
#PHYS_PARA13_INF
#PHYS_PARA14_INF
#PHYS_PARA15_INF
#PHYS_PARA16_INF
#PHYS_PARA17_INF
#PHYS_PARA18_INF
#PHYS_PARA19_INF
#PHYS_PARA20_INF
#PHYS_PARA21_INF
#PHYS_PARA22_INF
#PHYS_PARA23_INF
#PHYS_PARA24_INF
#PHYS_PARA25_INF
#PHYS_PARA26_INF
#PHYS_PARA27_INF
#PHYS_PARA1_SUP
#PHYS_PARA2_SUP
#PHYS_PARA3_SUP
#PHYS_PARA4_SUP
#PHYS_PARA5_SUP
#PHYS_PARA6_SUP
#PHYS_PARA7_SUP
#PHYS_PARA8_SUP
#PHYS_PARA9_SUP
#PHYS_PARA10_SUP
#PHYS_PARA11_SUP
#PHYS_PARA12_SUP
#PHYS_PARA13_SUP
#PHYS_PARA14_SUP
#PHYS_PARA15_SUP
#PHYS_PARA16_SUP
#PHYS_PARA17_SUP
#PHYS_PARA18_SUP
#PHYS_PARA19_SUP
#PHYS_PARA20_SUP
#PHYS_PARA21_SUP
#PHYS_PARA22_SUP
#PHYS_PARA23_SUP
#PHYS_PARA24_SUP
#PHYS_PARA25_SUP
#PHYS_PARA26_SUP
#PHYS_PARA27_SUP
IDENT
Z_BEST
Z_BEST68_LOW
Z_BEST68_HIGH
Z_ML
#Z_ML68_LOW
#Z_ML68_HIGH
#Z_BEST90_LOW
#Z_BEST90_HIGH
#Z_BEST99_LOW
#Z_BEST99_HIGH
CHI_BEST
MOD_BEST
EXTLAW_BEST
EBV_BEST
#ZF_BEST
#MAG_ABS_BEST
PDZ_BEST
SCALE_BEST
DIST_MOD_BEST
NBAND_USED
#NBAND_ULIM
#
####### Z-2nd GALAXY ###########
Z_SEC
CHI_SEC
MOD_SEC
#AGE_SEC
#EBV_SEC
#ZF_SEC
#MAG_ABS_SEC
#PDZ_SEC
#SCALE_SEC
#
######## Z-Best QSO #############
Z_QSO
CHI_QSO
MOD_QSO
#MAG_ABS_QSO
#DIST_MOD_QSO
######## Best STAR #############
MOD_STAR
CHI_STAR
#
######## OBSERVED MAGNITUDES ####
#MAG_OBS()
#ERR_MAG_OBS()
######## MODEL MAGNITUDES FOR GALAXY ####
#MAG_MOD()
#
######## K-COR , ABSOLUTE MAG, FILTER CHOICE FOR GALAXY ##########
#K_COR()
#MAG_ABS()
#MABS_FILT()
#
######## K-COR , ABSOLUTE MAG. FOR QSO ##########
#K_COR_QSO()
#MAG_ABS_QSO()
#
####### PROBABILITY PER Z BINS ##
#PDZ()
#
####### INPUT INFO ##############
CONTEXT
ZSPEC
#STRING_INPUT
####### Far-IR PARAMETERS derived from FIR_LIB library ###########
#LUM_TIR_BEST
#LIB_FIR
#MOD_FIR
#CHI2_FIR
#FSCALE_FIR
#NBAND_FIR
#LUM_TIR_MED
#LUM_TIR_INF
#LUM_TIR_SUP
#MAG_MOD_FIR()
#MAG_ABS_FIR()
#K_COR_FIR()
######### PHYSICAL PARAMETERS derived from ZPHOTLIB library IF DEFINED ######
#AGE_BEST
#AGE_INF
#AGE_MED
#AGE_SUP
##
#LDUST_BEST
#LDUST_INF
#LDUST_MED
#LDUST_SUP
##
#MASS_BEST
#MASS_INF
#MASS_MED
#MASS_SUP
#
#SFR_BEST
#SFR_INF
#SFR_MED
#SFR_SUP
#
#SSFR_BEST
#SSFR_INF
#SSFR_MED
#SSFR_SUP
#
#LUM_NUV_BEST
#LUM_R_BEST
#LUM_K_BEST
######### PHYSICAL PARAMETERS derived from PHYS_LIB library
# best Chi^2 or median+/-68% of the ML distribution
# 1: Lg(Age[yr])
# 2: Lg(Luv[Lo]) 3: Lg(Lr[Lo]) 4: Lg(Lk[Lo])
# 5: Lg(Ldust [Lo])
# 6: Lg(Mass[Mo]) 7: Lg(SFR_1e8[Mo/yr]) 8: Lg(SFR_1e9[Mo/yr])
# 9: Lg(Gamma[Gyr]) 10: Metallicity
# 11: Tauv 12: mu
# 13: Lg(Age_weightRlight[yr]) 14: Lg(Age_weightMass[yr])
# 15: Lg(Age_tlastburst[yr])
# 16: Log(Frac_burst_1.e8[yr]) 17: Lg(Frac_burst_1e9[yr]) 18: Nb burst
# 19: Lg(SSFR_1e8 [yr-1]) 20: Lg(SSFR_1e9 [yr-1])
# 21: A(1500) [mag] 22: A(2300) [mag] 23: A(4500) [mag]
# 24: A(6000) [mag] 25: A(8500) [mag] 26: A(22000)[mag]
# 27: Lg(Ldust_hot[Lo])
#PHYS_CHI2_BEST
#PHYS_MOD_BEST
#PHYS_MAG_MOD()
#PHYS_MAG_ABS()
#PHYS_K_COR()
#PHYS_PARA1_BEST
#PHYS_PARA2_BEST
#PHYS_PARA3_BEST
#PHYS_PARA4_BEST
#PHYS_PARA5_BEST
#PHYS_PARA6_BEST
#PHYS_PARA7_BEST
#PHYS_PARA8_BEST
#PHYS_PARA9_BEST
#PHYS_PARA10_BEST
#PHYS_PARA11_BEST
#PHYS_PARA12_BEST
#PHYS_PARA13_BEST
#PHYS_PARA14_BEST
#PHYS_PARA15_BEST
#PHYS_PARA16_BEST
#PHYS_PARA17_BEST
#PHYS_PARA18_BEST
#PHYS_PARA19_BEST
#PHYS_PARA20_BEST
#PHYS_PARA21_BEST
#PHYS_PARA22_BEST
#PHYS_PARA23_BEST
#PHYS_PARA24_BEST
#PHYS_PARA25_BEST
#PHYS_PARA26_BEST
#PHYS_PARA27_BEST
# based on ML analysis with MEDIAN,68p_INF,68p_SUP values
#PHYS_PARA1_MED
#PHYS_PARA2_MED
#PHYS_PARA3_MED
#PHYS_PARA4_MED
#PHYS_PARA5_MED
#PHYS_PARA6_MED
#PHYS_PARA7_MED
#PHYS_PARA8_MED
#PHYS_PARA9_MED
#PHYS_PARA10_MED
#PHYS_PARA11_MED
#PHYS_PARA12_MED
#PHYS_PARA13_MED
#PHYS_PARA14_MED
#PHYS_PARA15_MED
#PHYS_PARA16_MED
#PHYS_PARA17_MED
#PHYS_PARA18_MED
#PHYS_PARA19_MED
#PHYS_PARA20_MED
#PHYS_PARA21_MED
#PHYS_PARA22_MED
#PHYS_PARA23_MED
#PHYS_PARA24_MED
#PHYS_PARA25_MED
#PHYS_PARA26_MED
#PHYS_PARA27_MED
#PHYS_PARA1_INF
#PHYS_PARA2_INF
#PHYS_PARA3_INF
#PHYS_PARA4_INF
#PHYS_PARA5_INF
#PHYS_PARA6_INF
#PHYS_PARA7_INF
#PHYS_PARA8_INF
#PHYS_PARA9_INF
#PHYS_PARA10_INF
#PHYS_PARA11_INF
#PHYS_PARA12_INF
#PHYS_PARA13_INF
#PHYS_PARA14_INF
#PHYS_PARA15_INF
#PHYS_PARA16_INF
#PHYS_PARA17_INF
#PHYS_PARA18_INF
#PHYS_PARA19_INF
#PHYS_PARA20_INF
#PHYS_PARA21_INF
#PHYS_PARA22_INF
#PHYS_PARA23_INF
#PHYS_PARA24_INF
#PHYS_PARA25_INF
#PHYS_PARA26_INF
#PHYS_PARA27_INF
#PHYS_PARA1_SUP
#PHYS_PARA2_SUP
#PHYS_PARA3_SUP
#PHYS_PARA4_SUP
#PHYS_PARA5_SUP
#PHYS_PARA6_SUP
#PHYS_PARA7_SUP
#PHYS_PARA8_SUP
#PHYS_PARA9_SUP
#PHYS_PARA10_SUP
#PHYS_PARA11_SUP
#PHYS_PARA12_SUP
#PHYS_PARA13_SUP
#PHYS_PARA14_SUP
#PHYS_PARA15_SUP
#PHYS_PARA16_SUP
#PHYS_PARA17_SUP
#PHYS_PARA18_SUP
#PHYS_PARA19_SUP
#PHYS_PARA20_SUP
#PHYS_PARA21_SUP
#PHYS_PARA22_SUP
#PHYS_PARA23_SUP
#PHYS_PARA24_SUP
#PHYS_PARA25_SUP
#PHYS_PARA26_SUP
#PHYS_PARA27_SUP
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment