ACID-code-v2 0.2.2a5__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/PKG-INFO +1 -1
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/installation.rst +6 -6
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/tutorial_code.py +10 -8
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2.egg-info/PKG-INFO +1 -1
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/tests.py +11 -4
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/tutorial_test.py +18 -8
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.gitattributes +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.github/workflows/publish.yml +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.gitignore +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.other_scripts/5_residual_profiles.py +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.other_scripts/8_master_out_profiles.py +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.readthedocs.yaml +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.vscode/launch.json +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/LICENSE +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/README.md +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/acid.yml +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/ACID.rst +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/conf.py +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/index.rst +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/make.bat +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/requirements.txt +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/using_ACID.rst +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/.make_syn_dat.py +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/example_linelist.txt +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/sample_spec_1.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/sample_spec_2.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/sample_spec_3.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/pyproject.toml +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/setup.cfg +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2/ACID.py +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2/LSD.py +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2/__init__.py +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2/utils.py +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2.egg-info/SOURCES.txt +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2.egg-info/dependency_links.txt +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2.egg-info/requires.txt +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2.egg-info/top_level.txt +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/.DS_Store +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_blaze_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_flat_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_flat_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_lamp_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_lamp_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_order_profile.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_bis_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_bis_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_bis_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_ccf_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_ccf_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_ccf_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_e2ds_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_e2ds_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_s1d_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_s1d_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_bis_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_bis_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_bis_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_ccf_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_ccf_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_ccf_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_e2ds_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_e2ds_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_s1d_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_s1d_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_bis_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_bis_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_bis_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_ccf_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_ccf_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_ccf_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_e2ds_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_e2ds_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_s1d_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_s1d_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_bis_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_bis_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_bis_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_ccf_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_ccf_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_ccf_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_e2ds_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_e2ds_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_s1d_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_s1d_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_bis_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_bis_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_bis_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_ccf_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_ccf_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_ccf_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_e2ds_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_e2ds_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_s1d_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_s1d_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_bis_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_bis_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_bis_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_ccf_G2_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_ccf_G2_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_ccf_K5_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_e2ds_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_e2ds_B.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_s1d_A.fits +0 -0
- {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_s1d_B.fits +0 -0
|
@@ -25,16 +25,16 @@ Once the environment has been activated ACID can be installed using pip_:
|
|
|
25
25
|
|
|
26
26
|
.. _source:
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Cloning the repository
|
|
29
29
|
===========================
|
|
30
30
|
In order to use the example data (for the tutorials) or the test suite ACID will need to be installed from the source (i.e. directly from the GitHub repository).
|
|
31
|
-
This can be done by cloning the source repository and
|
|
31
|
+
This can be done by cloning the source repository. All examples and tests attempt first to import from your pip installation.
|
|
32
|
+
If this fails they will attempt to import from the local source directory instead.
|
|
32
33
|
|
|
33
34
|
.. code-block:: bash
|
|
34
35
|
|
|
35
|
-
git clone https://github.com/
|
|
36
|
-
cd
|
|
37
|
-
python -m pip install -e .
|
|
36
|
+
git clone https://github.com/Benjamin-Cadell/ACID_v2.git
|
|
37
|
+
cd ACID_v2
|
|
38
38
|
|
|
39
39
|
.. _test:
|
|
40
40
|
|
|
@@ -47,6 +47,6 @@ Test your installation by running our test file in the test directory using pyte
|
|
|
47
47
|
|
|
48
48
|
.. code-block:: bash
|
|
49
49
|
|
|
50
|
-
pytest tests.py
|
|
50
|
+
pytest tests/tests.py
|
|
51
51
|
|
|
52
52
|
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
#%%
|
|
2
2
|
from astropy.io import fits
|
|
3
|
-
import importlib, os
|
|
3
|
+
import importlib, os, sys
|
|
4
4
|
import multiprocessing as mp
|
|
5
5
|
import numpy as np
|
|
6
6
|
import matplotlib.pyplot as plt
|
|
7
|
+
os.chdir(os.path.dirname(__file__))
|
|
8
|
+
os.chdir("..") # ensures we are in the main directory
|
|
7
9
|
try:
|
|
8
|
-
raise Exception("Force except block")
|
|
9
10
|
import ACID_code_v2 as acid
|
|
10
11
|
except:
|
|
11
|
-
os.
|
|
12
|
-
os.
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
|
|
13
|
+
PROJECT_ROOT = os.path.dirname(SCRIPT_DIR)
|
|
14
|
+
sys.path.append(PROJECT_ROOT)
|
|
15
|
+
from src import ACID_code_v2 as acid
|
|
16
|
+
print("pip module failed to import, imported from local instead")
|
|
15
17
|
importlib.reload(acid)
|
|
16
18
|
|
|
17
|
-
spec_file = fits.open('sample_spec_1.fits')
|
|
19
|
+
spec_file = fits.open('example/sample_spec_1.fits')
|
|
18
20
|
|
|
19
21
|
wavelength = spec_file[0].data # Wavelengths in Angstroms
|
|
20
22
|
spectrum = spec_file[1].data # Spectral Flux
|
|
21
23
|
error = spec_file[2].data # Spectral Flux Errors
|
|
22
24
|
sn = spec_file[3].data # SN of Spectrum
|
|
23
25
|
|
|
24
|
-
linelist = 'example_linelist.txt' # Insert path to line list
|
|
26
|
+
linelist = 'example/example_linelist.txt' # Insert path to line list
|
|
25
27
|
|
|
26
28
|
# choose a velocity grid for the final profile(s)
|
|
27
29
|
deltav = 0.82 # velocity pixel size must not be smaller than the spectral pixel size
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
#%%
|
|
2
2
|
from astropy.io import fits
|
|
3
|
-
import os, glob, importlib
|
|
4
|
-
os.chdir(os.path.dirname(__file__))
|
|
5
|
-
os.chdir("..") # ensures we are in the main directory
|
|
6
|
-
import ACID_code_v2 as acid
|
|
3
|
+
import os, glob, importlib, sys
|
|
7
4
|
import numpy as np
|
|
8
5
|
import matplotlib.pyplot as plt
|
|
6
|
+
os.chdir(os.path.dirname(__file__))
|
|
7
|
+
os.chdir("..") # ensures we are in the main directory
|
|
8
|
+
try:
|
|
9
|
+
import ACID_code_v2 as acid
|
|
10
|
+
except:
|
|
11
|
+
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
|
|
12
|
+
PROJECT_ROOT = os.path.dirname(SCRIPT_DIR)
|
|
13
|
+
sys.path.append(PROJECT_ROOT)
|
|
14
|
+
from src import ACID_code_v2 as acid
|
|
15
|
+
print("pip module failed to import, imported from local instead")
|
|
9
16
|
importlib.reload(acid)
|
|
10
17
|
|
|
11
18
|
def test_run_e2ds():
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
from astropy.io import fits
|
|
2
|
-
import ACID_code_v2.ACID as acid
|
|
3
2
|
import numpy as np
|
|
4
3
|
import matplotlib.pyplot as plt
|
|
5
|
-
import glob
|
|
4
|
+
import glob, os, importlib, sys
|
|
5
|
+
os.chdir(os.path.dirname(__file__))
|
|
6
|
+
os.chdir("..") # ensures we are in the main directory
|
|
7
|
+
try:
|
|
8
|
+
import ACID_code_v2 as acid
|
|
9
|
+
except:
|
|
10
|
+
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
|
|
11
|
+
PROJECT_ROOT = os.path.dirname(SCRIPT_DIR)
|
|
12
|
+
sys.path.append(PROJECT_ROOT)
|
|
13
|
+
from src import ACID_code_v2 as acid
|
|
14
|
+
print("pip module failed to import, imported from local instead")
|
|
15
|
+
importlib.reload(acid)
|
|
6
16
|
|
|
7
17
|
def quickstart():
|
|
8
|
-
spec_file = fits.open('
|
|
18
|
+
spec_file = fits.open('example/sample_spec_1.fits')
|
|
9
19
|
|
|
10
20
|
wavelength = spec_file[0].data # Wavelengths in Angstroms
|
|
11
21
|
spectrum = spec_file[1].data # Spectral Flux
|
|
12
22
|
error = spec_file[2].data # Spectral Flux Errors
|
|
13
23
|
sn = spec_file[3].data # SN of Spectrum
|
|
14
24
|
|
|
15
|
-
linelist = '
|
|
25
|
+
linelist = 'example/example_linelist.txt' # Insert path to line list
|
|
16
26
|
|
|
17
27
|
# choose a velocity grid for the final profile(s)
|
|
18
28
|
deltav = acid.calc_deltav(wavelength) # velocity pixel size must not be smaller than the spectral pixel size
|
|
@@ -35,7 +45,7 @@ def quickstart():
|
|
|
35
45
|
def multiple_frames():
|
|
36
46
|
|
|
37
47
|
# finds sample files in 'example directory'. Each file is a different frame.
|
|
38
|
-
files = glob.glob('
|
|
48
|
+
files = glob.glob('example/sample_spec_*.fits')
|
|
39
49
|
|
|
40
50
|
# create lists for wavelengths, spectra, errors and sn for all frames
|
|
41
51
|
wavelengths = []
|
|
@@ -51,7 +61,7 @@ def multiple_frames():
|
|
|
51
61
|
errors.append(spec_file[2].data) # Spectral Flux Errors
|
|
52
62
|
sns.append(float(spec_file[3].data)) # SN of Spectrum
|
|
53
63
|
|
|
54
|
-
linelist = '
|
|
64
|
+
linelist = 'example/example_linelist.txt' # Insert path to line list
|
|
55
65
|
|
|
56
66
|
# choose a velocity grid for the final profile(s)
|
|
57
67
|
deltav = acid.calc_deltav(wavelengths[0])
|
|
@@ -74,14 +84,14 @@ def multiple_frames():
|
|
|
74
84
|
plt.close('all')
|
|
75
85
|
|
|
76
86
|
def mulitple_orders():
|
|
77
|
-
spec_file = fits.open('
|
|
87
|
+
spec_file = fits.open('example/sample_spec_1.fits')
|
|
78
88
|
|
|
79
89
|
wavelength = spec_file[0].data # Wavelengths in Angstroms
|
|
80
90
|
spectrum = spec_file[1].data # Spectral Flux
|
|
81
91
|
error = spec_file[2].data # Spectral Flux Errors
|
|
82
92
|
sn = spec_file[3].data # SN of Spectrum
|
|
83
93
|
|
|
84
|
-
linelist = '
|
|
94
|
+
linelist = 'example/example_linelist.txt' # Insert path to line list
|
|
85
95
|
|
|
86
96
|
# choose a velocity grid for the final profile(s)
|
|
87
97
|
deltav = acid.calc_deltav(wavelength)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_blaze_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_flat_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_flat_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_lamp_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_lamp_B.fits
RENAMED
|
File without changes
|
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_bis_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_bis_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_bis_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_ccf_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_ccf_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_ccf_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_e2ds_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_e2ds_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_s1d_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_s1d_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_bis_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_bis_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_bis_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_ccf_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_ccf_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_ccf_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_e2ds_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_e2ds_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_s1d_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_s1d_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_bis_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_bis_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_bis_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_ccf_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_ccf_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_ccf_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_e2ds_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_e2ds_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_s1d_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_s1d_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_bis_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_bis_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_bis_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_ccf_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_ccf_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_ccf_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_e2ds_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_e2ds_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_s1d_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_s1d_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_bis_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_bis_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_bis_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_ccf_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_ccf_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_ccf_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_e2ds_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_e2ds_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_s1d_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_s1d_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_bis_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_bis_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_bis_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_ccf_G2_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_ccf_G2_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_ccf_K5_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_e2ds_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_e2ds_B.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_s1d_A.fits
RENAMED
|
File without changes
|
{acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_s1d_B.fits
RENAMED
|
File without changes
|