A reader in pure Java for the *.irb
file format by InfraTec,
inspired by https://github.com/tomsoftware/Irbis-File-Format .
This program can be used either as a Maven dependency within another program
or as a stand-alone commandline utility.
The ready-to-use jar can be downloaded here:
irb-1.0.3.jar
This is a pure hobby project. No copyright infringements or similar is intended.
Please inform the author about possible legal issues before turning to a lawyer.
- Download and install build dependencies
- JDK 1.8 (or any newer version)
- Maven
- Build a runnable self-contained jar file:
> mvn clean package
The output will be at target/irb-1.0.3.jar
.
You can include this project as a dependency in Maven:
<dependency>
<groupId>de.labathome</groupId>
<artifactId>irb</artifactId>
<version>1.0.3</version>
</dependency>
Run-time dependencies for use with JyPlot:
- Python3 packages
- matplotlib
- Requires libjpeg and zlib development headers for pillow
- numpy
- matplotlib
Execute the jar with the *.irb
file as first command line argument:
> java -jar irb-1.0.3.jar AB020300.irb
It can also be run in headless mode, where no attempt will be made to plot the image using JyPlot:
> java -jar irb-1.0.3.jar --headless AB020300.irb
This will generate two text output files and a direct PNG equivalent of the data:
AB020300.irb.img_0.dat
contains the raw image data in degree Celsius as a two-dimensional matrix. Each line in the file contains the temperatures for each pixel of the corresponding line of the image. The first line corresponds to the top of the image for easy plotting with e.g. Gnuplot:plot 'AB020300.irb.img_0.dat' matrix w image
AB020300.irb.meta_0.json
contains the meta-data of the image in the JSON format.AB020300.irb.img_0.png
contains a direct PNG export of the image data with the temperature in degree Celsius mapped to ajet
-like colorbar.
If not run in headless mode, a direct plot of the image is tried using JyPlot.
This requires to have a Python installation with matplotlib
and numpy
on your $PATH
.
A temporary Python script file is created in a folder PythonScript
in your home directory.
This will be executed by the default python
command.
If JyPlot cannot find your python
installation, it will print a corresponding stack trace of error messages.
You can fix this by telling JyPlot about your Python installation by creating a text file
~/PythonScript/PYTHON_PATH.txt
which contains the absolute path to your Python executable
(python
on Linux and Mac, python.exe
on Windows).
The text output files should nevertheless get created.
SPDX-License-Identifier: Apache-2.0