Coder Social home page Coder Social logo

acceptance_modelisation's People

Contributors

aaguasca avatar mdebony avatar mscarrasco avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

acceptance_modelisation's Issues

Take number of events into account for `_compute_time_intervals_based_on_fov_rotation`

I really like the idea of using the FoV rotation to calculate the time frame in which to evaluate the observations ๐Ÿ˜Š
Unfortunately I came across the problem that this can fail in the case that the time frame is so small that there are no events in the sub-observation you are looking at.
I guess one solution would be to check the number events for the time frame but this requires to do obs.select_time() inside the _compute_time_intervals_based_on_fov_rotation method. The other solution would be to required something like a deltaT_threshold so that there are no frames that have smaller duration than this threshold :)

Set `fov_alignment` for Background3D

Hi ๐Ÿ˜Š

I think the fov_alignment has to be given at the instantiation of Background3D here, e.g. fov_alignment=FoVAlignment.ALTAZ

acceptance_map = Background3D(axes=[self.energy_axis, extended_offset_axis_x, extended_offset_axis_y],
data=data_background.to(u.Unit('s-1 MeV-1 sr-1')))

Otherwise it's RADEC per default and as far as I can tell by roughly going through the code, the acceptance model is calculated in the SkyOffset frame of the camera in altaz

camera_frame = SkyOffsetFrame(origin=AltAz(alt=pointing_altaz.alt,
az=pointing_altaz.az,
obstime=obs.events.time,
location=obs.observatory_earth_location),
rotation=[0., ] * len(obs.events.time) * u.deg)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.