Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for start RVs #20

Open
mzechmeister opened this issue Jan 9, 2019 · 1 comment
Open

Option for start RVs #20

mzechmeister opened this issue Jan 9, 2019 · 1 comment
Assignees

Comments

@mzechmeister
Copy link
Owner

mzechmeister commented Jan 9, 2019

The option should accept an RV file.
Currently, there are already the -vtfix and -skippre options. Actually, it is also related to the -targrv option.

With is option one could, for example, apply RVs from CARM_VIS for the coadding in CARM_NIR.

@mzechmeister
Copy link
Owner Author

Currently, start RVs could be loaded by writing them into the *.pre.dat file and using the -skippre option.
This is how vtfix works since 73e1fd8:

serval/src/serval.py

Lines 1059 to 1066 in 73e1fd8

if vtfix:
# RV are zero
np.savetxt(prefile, np.array([(sp.bjd, 0., 0.) for sp in spoklist]))
if skippre or vtfix:
# restore the pre RVs
if os.path.isfile(prefile):
bjd, RV, e_RV = np.genfromtxt(prefile, dtype=None, unpack=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant