This GIMP plug-in complements the weaHTR ML workflow for automated climate data recovery. When creating a table template the plug-in allows you to export the boundaries of rows and columns, or single regions of interest.
Download the plugin using the following link, and unzip the downloaded file. Alternatively, clone the repository with git:
git clone https://github.com/khufkens/weahtr_guides.git
The data should clone into a directory called weathr_guides
, if this is not the case rename it to weahtr_guides
. Next, make the python script in this directory executable by setting the correct permissions. In Unix based systems this can be done using the following command line code:
chmod +x weahtr_guides.py
Right clicking on the file to access the file options will generally give access to similar setting across various operating systems.
For this plug-in to work you will need a recent GIMP version 3. To activate the plug-in, open the GIMP preferences using the Edit - Preferences
menu and enter the Folders - Plug-ins
section. Add the directory where the weahtr_guides
folder is located (not the application directory itself) to the list of directories where plugins reside (you can copy the folder to a dedicated GIMP plugin folder) and restart GIMP.
Note
You might need the GIMP flatpak install on linux as .deb or other package manager based installs might not include the proper python environment for the plugin to run.
Create guides in GIMP by clicking and holding in the side or top margins (rulers on the side), and dragging the cursor into an open image.
The guide will show up as a coloured line. Releasing your mouse button will drop the guide in place. You can undo mistakes using CTRL-z
, or clearing the whole image of guides using Image - Guides - Remove all Guides
.
To save the guides go to Image - Guides - weahtr Save guides ...
and select an output directory and manually enter a new filename if desired. Click OK
to save the data to file. The output data is a JSON file with the source filename and pixel coordinates of rows and columns.