Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manuparra/cross-matching-canfar
This task cross-matches >=2 catalogues using IVOA Simple Cone Search (SCS) services. It is currently set up to acces the following catalogues: LoTSS_DR2 GMRT_ADR GAIA_DR3 2MASS
https://github.com/manuparra/cross-matching-canfar
astrophysics cross-match python3
Last synced: 12 days ago
JSON representation
This task cross-matches >=2 catalogues using IVOA Simple Cone Search (SCS) services. It is currently set up to acces the following catalogues: LoTSS_DR2 GMRT_ADR GAIA_DR3 2MASS
- Host: GitHub
- URL: https://github.com/manuparra/cross-matching-canfar
- Owner: manuparra
- License: gpl-3.0
- Created: 2024-02-15T15:31:10.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-21T10:35:24.000Z (11 months ago)
- Last Synced: 2024-11-07T09:31:33.011Z (2 months ago)
- Topics: astrophysics, cross-match, python3
- Language: Jupyter Notebook
- Homepage:
- Size: 201 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CANFAR cross-matching task
ℹ️ This development has been customised to run on [CANFAR](https://github.com/opencadc/science-containers/tree/main) platform.
This task cross-matches >=2 catalogues using IVOA Simple Cone Search (SCS) services. It is currently set up to acces the following catalogues:
- LoTSS_DR2
- GMRT_ADR
- GAIA_DR3
- 2MASS## How to run the task
Clone this repository and add execute permissions to files in the repository:
```bash
$ chmod 755 -R *
```The run.sh script will pull the latest container from the registry
(no building is required) and executing the task.```bash
$ ./run.sh
```or alternatively using the Makefile targets if Make is installed:
```bash
$ make run
```for running using an image from the remote registry, or
```bash
$ make run-local
```for running using an image from your machine's local registry.
## How to use a Jupyter notebook interactively
To use a Jupyter notebook environment, first make the image:
```bash
$ make image-jupyter
```run it:
```bash
$ make run-local-jupyter
```and then navigate to the url it displays in the terminal.
An example notebook, `crossmatching.ipynb` is available in the default notebook directory, `jupyter/notebooks`.
## Expected outputs
If the crossmatching was successful a catalogue will be written in fits format /scripts/crossmatch_cat.fits. A 2D sky plotw will also be made of the crossmatched sources along with a histogram of the separations for each matching catalogue, e.g.
![Sky plots and histograms](./crossmatch_plot.png){width=75%}
## Adding catalogues
If an IVOA SCS interface exists to the catalogue you want to add, add a new entry in `scripts/catalogue.py` with the
URL to the service, `SCS_URL`, and also specifying which columns correspond to RA/DEC (and optionally their errors),
e.g.```python
class CatalogueNew(Catalogue):
""" Gaia DR3 Catalogue. """
SCS_URL = "https://path/to/some/catalogue/scs.xml"
_RA_COLUMN = 'ra'
_DEC_COLUMN = 'dec'
_ERR_RA_COLUMN = 'ra_error'
_ERR_DEC_COLUMN = 'dec_error'
```and then add it to the list of `SUPPORTED_CATALOGUES` in `scripts/crossmatch.py`:
```python
SUPPORTED_CATALOGUES = {
...,
'NEW_CATALOGUE': CatalogueNew
}
```It can then be referenced by the name `NEW_CATALOGUE` in either the `--ref-catalogue` or `--match-catalogue` arguments.