Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include arrays for DC2 source ra, dec for the new ops4 fields #100

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions skycatalogs/scripts/rotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions tests/test_gaia_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_gaia_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down