diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-02-12 19:16:22 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-02-12 19:16:22 +0800 |
commit | 62a69c7f0df94e5b013ee5883d85c16ca39ece85 (patch) | |
tree | f492cf8b8b4a496f8f7d17762033a0b9a25937de | |
parent | a4f1e4eaaae5ea3ce2531b72b04f2fc30f96e3a0 (diff) | |
download | cexcess-62a69c7f0df94e5b013ee5883d85c16ca39ece85.tar.bz2 |
Add copyright and MIT license disclaimer
37 files changed, 110 insertions, 93 deletions
diff --git a/astro_params.py b/astro_params.py index 37b6282..94227b1 100644 --- a/astro_params.py +++ b/astro_params.py @@ -1,8 +1,7 @@ -# -*- mode: python -*- +# Copyright (c) 2016 Aaron LI +# MIT license # -# Aaron LI # Created: 2016-06-24 -# Updated: 2016-06-24 # # Change logs: # 2016-06-24: diff --git a/calc_coolfunc.py b/calc_coolfunc.py index f589621..00e55d0 100755 --- a/calc_coolfunc.py +++ b/calc_coolfunc.py @@ -1,10 +1,11 @@ #!/usr/bin/env python3 # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Based on 'coolfunc_calc.sh' from 'chandra-acis-analysis/mass_profile'. # -# Aaron LI # Created: 2016-06-19 -# Updated: 2017-02-09 # # Change logs: # 2017-02-09: diff --git a/calc_mass.py b/calc_mass.py index d283c7e..ba92879 100755 --- a/calc_mass.py +++ b/calc_mass.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-06-24 -# Updated: 2016-07-13 # # Change logs: # 2016-07-13: diff --git a/calc_overdensity.py b/calc_overdensity.py index 501f5dd..05db07a 100755 --- a/calc_overdensity.py +++ b/calc_overdensity.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-06-30 -# Updated: 2016-07-13 # # Change logs: # 2016-07-13: diff --git a/calc_pei.py b/calc_pei.py index bb5879d..58aa00e 100755 --- a/calc_pei.py +++ b/calc_pei.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-04-29 -# Updated: 2016-06-25 # # Change log: # 2016-06-25: diff --git a/calc_potential.py b/calc_potential.py index f2e3b66..efb7d50 100755 --- a/calc_potential.py +++ b/calc_potential.py @@ -1,10 +1,9 @@ #!/usr/bin/env python3 # -# Aaron LI -# Created: 2016-07-13 -# Updated: 2016-07-13 +# Copyright (c) 2016 Aaron LI +# MIT license # -# Change logs: +# Created: 2016-07-13 # """ diff --git a/calc_radial_psd.py b/calc_radial_psd.py index 8f59a13..f941839 100755 --- a/calc_radial_psd.py +++ b/calc_radial_psd.py @@ -1,5 +1,7 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# +# Copyright (c) 2016 Aaron LI +# MIT license # # Credit: # [1] Radially averaged power spectrum of 2D real-valued matrix @@ -11,11 +13,9 @@ # * If the input image is NOT SQUARE; then are the horizontal frequencies # the same as the vertical frequencies ?? # -# Aaron LI <aaronly.me@gmail.com> # Created: 2015-04-22 -# Updated: 2016-05-09 # -# Change log: +# Change logs: # 2016-05-09: # * PEP8 fixes # 2016-05-01: diff --git a/calc_sbp_excess.py b/calc_sbp_excess.py index 2f376d4..169a08c 100755 --- a/calc_sbp_excess.py +++ b/calc_sbp_excess.py @@ -1,9 +1,9 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-04-26 -# Updated: 2016-05-18 # # Change log: # 2016-05-18: diff --git a/ciao_calc_bkg.py b/ciao_calc_bkg.py index f37e9e7..e1eb818 100755 --- a/ciao_calc_bkg.py +++ b/ciao_calc_bkg.py @@ -1,5 +1,8 @@ #!/usr/bin/env python3 # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Calculate the *background surface brightness (SB)* level from the # *corrected background spectrum*. # The calculated background SB value is used to provide constraint for @@ -7,9 +10,7 @@ # subtract the background contribution before carrying out the SBP # deprojection. # -# Aaron LI # Created: 2016-06-10 -# Updated: 2016-06-10 # import argparse diff --git a/ciao_calc_csb.py b/ciao_calc_csb.py index 13149ad..2be2f0b 100755 --- a/ciao_calc_csb.py +++ b/ciao_calc_csb.py @@ -1,5 +1,8 @@ #!/usr/bin/env python3 # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Calculate the surface brightness concentration (i.e., C_{SB}), which # is an index/indicator of the cool core, and may be defined as: # (1) brightness(<=40kpc) / brightness(<=400kpc) @@ -8,9 +11,7 @@ # References: # [1] Santos, J. S., Rosati, P., Tozi, P., et al. 2008, A&A, 483, 35 # -# Aaron LI # Created: 2016-04-28 -# Updated: 2016-06-07 # # Change log: # 2016-06-07: diff --git a/ciao_expcorr.sh b/ciao_expcorr.sh index 4d6140c..e523099 100755 --- a/ciao_expcorr.sh +++ b/ciao_expcorr.sh @@ -1,14 +1,15 @@ #!/bin/sh # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Generate the exposure map and apply exposure correction # using CIAO `fluximage`. # # NOTE: # The existing "instmap_weights.txt" is ued for exposure map generation. # -# Aaron LI # Created: 2016-04-28 -# Updated: 2016-04-28 # case "$1" in @@ -52,4 +53,3 @@ ln -svf ${ROOTNAME}*band*thresh.img img_${ROOTNAME}_thresh.fits ln -svf ${ROOTNAME}*band*thresh.expmap expmap_${ROOTNAME}.fits # exposure-corrected image ln -svf ${ROOTNAME}*band*flux.img img_expcorr_${ROOTNAME}.fits - diff --git a/ciao_extract_sbp.py b/ciao_extract_sbp.py index 39e193f..9db751d 100755 --- a/ciao_extract_sbp.py +++ b/ciao_extract_sbp.py @@ -1,5 +1,8 @@ #!/usr/bin/env python3 # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Extract surface brightness profile, with optional background # subtraction and region exclusion. # @@ -25,9 +28,7 @@ # process that intersect with the CCD boundaries (extracted from the # `skyfov.fits`). # -# Aaron LI # Created: 2016-05-17 -# Updated: 2016-06-07 # # Change log: # 2016-06-07: diff --git a/ciao_img_rotcrop.sh b/ciao_img_rotcrop.sh index 6259d3a..ba009d7 100755 --- a/ciao_img_rotcrop.sh +++ b/ciao_img_rotcrop.sh @@ -1,5 +1,8 @@ #!/bin/sh # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Rotate the FITS image to be upright using 'dmregrid2', # and crop the blank edges from the rotated image # according to the CCDs sizes. @@ -21,7 +24,6 @@ # keywords/attributes in the FITS header. # # -# Aaron LI # Created: 2015-08-23 # Updated: 2016-04-11 # @@ -102,4 +104,3 @@ echo "using 'dmregrid2', the filled regions are *EXCLUDED* in the rotated" echo "image!" echo "*** CHECK THE RESULTS BEFORE PROCEDDING ***" echo "===================================================================" - diff --git a/collect_results.sh b/collect_results.sh index d62d291..27bde82 100755 --- a/collect_results.sh +++ b/collect_results.sh @@ -1,8 +1,10 @@ #!/bin/sh # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Collect the fitting results and orgnize in CSV format. # -# Aaron LI # Created: 2016-03-29 # @@ -82,4 +84,3 @@ cat $1 | while read sbpfit_dir; do printf ",,,,,,,,,,,,,,,,,,,,,,\n" fi done - diff --git a/deproject_sbp.py b/deproject_sbp.py index a7dcc82..5254f7a 100755 --- a/deproject_sbp.py +++ b/deproject_sbp.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-06-10 -# Updated: 2016-07-17 # # Change logs: # 2016-07-17: diff --git a/ds9_image.sh b/ds9_image.sh index 76a03d5..a65db22 100755 --- a/ds9_image.sh +++ b/ds9_image.sh @@ -1,10 +1,12 @@ #!/bin/sh # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Use DS9 to visualize the ACIS image, with useful/handy # arguments/options passed. # Also touch the output image filename for easier save. # -# Aaron LI # Created: 2016-04-16 # Updated: 2016-05-08 # diff --git a/extract_csb.py b/extract_csb.py index c62048e..89464af 100755 --- a/extract_csb.py +++ b/extract_csb.py @@ -1,14 +1,14 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# +# Copyright (c) 2016 Aaron LI +# MIT license # # Extract the surface brightness concentration (i.e., C_{SB}) results. # -# Aaron LI # Created: 2016-04-29 # import sys -import os import json import csv import argparse @@ -54,4 +54,3 @@ def main(): if __name__ == "__main__": main() - diff --git a/extract_info.py b/extract_info.py index 52bc78b..40ff85e 100755 --- a/extract_info.py +++ b/extract_info.py @@ -1,15 +1,15 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# +# Copyright (c) 2016 Aaron LI +# MIT license # # Extract R500 from the '*_INFO.json' file, and center coordinate from # existing "sbprofile.reg", and then make the circle regions w.r.t R500 # in order to visualize the FoV coverage of the observations. # -# Aaron LI # Created: 2016-04-22 -# Updated: 2016-04-27 # -# Changelog: +# Change log: # 2016-04-27: # * Do not import the unused "re" module # @@ -164,4 +164,3 @@ def main(): if __name__ == "__main__": main() - diff --git a/extract_pei.py b/extract_pei.py index 5efcc0b..9b82be6 100755 --- a/extract_pei.py +++ b/extract_pei.py @@ -1,14 +1,14 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# +# Copyright (c) 2016 Aaron LI +# MIT license # # Extract the power excess index (PEI) results. # -# Aaron LI # Created: 2016-04-29 # import sys -import os import json import csv import argparse @@ -50,4 +50,3 @@ def main(): if __name__ == "__main__": main() - diff --git a/extract_sbpfit.py b/extract_sbpfit.py index 1305a0d..04bdf5f 100755 --- a/extract_sbpfit.py +++ b/extract_sbpfit.py @@ -1,9 +1,10 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# +# Copyright (c) 2016 Aaron LI +# MIT license # # Extract the sbpfit results, and output in CSV format. # -# Aaron LI # Created: 2016-04-27 # @@ -89,4 +90,3 @@ def main(): if __name__ == "__main__": main() - @@ -1,9 +1,9 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-03-13 -# Updated: 2016-07-12 # # Change logs: # 2016-07-12: diff --git a/fit_tprofile.py b/fit_tprofile.py index 73d7f21..67395f2 100755 --- a/fit_tprofile.py +++ b/fit_tprofile.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-07-04 -# Updated: 2016-07-13 # # Change logs: # 2016-07-13: diff --git a/fitting_models.py b/fitting_models.py index 44b679a..d0312f3 100644 --- a/fitting_models.py +++ b/fitting_models.py @@ -1,8 +1,7 @@ -# -*- mode: python; coding: utf-8 -*- +# Copyright (c) 2016 Aaron LI +# MIT license # -# Weitan LI # Created: 2016-06-26 -# Updated: 2016-07-04 # # Change logs: # 2016-07-04: @@ -1,7 +1,7 @@ +# Copyright (c) 2016 Aaron LI +# MIT license # -# Aaron LI # Created: 2016-05-04 -# Updated: 2016-07-12 # # Change logs: # 2016-07-12: diff --git a/json2csv.py b/json2csv.py index 719319e..5c25ecb 100755 --- a/json2csv.py +++ b/json2csv.py @@ -1,8 +1,10 @@ #!/usr/bin/env python3 # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Read results in JSON format and output as CSV format. # -# Aaron LI # Created: 2016-04-27 # Updated: 2016-05-06 # diff --git a/make_coolfunc_config.py b/make_coolfunc_config.py index 945a044..32c2a05 100755 --- a/make_coolfunc_config.py +++ b/make_coolfunc_config.py @@ -1,10 +1,11 @@ #!/usr/bin/env python3 # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Make the configuration file for `calc_coolfunc.py` # -# Aaron LI # Created: 2016-07-12 -# Updated: 2016-07-12 # import glob diff --git a/make_overdensity_config.py b/make_overdensity_config.py index 7ff0a2f..aeca9c1 100755 --- a/make_overdensity_config.py +++ b/make_overdensity_config.py @@ -1,10 +1,11 @@ #!/usr/bin/env python3 # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Make the configuration file for `calc_overdensity.py` # -# Aaron LI # Created: 2016-07-13 -# Updated: 2016-07-13 # import glob diff --git a/make_r500_regions.py b/make_r500_regions.py index db0d006..3d8791e 100755 --- a/make_r500_regions.py +++ b/make_r500_regions.py @@ -1,15 +1,15 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# +# Copyright (c) 2016 Aaron LI +# MIT license # # Extract R500 from the '*_INFO.json' file, and center coordinate from # existing "sbprofile.reg", and then make the circle regions w.r.t R500 # in order to visualize the FoV coverage of the observations. # -# Aaron LI # Created: 2016-04-15 -# Updated: 2016-05-04 # -# Changelog: +# Change log: # 2016-05-04: # * Split `get_r500()` function to a separate module `info` # * Fix a wrong variable diff --git a/make_sbpdeproj_config.py b/make_sbpdeproj_config.py index ab4844f..d7cfbf7 100755 --- a/make_sbpdeproj_config.py +++ b/make_sbpdeproj_config.py @@ -1,10 +1,11 @@ #!/usr/bin/env python3 # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Make the configuration file for `deproject_sbp.py` # -# Aaron LI # Created: 2016-07-13 -# Updated: 2016-07-13 # import glob diff --git a/make_sbpfit_config.py b/make_sbpfit_config.py index f0409c9..c662b1b 100755 --- a/make_sbpfit_config.py +++ b/make_sbpfit_config.py @@ -1,12 +1,12 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# +# Copyright (c) 2016 Aaron LI +# MIT license # # Make the configuration file for the `sbp_fit.py`. # The name, obsid, r500 information is extracted from the '*_INFO.json' file. # -# Aaron LI # Created: 2016-04-21 -# Updated: 2016-07-12 # # Change logs: # 2016-07-12: diff --git a/make_stowbkg_image.sh b/make_stowbkg_image.sh index 4cd74b7..40dc01b 100755 --- a/make_stowbkg_image.sh +++ b/make_stowbkg_image.sh @@ -1,12 +1,13 @@ #!/bin/sh # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Make the corresponding stowed bacground image for the observation. # # Based on `ciao_blanksky.sh' (v5.0; 2015-06-02) # -# Aaron LI # Created: 2016-04-20 -# Updated: 2016-04-28 # # Changelog: # 2016-04-28: diff --git a/make_tprofile_config.py b/make_tprofile_config.py index 253a976..fc96ea9 100755 --- a/make_tprofile_config.py +++ b/make_tprofile_config.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-07-11 -# Updated: 2016-07-11 # """ diff --git a/montage_images.py b/montage_images.py index 95cf390..9cd35dd 100755 --- a/montage_images.py +++ b/montage_images.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-05-08 -# Updated: 2016-05-08 # """ diff --git a/prepare_sbpfit_dir.sh b/prepare_sbpfit_dir.sh index 5c5e5b3..187e748 100755 --- a/prepare_sbpfit_dir.sh +++ b/prepare_sbpfit_dir.sh @@ -1,11 +1,12 @@ #!/bin/sh # +# Copyright (c) 2016 Aaron LI +# MIT license +# # Create the new `sbpfit' subdirectory, and prepare the files for fitting # the surface brightness profile. # -# Aaron LI # Created: 2016-03-28 -# Updated: 2016-04-26 # # Changelog: # 2016-04-26: @@ -39,4 +40,3 @@ while [ ! -z "$1" ]; do ln -sv ${img_dir}/evt2_c*_clean.fits . ln -sv ${img_dir}/*_img_*_fill.png . done - diff --git a/projection.py b/projection.py index 2827cba..8925844 100755 --- a/projection.py +++ b/projection.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-06-10 # Updated: 2016-06-24 # diff --git a/read_table_colspec.py b/read_table_colspec.py index 662ff91..6c85bd7 100755 --- a/read_table_colspec.py +++ b/read_table_colspec.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 # -# Aaron LI +# Copyright (c) 2016 Aaron LI +# MIT license +# # Created: 2016-06-25 -# Updated: 2016-06-26 # # Change logs: # 2016-06-26: @@ -1,8 +1,7 @@ -# -*- mode: python -*- +# Copyright (c) 2016 Aaron LI +# MIT license # -# Aaron LI # Created: 2016-07-10 -# Updated: 2016-07-14 # # Change logs: # 2016-07-14: |