Skip to content

Commit aaa5e94

Browse files
committed
Make ready for v1.3.4
1 parent 4de51a5 commit aaa5e94

6 files changed

Lines changed: 120 additions & 103 deletions

File tree

HiFLEx_UserManual.pdf

-1.49 KB
Binary file not shown.

HiFLEx_UserManual.tex

Lines changed: 103 additions & 95 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ If you publish data using the barycentric correction, please cite (https://githu
1515
* Extra logging information for wavelength solution and drift of the wavelength solution
1616
* Improved measurement of the offset between emission line spectra and the wavelength solution
1717
* Bugfixing and improvement of parallelisation; optional excludition of steps to speed up
18+
* GUI to add/modify the automatically found orders
1819

1920
## Install instruction
2021

@@ -68,7 +69,7 @@ Create a new folder and copy the `conf.txt` file from your HiFLEx installation p
6869
* Define what files should be used for what calibration.
6970
* Define what files to extract (and in which RVs will be measured).
7071
* Please note that you can use already reduced images. In this case the reduction steps as defined in `conf.txt` should be empty for the file type (e.g. dark or real flats) to avoid a second application of the correction.
71-
- Run the scrip `hiflex.py`
72+
- Run the script `hiflex.py`
7273
- Afterwards: check the output in the `logfile`, the images in the logging path, or in results in the extracted files.
7374

7475
More information can be found in the [manual](https://github.com/ronnyerrmann/HiFLEx/blob/master/HiFLEx_UserManual.pdf).

conf.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# create_badpx_mask.py
77
# file_assignment.py
88
# hiflex.py
9-
# remove_orders.py
9+
# emove_add_modify_orders.py
1010

1111
## Format of the parameters:
1212
#---------------------------
@@ -68,7 +68,7 @@ bin_search_apertures = 20,2
6868
# bin_adjust_apertures: Adjust the center of the apertures in a less binned image. Description as for bin_search_apertures. The second value should be 1 to reach best precission
6969
# format: list of two integers
7070
bin_adjust_apertures = 3,1
71-
# What is the brightest pixel of the faintest order (after binning). The higher this number the quicker, but fainter orders might not be traced
71+
# What is the brightest pixel of the faintest order (after binning, which is done calculating the average). The higher this number the quicker, but fainter orders might not be traced
7272
traces_searchlimit_brightness = 2000
7373
traces_searchlimit_brightness = 200
7474
# polynom_order_apertures: Order of the polynomial to define the form of the traces along the CCD

procedures.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9395,8 +9395,17 @@ def getcoords_from_file(obnames, mjd, filen='coords.txt', warn_notfound=True, ig
93959395
except:
93969396
logger('Warn: Problem with the declination of entry {1} in the reference coordinates file {0}.'.format(filen,cos))
93979397
break
9398-
PMRA = float(cos[3]) # mas/yr
9399-
PMDEC = float(cos[4]) # mas/yr
9398+
prob_list = ['', '--']
9399+
if cos[3] not in prob_list:
9400+
try:
9401+
PMRA = float(cos[3]) # mas/yr
9402+
except:
9403+
logger('Warn: Problem with the proper motion in RA of entry {1} in the reference coordinates file {0}.'.format(filen,cos))
9404+
if cos[4] not in prob_list:
9405+
try:
9406+
PMDEC = float(cos[4]) # mas/yr
9407+
except:
9408+
logger('Warn: Problem with the proper motion in DEC of entry {1} in the reference coordinates file {0}.'.format(filen,cos))
94009409
try:
94019410
epoch = float(cos[8])
94029411
except:

remove_add_modify_orders.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,12 @@
5959
logger('Warn: Cannot create directory {0}'.format(params[entry]))
6060

6161
# Save the new file and restart the reduction
62-
logger('Info: New file with the traces was created. All data depending on this will be moved to the folder {0}, the traces will be written and hiflex.py will be run'.format(params['folder_original_traces']))
62+
logger('Info: New file with the traces was created. All data depending on this will be moved to the folder {0}, the traces will be written.'.format(params['folder_original_traces']))
6363
save_fits_width(polyfits, xlows, xhighs, widths, params['master_trace_sci_filename'])
6464
plot_traces_over_image(im_flat, params['logging_traces_im'].replace('*', 'master_trace1'), polyfits, xlows, xhighs, widths)
6565

6666
cmd = 'python {0}/hiflex.py {1}'.format(os.path.dirname(sys.argv[0]), ' '.join(sys.argv[1:]) )
67-
print('\n')
68-
logger('Info: Finished removing traces. Now, please run the pipeline again:\n{0}'.format(cmd))
67+
logger('Info: Finished modifying traces. Now, please run the pipeline again:\n{0}'.format(cmd))
6968

7069
log_params(params)
7170

0 commit comments

Comments
 (0)