<commit_before>K2fov
======
Check whether targets are in the field of view of K2

install with
```bash
pip install K2fov
```
if you have a previous version you will need to use
```bash
pip install K2fov --upgrade
```

You'll need a modern version of Python (I've only tested this on 2.7.5) and a relatively new version of numpy (I've tested this on 1.8).

The simplest thing to do is to have a CSV file with
RA_degrees, Dec_degrees, Kepmag
Do not use a header. For example

```bash
178.19284, 1.01924, 13.2
171.14213, 5.314616, 11.3
```

then you can do
```bash
python -c 'import K2fov; K2fov.K2onSilicon("mytargetlist.csv",1)'
```
Where mytargetlist.csv is your CSV file and 1 is the K2 Campaign number.
Campaign number must be 0 thru 10. Once we decide on Campaign 11+ pointing I'll update the code.

Running the code will output a file with the three input columns and an additional column with either [0,2].<br>
0 = Not observable<br>
2 = Target is in the K2 field of view<br>
<commit_msg>Mention in the README that C11-12-13 is now in the tool.<commit_after>K2fov
======
Check whether targets are in the field of view of K2

install with
```bash
pip install K2fov
```
if you have a previous version you will need to use
```bash
pip install K2fov --upgrade
```

You'll need a modern version of Python (I've only tested this on 2.7.5) and a relatively new version of numpy (I've tested this on 1.8).

The simplest thing to do is to have a CSV file with
RA_degrees, Dec_degrees, Kepmag
Do not use a header. For example

```bash
178.19284, 1.01924, 13.2
171.14213, 5.314616, 11.3
```

then you can do
```bash
python -c 'import K2fov; K2fov.K2onSilicon("mytargetlist.csv",1)'
```
Where mytargetlist.csv is your CSV file and 1 is the K2 Campaign number.
Campaign number must be 0 thru 13. The function can also be called for Campaign 14 and onwards,
but keep in mind that the positions of those campaigns are preliminary and will very likely change.

Running the code will output a file with the three input columns and an additional column with either [0,2].<br>
0 = Not observable<br>
2 = Target is in the K2 field of view<br>

{'fraction_non_alphanumeric': 0.08364661654135339, 'fraction_numerical': 0.05921052631578947, 'mean_word_length': 4.081145584725537, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '583424', 'n_tokens_mistral': 785, 'n_tokens_neox': 672, 'n_words': 347}