Skip to content

Commit

Permalink
Plotting two schedules together as executable (so quick call from con…
Browse files Browse the repository at this point in the history
…sole)
  • Loading branch information
mseglar committed Sep 18, 2024
1 parent c9c90d6 commit 98443d6
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Time[UTC] RA(deg) DEC(deg) PGW Pgal Round ObsName Duration FoV
Time[UTC] RA(deg) DEC(deg) PGW Round ObsName Duration FoV
"2023-10-12 20:42:18" 29.8828 19.4712 0.0943 1 LST1 15 2.5
"2023-10-12 20:57:18" 32.3438 15.4041 0.0591 1 LST1 15 2.5
"2023-10-12 21:12:18" 37.9688 22.9934 0.0365 1 LST1 15 2.5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Time[UTC] RA(deg) DEC(deg) PGW Pgal Round ObsName Duration FoV
Time[UTC] RA(deg) DEC(deg) PGW Round ObsName Duration FoV
"2023-10-12 20:42:18" 27.0703 15.7139 0.0661 1 LST2 15 2.5
"2023-10-12 20:57:18" 34.4531 19.155 0.0533 1 LST2 15 2.5
"2023-10-12 21:12:18" 22.5 16.646 0.0337 1 LST2 15 2.5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Time[UTC] RA(deg) DEC(deg) PGW Pgal Round ObsName Duration FoV
Time[UTC] RA(deg) DEC(deg) PGW Round ObsName Duration FoV
"2023-10-12 20:42:18" 32.6953 23.318 0.0646 1 LST3 15 2.5
"2023-10-12 20:57:18" 27.7734 23.9695 0.049 1 LST3 15 2.5
"2023-10-12 21:12:18" 24.2578 12.0247 0.0308 1 LST3 15 2.5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Time[UTC] RA(deg) DEC(deg) PGW Pgal Round ObsName Duration FoV
Time[UTC] RA(deg) DEC(deg) PGW Round ObsName Duration FoV
"2023-10-12 20:42:18" 25.3125 20.4236 0.0573 1 LST4 15 2.5
"2023-10-12 20:57:18" 29.1797 11.4152 0.0385 1 LST4 15 2.5
"2023-10-12 21:12:18" 35.5078 27.2796 0.0252 1 LST4 15 2.5
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ all = [

[project.scripts]
Tiling_Observations = "tilepy.scripts.Tiling_Observations:main"
PlottingTwoCampaigns = "tilepy.scripts.PlottingTwoCampaigns:main"

[project.urls]
repository = "https://github.com/astro-transients/tilepy"
Expand Down
4 changes: 3 additions & 1 deletion src/tilepy/scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from .Tiling_Observations import Tiling_Observations
from .PlottingTwoCampaigns import PlottingTwoCampaigns

__all__ = [
"Tiling_Observations"
"Tiling_Observations",
"PlottingTwoCampaigns",
]
6 changes: 5 additions & 1 deletion src/tilepy/tools/VisualizationTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,16 @@ def CompareTwoTilings(filename, PointingsFile1=False, PointingsFile2=False, FOV=
df1 = LoadPointings (PointingsFile1)
df2 = LoadPointings (PointingsFile2)


if 'Pgal' in df2.columns:
print('Summary of 1st file: sum(PW)=', sum(df1['PGW']),
'sum(PGAL)=', sum(df1['Pgal']), 'total pointings', len(df1['PGW']))
print('Summary of 2st file: sum(PW)=', sum(df2['PGW']),
'sum(PGAL)=', sum(df2['Pgal']), 'total pointings', len(df2['PGW']))
print("===========================================================================================")
else:
print('Summary of 1st file: sum(PW)=', sum(df1['PGW']),'total pointings', len(df1['PGW']))
print('Summary of 2st file: sum(PW)=', sum(df2['PGW']),'total pointings', len(df2['PGW']))
print("===========================================================================================")

name1 = 'File1'
name2 = 'File2'
Expand Down

0 comments on commit 98443d6

Please sign in to comment.