Skip to content

Commit

Permalink
Merge pull request #186 from winter-telescope/removefiles
Browse files Browse the repository at this point in the history
Remove unnecessary files
  • Loading branch information
virajkaram authored Nov 5, 2022
2 parents 0288848 + cb98c9b commit 18b434f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions winterdrp/catalog/base_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ def get_catalog(
t['dec'] = t[self.dec_key]
t['magnitude'] = t[self.get_mag_key()]
logger.info(f'{len(t)} matches found in the given radius in {self.abbreviation}')
t.write('phot_table.csv', overwrite=True)
t = Table.read('phot_table.csv')
t.meta['description'] = ''
return t

@staticmethod
Expand Down
8 changes: 4 additions & 4 deletions winterdrp/processors/zogy/zogy.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ def get_ast_fluxscale(
ast_unc_y = np.std(ypos_sci[idx_sci] - ypos_ref[idx_ref])

# print(np.median(xpos_sci[idx_sci] - xpos_ref[idx_ref]))
with open('goodmatches.reg', 'w') as f:
f.write('wcs\n')
for i in range(len(xpos_ref[idx_ref])):
f.write('point (%s,%s) #point=cross\n' % (xpos_sci[idx_sci][i], ypos_sci[idx_sci][i]))
# with open('goodmatches.reg', 'w') as f:
# f.write('wcs\n')
# for i in range(len(xpos_ref[idx_ref])):
# f.write('point (%s,%s) #point=cross\n' % (xpos_sci[idx_sci][i], ypos_sci[idx_sci][i]))

logger.info(f'Astrometric uncertainties are X: {ast_unc_x} Y: {ast_unc_y}')
# print('Mean of astrometric uncertainties is X:%.2f Y:%.2f' % (
Expand Down

0 comments on commit 18b434f

Please sign in to comment.