## vlkb-siav2

is a web-application to discover astronomical data (supports FITS-files) and described in a VO ObsTAP table
(https://ivoa.net/documents/ObsCore).
It implements the SIA version 2, IVOA recommendation (https://ivoa.net/documents/SIA) with optional VLKB-specific features:

- provides overlap code
- the filtering paramters (POS, BAND) can be given in GALACTIC and VELO-LSRK-km/s coordinates systems

The service consists of **vlkb-siav2** web-application and associated **vlkb-obscore** command line tool to create the ObsTAP table from FITS-files headers.

The vlkb-obscore cli is available from https://ict.inaf.it/gitlab/butora/vlkb-datasets .
Dockerized version of the web-app is available from https://ict.inaf.it/gitlab/butora/vlkb-datasets-docker .

## Docker image

To configure the application choose a context-root where the SIAv2 can be accessed,
provide database URI which points to the ObsTAP table and provide URL for data-access
(typically a SODA service).
Example compose.yaml entry for VLKB-SIAv2:

```yaml
  vlkb-siav2:
    container_name: vlkb-siav2
    image: git.ia2.inaf.it:5050/vialactea/vlkb-siav2/siav2:1.6
    ports:
      - 8080:8080
    environment:
      - DISCOVERY_CONTEXT_ROOT=vlkb#datasets#siav2
      - DB_URI=jdbc:postgresql://vlkb-db:5432/vialactea
      - DB_USERNAME=vialactea
      - DB_PASSWORD=ia2vlkb
      - CUTOUT_SERVICE_URL=http://vlkb-devel.ia2.inaf.it:8004/vlkb/datasets/soda
```

## Installation

There is a war-package for the search web-application and the package (deb or rpm) with linux
executable for Debian, CentOS and Fedora:

- vlkb-search-X.Y.Z.war
- vlkb-obscore-X.Y.Z.deb|.rpm

To download version X.Y, add one of the above package names to

```bash
curl -O --header "PRIVATE-TOKEN: <security-token>"  "https://ict.inaf.it/gitlab/api/v4/projects/79/packages/generic/vlkb-datasets/X.Y/vlkb-obscore-<version>.{deb|rpm}"

```


