https://github.com/jamiejquinn/sdf-tool
Tool for manipulating SDF files
https://github.com/jamiejquinn/sdf-tool
fortran gplv3 hpc sdf
Last synced: 2 months ago
JSON representation
Tool for manipulating SDF files
- Host: GitHub
- URL: https://github.com/jamiejquinn/sdf-tool
- Owner: JamieJQuinn
- License: gpl-3.0
- Created: 2018-10-30T12:23:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T11:59:16.000Z (over 4 years ago)
- Last Synced: 2024-06-11T19:28:25.638Z (about 1 year ago)
- Topics: fortran, gplv3, hpc, sdf
- Language: Fortran
- Size: 326 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# SDF-tool
## What is SDF?
SDF (self-describing format) is a file format developed at Warwick designed to contain simulation data.
## What is SDF-tool?
`sdf-tool` is a simple tool for manipulating SDF files, particularly those outputted from the Lare3D code.
## Features
- [x] Reading/writing of SDF files
- [x] Removing whole variables
- [x] Taking 3D slices
- [ ] Calculating new variables## Prerequisites
In order to compile and run `sdf-tool` you must have a local version of MPI linked to gfortran. I haven't yet tested intel's fortran compilers + MPI. The use of MPI is integral to the SDF library.
## Installation
Installing should be as simple as cloning the git repository:
```
git clone --recursive https://github.com/JamieJQuinn/sdf-tool.git
```
The use of recursive should automatically clone the SDF library.A simple `make` will compile the tool and it can be run with `bin/sdf-tool`.
## Usage
*Input/Output*
`sdf-tool -i in.sdf -o out.sdf`
*Specifying variables*
Variables are selected by their block names
`sdf-tool --output-variables Energy Vx`
*Slicing*
The slice is inclusive and in index space, so `1 100` slices from index number 1 to 100, inclusive.
`sdf-tool --slice 1 100 1 100 25 75`