query should not take F1ND filter + masking tape on cdelt

This commit is contained in:
Thibault Barnouin
2023-09-18 16:57:40 +02:00
parent 85cacfdb51
commit 0cdd3723ef
2 changed files with 9 additions and 2 deletions

View File

@@ -86,6 +86,13 @@ def get_product_list(target=None, proposal_id=None):
results = divide_proposal(results)
obs = results.copy()
### Remove single observations for which a FIND filter is used
to_remove=[]
for i in range(len(obs)):
if "F1ND" in obs[i]['Filters']:
to_remove.append(i)
obs.remove_rows(to_remove)
### Remove observations for which a polarization filter is missing
polfilt = {"POL0":0,"POL60":1,"POL120":2}
for pid in np.unique(obs['Proposal ID']):
used_pol = np.zeros(3)