Giter Club home page Giter Club logo

gocart's People

Contributors

thespacedoctor avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gocart's Issues

Write map as ASCII text file

  • Title sky in RA DEC and write out a text file (1 square degree per pixel with probability within a pixel)
  • Write boolean columns for for ATLAS and PanSTARRS (observe/don't observe)

Create a plugin interface for gocart

A simple interface that will allow a user to add one or more scripts to be run on an alert directory as soon as alerts are received.

This will allow for a Slack notification script, a script to ingest the new alerts into the ligo_waves database ... etc.

Problem with gocart initialisation

Sorry Dave!

When gocart starts to rattle through the old maps, we get this error:

lect all alerts missed while off-line.
Downloading https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat
|========================================================================================================================================================================================================| 1.3k/1.3k (100.00%)         0s
EVENT: MS230406r detected at 2023-04-06T17:41:35.308 UTC
ALERT: PRELIMINARY reported at 2023-04-06T17:54:27 UTC (+12.86 mins)
FAR: 1 per 61251822.2 yrs
CLASSIFICATION: {'BNS': 1.0, 'NSBH': 0.0, 'BBH': 0.0, 'Terrestrial': 0.0}
PROPERTIES: {'HasNS': 1.0, 'HasRemnant': 1.0, 'HasMassGap': 0.0})


Traceback (most recent call last):
  File "/home/ligo/anaconda3/envs/gocart/bin/gocart", line 8, in <module>
    sys.exit(main())
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/gocart/cl_utils.py", line 155, in main
    parser = lvk(
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/gocart/parsers/lvk.py", line 156, in parse
    c = ascii(
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/gocart/convert/ascii.py", line 62, in __init__
    self.hdus, self.table = flatten_healpix_map(
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/gocart/commonutils/flatten_healpix_map.py", line 55, in flatten_healpix_map
    from ligo.skymap.bayestar import rasterize
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/ligo/skymap/bayestar/__init__.py", line 39, in <module>
    from .. import distance
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/ligo/skymap/distance.py", line 38, in <module>
    import healpy as hp
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/healpy/__init__.py", line 95, in <module>
    from .rotator import Rotator, vec2dir, dir2vec
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/healpy/rotator.py", line 36, in <module>
    SkyCoord(
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/astropy/coordinates/sky_coordinate.py", line 675, in transform_to
    new_coord = trans(self.frame, generic_frame)
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/astropy/coordinates/transformations.py", line 1479, in __call__
    curr_coord = t(curr_coord, curr_toframe)
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/astropy/coordinates/transformations.py", line 1252, in __call__
    newrep = self._apply_transform(fromcoord, *params)
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/astropy/coordinates/transformations.py", line 1174, in _apply_transform
    rep = rep.transform(matrix)
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/astropy/coordinates/representation.py", line 1399, in transform
    p = erfa_ufunc.rxp(matrix, self.get_xyz(xyz_axis=-1))
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/astropy/coordinates/representation.py", line 1351, in get_xyz
    return np.stack([self._x, self._y, self._z], axis=xyz_axis)
  File "<__array_function__ internals>", line 200, in stack
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/astropy/units/quantity.py", line 1683, in __array_function__
    return super().__array_function__(function, types, args, kwargs)
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/numpy/core/shape_base.py", line 471, in stack
    return _nx.concatenate(expanded_arrays, axis=axis, out=out,
  File "<__array_function__ internals>", line 200, in concatenate
  File "/home/ligo/anaconda3/envs/gocart/lib/python3.9/site-packages/astropy/units/quantity.py", line 1688, in __array_function__
    args, kwargs, unit, out = function_helper(*args, **kwargs)
TypeError: concatenate() got an unexpected keyword argument 'dtype'

Add a listen command to download maps and meta

  • create a folder with the event name
  • in the folder create a subfolder for each alert .. how to name? Preliminary, Update, Retraction ...
  • in each alert folder add original fits, fitsheader, alert content (without map)

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.