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

Add support for special dither scheme when for TOO observations #254

Open
soares-santos opened this issue Aug 1, 2018 · 7 comments
Open
Assignees
Projects

Comments

@soares-santos
Copy link

We are using the code from @ehneilsen to modify the opsim db produced by the project and we want to run the make_simblib.py script from @rbiswas4 to turn them into simblib files for SNANA. However, we are running into trouble with the fact that we don't have ditherfiles for the new db's which were modified for TOO observations. One possibility is to turn off the dithering altogether when we do TOO observations, or use a special scheme that optimizes the probability of discovery of the source. This could be done, we think, by adding a propID that this specific for TOO observations.

@rbiswas4
Copy link
Member

rbiswas4 commented Aug 1, 2018

The plan @soares-santos and I discussed for this is:

  1. I make sure there is something so that this can run with no -ditherfile, ignoring dithers everywhere.
  2. I add something to take into account TOO as a new proposal. This should have entroes in the proposalId column of the summary table which is an integer distinct from the used ones. I think 7 would do for now , and a new row in the Proposal table. describing this proopsal. The opsim like databases should come from @ehneilsen . Please do let me know if this is possible. I will add code to use this.

@rbiswas4 rbiswas4 assigned rbiswas4 and unassigned rbiswas4 Aug 1, 2018
@soares-santos
Copy link
Author

I talked to @ehneilsen about this and he already has the feature we need in his code. He uses proposalID = 6, but it is trivial to change it to another number. @rbiswas4, if you can make it so that there is an option such as "--noditherpropidnum" we can then be safe in case the opsim people come up with other poposalID = 7 and we have to bump ours.

@ehneilsen
Copy link

ehneilsen commented Aug 2, 2018 via email

rbiswas4 added a commit that referenced this issue Aug 2, 2018
everywhere.

- Addresses item 1 of #254
	modified:   ../opsimsummary/version.py
	new file:   make_simlibs_gw.py
@rbiswas4
Copy link
Member

rbiswas4 commented Aug 3, 2018

@soares-santos @ehneilsen : I agree. So, combining your comments I think the plan is :

The proposal table should contain an extra row with an id distinct from each of the propIDs already in that table which usually looks like.

propId|Session_sessionId|propName|propType
1|2022|NorthEclipticSpur|General
2|2022|SouthCelestialPole|General
3|2022|WideFastDeep|General
4|2022|GalacticPlane|General
5|2022|DeepDrillingCosmology1|Sequence

Perhaps

propId|Session_sessionId|propName|propType
7|2022|GWTOO|Sequence

and all rows representing TOO observations in the summaryAllProps table should have
ProposalId values of 7.
Note, as long as these are consistent and distinct in that particular database, (7 could be replaced by 6 in one database and 15 in another, you don't need to tell me) my code will work.

  • The additional information
    I do need from @ehneilsen is what his propName will be (eg. GWTOO?). I would need you to stick with preferably the same name in all databases you create and want to use my code for.

  • I also expect that your replaced observations will have ra and dec in degrees (to be consistent with conventions in opsim v4) in fieldRA and fieldDec columns.

  • A question for @ehneilsen :
    OpSim tends to have (have not checked v4) duplicate entries for the same observation assigned to DDF and WFD (ie. the same pointing serves both needs) for a miniscule fraction of cases). I am assuming that if you have picked any such observation to replace, you have also removed the duplicate. Could you lease confirm that this a safe assumption, and I don't need to add code to deal with this consistently?

@rbiswas4 rbiswas4 added this to To do in GW_TOO via automation Aug 3, 2018
@rbiswas4 rbiswas4 moved this from To do to In progress in GW_TOO Aug 3, 2018
@ehneilsen
Copy link

ehneilsen commented Aug 3, 2018 via email

@rbiswas4
Copy link
Member

rbiswas4 commented Aug 3, 2018

@ehneilsen

The propName I have been using is “GWFollowup”. It would be trivial for me to change.

No need. I just need to know what you are using. I will take that as given.

I expect that the exposures I use for the ToO will also be useful for WFD (they are presently designed to be), so I add two rows for them: one with the WFD proposal id, the other with the GWfollowup one.

I wonder if you would be willing to remove the extra WFD, at least temporarily. This would be a bit of simplification for me, in order to get this up to speed. (I am willing to work on accommodating the extra WFD in a while, but with too many deadlines, it would be really helpful to get started without this. Let me add that at least for SN studies that I am going to help in, this will not mean that the GWFollowup epochs are missed in any SN study.

@ehneilsen
Copy link

ehneilsen commented Aug 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
GW_TOO
  
In progress
Development

No branches or pull requests

3 participants