From b721c819a566184305214d75c5bc9f9164f9775f Mon Sep 17 00:00:00 2001 From: viraj21197 Date: Fri, 4 Nov 2022 16:46:09 -0700 Subject: [PATCH 1/3] remove phot_table.csv --- winterdrp/catalog/base_catalog.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/winterdrp/catalog/base_catalog.py b/winterdrp/catalog/base_catalog.py index 01bdbf4c9..bfe48bf2d 100644 --- a/winterdrp/catalog/base_catalog.py +++ b/winterdrp/catalog/base_catalog.py @@ -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') + return t @staticmethod From ecee6f18962ae4603961a47adf0e6679f8d3227a Mon Sep 17 00:00:00 2001 From: viraj21197 Date: Fri, 4 Nov 2022 16:59:07 -0700 Subject: [PATCH 2/3] remove goodmatches --- winterdrp/processors/zogy/zogy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/winterdrp/processors/zogy/zogy.py b/winterdrp/processors/zogy/zogy.py index 02079f9cd..2abc586b7 100644 --- a/winterdrp/processors/zogy/zogy.py +++ b/winterdrp/processors/zogy/zogy.py @@ -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' % ( From cb98c9bcbbec3cda8986f7bb90ee9cfb44f9ab9d Mon Sep 17 00:00:00 2001 From: viraj21197 Date: Fri, 4 Nov 2022 17:34:22 -0700 Subject: [PATCH 3/3] better handle long description keyword in vizier result meta --- winterdrp/catalog/base_catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winterdrp/catalog/base_catalog.py b/winterdrp/catalog/base_catalog.py index bfe48bf2d..b5f109819 100644 --- a/winterdrp/catalog/base_catalog.py +++ b/winterdrp/catalog/base_catalog.py @@ -157,7 +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.meta['description'] = '' return t @staticmethod