From 5b241828d2eff25fed0cb5055e63da27f4a73f65 Mon Sep 17 00:00:00 2001 From: Joanne Bogart Date: Mon, 20 May 2024 11:49:37 -0700 Subject: [PATCH 1/2] include arrays for DC2 source ra, dec for the new ops4 fields --- skycatalogs/scripts/rotate.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/skycatalogs/scripts/rotate.py b/skycatalogs/scripts/rotate.py index fd8ed5b0..b03f1b50 100644 --- a/skycatalogs/scripts/rotate.py +++ b/skycatalogs/scripts/rotate.py @@ -25,6 +25,8 @@ FIELD_RA = [150.1, 216.0, 179.6, 95.0, 125.0, 225.0, 250.0, 280.0, 300.0] FIELD_DEC = [2.1819444444444445, -12.5, 0.0, -25.0, -15.0, -40.0, 2.0, -48.0, -41.0] +OPS4_NEW_DC2_RA = [54.0, 59.0] +OPS4_NEW_DC2_DEC = [-32.5, -38.0] OPS4_NEW_NAMES = ['DEEP_B0', 'ELAIS_S1'] OPS4_NEW_RA = [310.00, 9.45] OPS4_NEW_DEC = [-19.0, -44.0] @@ -244,8 +246,10 @@ def output_field_pixels(self, output_dir, arrow_schema): # for dc2_ra, dc2_dec, f_ra, f_dec, name in zip(DC2_RA, DC2_DEC, FIELD_RA, # FIELD_DEC, FIELD_NAMES): # Additional fiels for ops rehearsal 4 -for dc2_ra, dc2_dec, f_ra, f_dec, name in zip(DC2_RA, DC2_DEC, OPS4_NEW_RA, - OPS4_NEW_DEC, OPS4_NEW_NAMES): +for dc2_ra, dc2_dec, f_ra, f_dec, name in zip(OPS4_NEW_DC2_RA, + OPS4_NEW_DC2_DEC, + OPS4_NEW_RA, OPS4_NEW_DEC, + OPS4_NEW_NAMES): disk = Disk(dc2_ra, dc2_dec, DISK_RADIUS_DG * 3600) obj_list = cat.get_object_type_by_region(disk, 'galaxy') From 6a722facfcc9fa553c8d1b50d00d83105212ef6f Mon Sep 17 00:00:00 2001 From: Joanne Bogart Date: Mon, 20 May 2024 13:36:07 -0700 Subject: [PATCH 2/2] loosen tolerance from 15 places to 14 for gaia proper motion tests --- tests/test_gaia_direct.py | 4 ++-- tests/test_gaia_objects.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_gaia_direct.py b/tests/test_gaia_direct.py index 056b8afa..9e4f6f78 100644 --- a/tests/test_gaia_direct.py +++ b/tests/test_gaia_direct.py @@ -76,9 +76,9 @@ def test_proper_motion(self): gaia_id = obj.id.split('_')[-1] df = self.df.query(f"id=={gaia_id}") row = df.iloc[0] - self.assertAlmostEqual(np.degrees(row.coord_ra), obj.ra, places=15) + self.assertAlmostEqual(np.degrees(row.coord_ra), obj.ra, places=14) self.assertAlmostEqual(np.degrees(row.coord_dec), obj.dec, - places=15) + places=14) self.assertEqual(mjd0, object_list.mjd) diff --git a/tests/test_gaia_objects.py b/tests/test_gaia_objects.py index 813812bb..920f693a 100644 --- a/tests/test_gaia_objects.py +++ b/tests/test_gaia_objects.py @@ -65,9 +65,9 @@ def test_proper_motion(self): gaia_id = obj.id.split('_')[-1] df = self.df.query(f"id=={gaia_id}") row = df.iloc[0] - self.assertAlmostEqual(np.degrees(row.coord_ra), obj.ra, places=15) + self.assertAlmostEqual(np.degrees(row.coord_ra), obj.ra, places=14) self.assertAlmostEqual(np.degrees(row.coord_dec), obj.dec, - places=15) + places=14) self.assertEqual(mjd0, object_list.mjd)