CaltechOpticalObservatories / NGPS

NGPS Software
2 stars 0 forks source link

No way to input a sky background #20

Closed chazshapiro closed 9 months ago

chazshapiro commented 1 year ago

The OTM defaults to some template spectrum dubiously normalized to 21.4 mag/arcsec^2 (Palomar photometric limit). I have a version that incorporates the Rubin sky simulator, but it will require some work on the GUI to run it without slowing the OTM down. It needs python to be imported into java or C++ to reduce overhead.

The alternative is to have the OTM run as a daemon, but I believe we decided this was inelegant, esp. in light of making it available to multiple users.

chazshapiro commented 9 months ago

I found a workaround in Python -- I can save the sky background model in a pickle file (1.1 GB!) instead of generating it each time. Loading the file only adds ~0.7s to the OTM overhead. Maybe we can live with that, although embedding Python or having a daemon would save several seconds by removing overhead completely.