-
Build Docker Image
- cd into root of repository
- Build container
docker build -t flows2fim:latest --target prod .
-
Verify
- Run
docker run --rm -it flows2fim:latest --versionto confirm everything works.
- Run
-
Install GDAL
- The easiest way is via OSGeo4W
-
Setup flows2fim
- Go to the Releases page and download the
flows2fim-windows-amd64.zip - Unzip and copy
flows2fim.exeintoC:\OSGeo4W\bin
- Go to the Releases page and download the
-
(Optional) Enable
gdal_ls- This step is only needed if you plan to use the
flows2fim validatecommand with a FIM library on cloud storage.
Your actual paths might be slightly different based on the version of python
- Copy
C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo_utils\gdal_ls.pytoC:\OSGeo4W\apps\Python312\Scripts. - In
C:\OSGeo4W\apps\Python312\Scripts, make a copy ofgdal_merge.bat→gdal_ls.bat. - Open
gdal_ls.batand replace all occurrences ofgdal_merge.pywithgdal_ls.py.
- This step is only needed if you plan to use the
-
Verify
- Open the OSGeo4W Shell.
- Run
flows2fim --versionto confirm everything works. - Run
gdalinfo --versionto confirm everything works. - (Optional) Run
gdal_ls --versionif you set it up.
-
Install GDAL
For Debian based distros:
sudo apt-get update && sudo apt-get install -y gdal-binThere are various ways to install GDAL. See GDAL documentation for more details. If you are struggling with GDAL installation, consider using Docker.
-
Setup flows2fim
- Option 1 - Download
- Go to the Releases page and download the
flows2fim-linux-<your-cpu-arch>.tar.gz - Extract it and move to a directory in
$PATH(e.g.,/usr/local/bin) and make it executable:tar -xvf flows2fim-linux-amd64.tar.gz sudo mv flows2fim /usr/local/bin/ sudo chmod +x /usr/local/bin/flows2fim
- Go to the Releases page and download the
- Option 2 - Build from source
- cd into root of repository
- Build container
docker compose up -d
- Get flows2fim CONTAINER_ID
CONTAINER_ID=$(docker ps -q | head -n 1)
- Issue build script
docker exec $CONTAINER_ID /bin/bash -c "./scripts/build-linux-amd64.sh"
- Shutdown container
docker compose down
- Move executable to
$PATHsudo mv builds/linux-amd64/flows2fim /usr/local/bin/sudo chmod +x /usr/local/bin/flows2fim
- Option 1 - Download
-
(Optional) Enable
gdal_ls- Only required if using
flows2fim validatewith FIM libraries stored on cloud. - On Ubuntu/Debian systems:
sudo cp /usr/lib/python3/dist-packages/osgeo_utils/samples/gdal_ls.py /usr/local/bin sudo chmod +x /usr/local/bin/gdal_ls.py
- Only required if using
-
Verify
- Run
flows2fim --versionto confirm everything works. - Run
gdalinfo --versionto confirm everything works. - (Optional) Run
gdal_ls.py --versionif you set it up.
- Run
-
Install GDAL
The easiest way to install GDAL on a Mac is through homebrew. If homebrew is not on your Mac, install it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Verify homebrew installation:
brew --version
Install GDAL:
brew install gdalVerify:
gdalinfo --versionThere are various ways to install GDAL. See GDAL documentation for more details. If you are struggling with GDAL installation, consider using Docker.
-
Setup flows2fim
-
Option 1 - Download
- Go to the Releases page and download (double click)
flows2fim-darwin-arm64.tar.gz - Open the Mac Finder application and navigate to your
Downloadsfolder. - Right click > Open the
flows2fim-darwin-arm64.tar.gzfile. This should avoid errors arising from Apple security settings. - In a terminal window, move the flows2fim executable to a directory in your
$PATH(e.g.,/usr/local/bin), and add execute permissions:cd ~/Downloads sudo mv flows2fim /usr/local/bin/ sudo chmod a+x /usr/local/bin/flows2fim
- Verify
flows2fimis executable and in your$PATH.flows2fim --version
- If the error
"flows2fim" can't be opened because Apple cannot check it for malicious software.or similar comes up, you may temporarily override your Mac's security settings with the following command:xattr -d com.apple.quarantine /usr/local/bin/flows2fim
- Go to the Releases page and download (double click)
-
Option 2 - Build from source
- cd into root of repository
- Build container
docker compose up -d
- Get flows2fim CONTAINER_ID
CONTAINER_ID=$(docker ps -q | head -n 1)
- Issue build script
docker exec $CONTAINER_ID /bin/bash -c "./scripts/build-darwin-arm64.sh"
- Shutdown container
docker compose down
- Move executable to
$PATHsudo mv builds/darwin-arm64/flows2fim /usr/local/bin/sudo chmod a+x /usr/local/bin/flows2fim
-
-
gdal_lsnot supported on MacOS currently (gdal_ls is not included in gdal homebrew installation) -
Verify
- Run
flows2fim --versionto confirm everything works.
- Run