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

Simlib for a specific field of view LSST OpSim #324

Open
anibal-art opened this issue Aug 11, 2022 · 0 comments
Open

Simlib for a specific field of view LSST OpSim #324

anibal-art opened this issue Aug 11, 2022 · 0 comments

Comments

@anibal-art
Copy link

Hello, I want to create a SIMLIB file with a specific field from an LSST OpSim simulations.
I really don't find an example to do this and I really thank you the help for doing this.

The field on what I am interested is this.
`import numpy as np
coord1=np.asarray([269.3875, 269.3917, 270.7667, 269.3875]) #RA
coord2=np.asarray([-27.9944, -29.2208, -28.6108, -27.9944]) #Dec

def filt(ra,dec):
coord = []
if min(coord1)<ra<max(coord1):
coord.append(ra)
if min(coord2)<dec<max(coord2):
coord.append(dec)
else:
return False
return True, coord`

I know that I can use the entire OpSim database (the entire footprint) and then filter the fields on this area (either in the output of SNANA or in the SIMLIB) but it is slow. So I want to filter on the SIMLIB creation. How I can do this? Thank you for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant