Calibration Database Reader
This software is able to read the calibration database in a standard format.
The database consists of three elements:
- The
version.ymlfile, which contains the version number of the database - The
calib_db.csvfile, which contains information about the calibration data and their scope of applicability (see the specific section for details) - The
datafolder, which contains the calibration matrices
Installation
via GitHub
To install the code you can use the syntax:
$ python3 -m pip install -U pip
$ pip install git+https://github.com/RomoloPoliti-INAF/Calib_DB_Reader.git
Usage
CalibDB(folder: str, remote: str)
where:
- folder (str) is the the folder that host the database
- remote (str, optional) is the git repository that host the db
If the folder does not exist, the software will clone the remote repository. If it is not present, an error will occur.
Example
from CalibDBReader import CalibDB
db=CalibDB(folder = "../../JANUS/Software/janus_cal_db",
remote = "git@github.com:JANUS-JUICE/janus_cal_db.git")
Methods list
get_calib
Returns information about the calibration data and the calibration data that meets the specified conditions.
CalibDBReader.get_calib(calibration_step: str, date: datetime, channel: str = None, filter: int = None, read_data: bool = False) -> dict
- calibration_step (str): name of the calibration module
- date (datetime): acquisition date of the product to calibrate
- channel (str, optional): channel to calibrate. Defaults to None.
- filter (int, optional): filter to calibrate. Defaults to None.
- read_data (bool, optional): read the calibration file and add it to the returned dictionary. Defaults to False.
Database Fields
- Description Description of the step (used for messaging and log)
- Channel the channel to calibrate
- Calibration_Step name of the step will use the matrix
- Size size of the matrix (used for load the data)
- Mask value used to mask the pixel. If the value is 0 the mask will not applied.
- Type Is the data type of the values in the matrix.
- Func is the type of function will be used for the calibration. The function must be implemened in the code.
- Filter is the filter number
- Start is the start date of validity of the matrix
- End is the end date of validity of the matrix. If the value is "Now" means that there is no end of validity.
- File is the path and the the name of the file containing the matrix.
- Arrays is the name of the matrices in the npz file. If the field is not present the software will try to extract one matrix named data
The Supported file format are:
- binary file 2D or 3D binary matryx
- numpy compressed file nmz file, in this case the Size and Type fields have only descriptive aim.
Metadata
Release files for CalibDBReader 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| calibdbreader-0.8.0.tar.gz | 16.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| calibdbreader-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.0 kB
Release files / calibdbreader-0.8.0.tar.gz
| Download URL | calibdbreader-0.8.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b4cb905d451dbd69db277e770fdc3e2e49c804994534149925cc0640293835b
|
|
BLAKE2b-256 checksum How to use checksums |
24663af8f823d0a23a10b92debb066a71f64c8b782971255088e58a77db2a7c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.7 Darwin/25.3.0
|
Release files / calibdbreader-0.8.0-py3-none-any.whl
| Download URL | calibdbreader-0.8.0-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a2db0e4117ba3a567e531f7dca5296ee93bcdc285686d03a456027e10317c1f
|
|
BLAKE2b-256 checksum How to use checksums |
7d5986ec5f205db1a7aa42abe1354e237dc3fb33c411e1afc378c09ce39b50f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.7 Darwin/25.3.0
|
Security for CalibDBReader 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.