Astronomy units for the Ampel system from HU-Berlin
Project description
AMPEL-HU-astro
Contributed Ampel units from HU/DESY group
Installing
- Install poetry.
- Configure poetry to create virtualenvs in the project:
poetry config virtualenvs.in-project true. This makes it easier to work with IDEs like VSCode. git clone https://github.com/AmpelProject/Ampel-HU-astro.git; cd Ampel-HU-astro- Check your virtualenv setup with
poetry env info. The output should include:
If not, point poetry at an installation of Python >=3.12 with e.g.Virtualenv Python: 3.12.xpoetry env use python3.12(assuming that python3.12 is in yourPATH) poetry install -E "ztf sncosmo extcats" --with notebookcd notebookspoetry run jupyter notebook
This will allow a number of Demo / access / development notebooks to be run. Note that most of them requires an access token if data is to be retrieved.
Pitfalls
- lightgbm expects to find OpenMP on your system. If you see an error message like
OSError: libgomp.so.1: cannot open shared object file: No such file or directory, you will need to install OpenMP with e.g.brew install libomp(macOS) orapt-get install libgomp1(Ubuntu). - to install with parsnip support, `poetry install -E "elasticc" --with notebook
Provided units
T0 units (alert filters):
- DecentVroFilter: General-purpose filter for VRO alerts, based on the ZTF DecentFilter.
- LensedTransientFilter
- PredetectionFilter: Filter derived from the DecentFilter.
- RandFilter
- RcfFilter: Filter for the ZTF Redshift Completeness Factor program..
- RedshiftCatalogFilter: Filter derived from DecentFilter designed to only accept transients located close to a galaxy in a catalog, and within redshift bounds.
- SimpleDecentFilter: General-purpose filter devloped alongside DecentFilter but without use of external catalogs.
- StellarFilter: a.k.a. as the IndecentFilter, i.e. an inversion of the DecentFilter mainly used for finding extragalactic objects.
- TimeDistributionFilter: Filter derived from the DecentFilter, in addition.
- TransientInClusterFilter: Filter derived from the DecentFilter, in addition selecting candidates with position compatible with that of nearby galaxy clusters..
- XShooterFilter: Filter derived from the DecentFilter, in addition selecting very new transients which are visible from the South.
T2 units (augment):
- T2BayesianBlocks: T2 unit for running a bayesian block search algorithm to highlight excess regions.
- T2BrightSNProb: Derive a number of simple metrics describing the rise, peak and decline of a lc.
- T2CatalogMatchLocal: Cross matches the position of a transient to those of sources in a set of catalogs.
- T2ClassificationReport: Require and propagate classification information from ParsnipRiseDecline..
- T2DemoLightcurveFitter: Demonstration class showing how methods of T2BaseLightcurveFitter can be used develop a specific classifier.
- T2DigestRedshifts: Compare potential matches from different T2 units providing redshifts.
- T2DustEchoEval
- T2ElasticcRedshiftSampler: Parse the elasticc diaSource host information and returns a list of redshifts and weights.
- T2ElasticcReport: Parse a series of T2 results from T2RunParsnip and T2XgbClassifier, and create combined classifications according to the taxonomy of https://github.com/LSSTDESC/elasticc/blob/main/taxonomy/taxonomy.ipynb.
- T2FastDecliner: Determine decline rate in two last obs.
- T2GetLensSNParameters
- T2InfantCatalogEval: Evaluate whether a transient fulfills criteria for being a potentially infant (extragalactic) transient.
- T2InfantReport: Report potential infant transients.
- T2KilonovaEval: Evaluate whether a transient fulfills criteria for being a potential kilonova-like event.
- T2KilonovaStats: Evaluate kilonovaness stats for transient given map distance and number of detections..
- T2LCQuality: determine the 'quality' of the light curve by computing ratios between the number of detection and that of upper limits.
- T2LSPhotoZTap: Query the NOIR DataLab service for photometric redshifts from the Legacy Survey.
- T2LasairReport: Propagate classification results to Lasair..
- T2LoadRedshift: Add redshifts from external .csv.
- T2MatchBTS: Add information from the BTS explorer page.
- T2MinorPlanetCenter: Check if the latest detection of a transient corresponds matches something known by the MinorPlanetCenter..
- T2MultiXgbClassifier: For a range of xgboost classifier models, find a classification.
- T2NedSNCosmo: Fits lightcurves using SNCOSMO (using SALT2 defaultwise) with redshift constrained by catalog matching results.
- T2NedTap: See also: https://ned.ipac.caltech.edu/tap/sync?QUERY=SELECT+*+FROM+TAP_SCHEMA.tables&REQUEST=doQuery&LANG=ADQL&FORMAT=text Export all NED: https://ned.ipac.caltech.edu/tap/sync?QUERY=SELECT+*+FROM+NEDTAP.objdir&REQUEST=doQuery&LANG=ADQL&FORMAT=text.
- T2Observability: cross match the position of a transient to those of sources in a set of catalogs and attach the required information to the transient..
- T2RiseDeclineStat
- T2RunParsnip: Gathers information and runs the parsnip model and classifier.
- T2RunParsnipRiseDecline
- T2RunPossis: Load a POSSIS kilnova model and fit to a LightCurve object as process is called.
- T2RunSncosmo: Gathers information and runs Sncosmo.
- T2RunSnoopy: Gathers information and runs snoopy.
- T2RunTDE: Create a TDE model and fit to a LightCurve object as process is called.
- T2SNCosmo
- T2TNSEval: Evalute whether a transient fulfills criteria for submission to TNS.
- T2XgbClassifier: Load a series of xgboost classifier models (distinguished by number of detections) and return a classification.
T3 units (react):
- AstroColibriPublisher: Publish results to AstroColibri.
- ChannelSummaryPublisher: Create a json file with summary statistics for the channel.
- CostCounter: Derive metrics for the total cost, as parsed by the provided documents.
- DCachePublisher: Publish TransientViews to DCache in gzipped JSON format.
- ElasticcClassPublisher: This unit is intended to submit classifications to the DESC TOM db during the ELAsTICC LSST alert simulation.
- ElasticcClassTablePrinter: Unit which will print Elasticc unit classifications to STDOUT and/or an output csv file.
- HealpixCorrPlotter: Compare healpix coordinate P-value with output from T2RunSncosmo..
- PlotLightcurveSample: Unit plots results from lightcurve fitters (RunSncosmo, RunParsnip).
- PlotTransientLightcurves: Create a (pdf) plot summarizing lightcurves of candidates provided to the unit.
- RapidBase: Trigger rapid reactions.
- RapidLco: Submit LCO triggers for candidates passing criteria..
- RapidSedm: Select transients for rapid reactions.
- ScoreSingleObject: Calculate score based on how early a specific SN is detected.
- ScoreTNSObjects: Calculate score based on detection time reported to TNS, if any..
- SlackSummaryPublisher
- SubmitTNS: Submit candidates to TNS (unless already submitted).
- TransientInfoPrinter
- TransientTablePublisher: Construct a table based on selected T2 output values.
- TransientViewDumper
T4 units (control):
- ElasticcTomBridge: Bridge between Elasticc classifications and the DESC TOM system.
- HealpixTokenGenerator: Based on a URL to a Healpix map.
- RandomMapGenerator: Generate smoothed circular healpix probability values around a random coordinate..
- StreamTokenGenerator: Stream based token generator for.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ampel_hu_astro-0.10.0a18.tar.gz.
File metadata
- Download URL: ampel_hu_astro-0.10.0a18.tar.gz
- Upload date:
- Size: 802.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a26b8b361e969b7167d120efdfeb0498bf2a323561418a8e865355e6b86405ea
|
|
| MD5 |
ec8801249b73725af6076a89670cc238
|
|
| BLAKE2b-256 |
02440d345ab10c9bc1a75388d65fe590431ba7ad00c4af681d4dcaae312f2fe0
|
Provenance
The following attestation bundles were made for ampel_hu_astro-0.10.0a18.tar.gz:
Publisher:
main.yml on AmpelAstro/Ampel-HU-astro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ampel_hu_astro-0.10.0a18.tar.gz -
Subject digest:
a26b8b361e969b7167d120efdfeb0498bf2a323561418a8e865355e6b86405ea - Sigstore transparency entry: 974674554
- Sigstore integration time:
-
Permalink:
AmpelAstro/Ampel-HU-astro@3dc5148118260786b092fa14774e421955450013 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AmpelAstro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@3dc5148118260786b092fa14774e421955450013 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ampel_hu_astro-0.10.0a18-py3-none-any.whl.
File metadata
- Download URL: ampel_hu_astro-0.10.0a18-py3-none-any.whl
- Upload date:
- Size: 976.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dd180038338a26d1f7d15fa553c2e9e5f67777ecb08e35b4f526dff665c79c1
|
|
| MD5 |
79056724bdf37376fe5d0d0f10775de1
|
|
| BLAKE2b-256 |
e04dc35a30e769ae780c7c53f625675e0b68ee655710e5f3d6c0cae159b6960c
|
Provenance
The following attestation bundles were made for ampel_hu_astro-0.10.0a18-py3-none-any.whl:
Publisher:
main.yml on AmpelAstro/Ampel-HU-astro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ampel_hu_astro-0.10.0a18-py3-none-any.whl -
Subject digest:
6dd180038338a26d1f7d15fa553c2e9e5f67777ecb08e35b4f526dff665c79c1 - Sigstore transparency entry: 974674559
- Sigstore integration time:
-
Permalink:
AmpelAstro/Ampel-HU-astro@3dc5148118260786b092fa14774e421955450013 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AmpelAstro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@3dc5148118260786b092fa14774e421955450013 -
Trigger Event:
push
-
Statement type: