pkundurthy/uwpyKepler — Issue #41: LCSCcount.py
Author: pkundurthy
Created: 2011-11-04 22:18:34+00:00
State: open

+ For now lets write an executable file that will print the data required for the KID groups page
+ In the future, this may be merged with genKIDLists.py

can be executed like:

```
user]$ LCSCcounter.py
prints output:
KIDLISTFILE | KIDs = ### | LC KIDs = ### | SC KIDs = ### | LCSC KIDs = ###
```

When you need to print to file just run

```
user]$LCSCcounter.py >> OutputFile
```

The fastest way to check if a cadence type exists for a single KID would be

```sql
select KEPLERID from source where (KEPLERID = %s and LCFLAG = 0) LIMIT 1 % (KeplerID)
select KEPLERID from source where (KEPLERID = %s and LCFLAG = 1) LIMIT 1 % (KeplerID)
```
If the result has zero elements there is no data of that particular type, if it has 1 element then the data do exist.