<jupyter_start><jupyter_text>Finding CVZ stars using astroquery.<jupyter_code>%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

from astropy.coordinates import BarycentricTrueEcliptic
from astropy import units as u
from astropy.coordinates import ICRS
from astroquery.mast import Catalogs

import lightkurve as lk
cvz = BarycentricTrueEcliptic(lon=0*u.deg, lat=-90*u.deg)
coords = cvz.transform_to(ICRS)
catalog_data = Catalogs.query_criteria(coordinates="{0} {1}".format(coords.ra.value, coords.dec.value),
                                       radius=.1, catalog="Tic", objType="STAR")
df = catalog_data.to_pandas()
plt.plot(df.ra, df.dec, ".")
plt.plot(df.eclong, df.eclat, ".")
from tqdm import trange

for i in range(20):
    ticid = df.ID.values[i]
    print(ticid)
    starname = "TIC {}".format(ticid)
    lcf = lk.search_lightcurvefile(starname).download()
    try:
        lc = lcf.PDCSAP_FLUX
    except AttributeError:
        pass<jupyter_output>No data found for target "TIC 31604252".
/anaconda3/lib/python3.7/site-packages/lightkurve/search.py:131: LightkurveWarning: Cannot download from an empty search result.
  LightkurveWarning)
No data found for target "TIC 31604267".
/anaconda3/lib/python3.7/site-packages/lightkurve/search.py:131: LightkurveWarning: Cannot download from an empty search result.
  LightkurveWarning)
No data found for target "TIC 31604281".
/anaconda3/lib/python3.7/site-packages/lightkurve/search.py:131: LightkurveWarning: Cannot download from an empty search result.
  LightkurveWarning)
No data found for target "TIC 31604285".
/anaconda3/lib/python3.7/site-packages/lightkurve/search.py:131: LightkurveWarning: Cannot download from an empty search result.
  LightkurveWarning)
No data found for target "TIC 31604329".
/anaconda3/lib/python3.7/site-packages/lightkurve/search.py:131: LightkurveWarning: Cannot download from an empty search result.
  LightkurveWarning)
No data found for target "TIC 31604330".
/ana[...]
{'fraction_non_alphanumeric': 0.10269192422731804, 'fraction_numerical': 0.04287138584247258, 'mean_word_length': 4.498630136986302, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '663450', 'license': 'MIT', 'n_tokens_mistral': 771, 'n_tokens_neox': 684, 'n_words': 177, 'path': 'code/notebooks/Find_CVZ_stars.ipynb', 'repo_name': 'RuthAngus/TESS-rotation', 'size': '2006'}