https://github.com/moble/gridrefinement
Code used by the NINJA collaboration to reduce file sizes for gravitational waveforms
https://github.com/moble/gridrefinement
Last synced: 3 months ago
JSON representation
Code used by the NINJA collaboration to reduce file sizes for gravitational waveforms
- Host: GitHub
- URL: https://github.com/moble/gridrefinement
- Owner: moble
- Created: 2020-01-16T17:02:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-25T17:21:01.000Z (about 1 year ago)
- Last Synced: 2025-10-02T06:41:06.686Z (3 months ago)
- Language: C++
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
These two programs simply translate between a minimal waveform and
a uniform-timestep waveform. Compilation is trivial -- 'make'
should work.
Then, given a single waveform data file (one L,M mode), you can
compress the file with something like
MinimizeGrid FileName.dat
This will output FileName.dat.minimal, which can then be
reconstituted with something like
ReconstituteGrid FileName.dat.minimal
For multiple L,M modes, just use xargs. Maybe
ls *dat | xargs -t -n 1 MinimizeGrid
ls *minimal | xargs -t -n 1 ReconstituteGrid
More details and further options are given by
MinimizeGrid --help
ReconstituteGrid --help
In particular, note that the tolerances can be set on MinimizeGrid.
For example, if you want the reconstituted grid to be within 1e-5
of the original, you can enter
MinimizeGrid FileName.dat 1e-5
You can also enter separate tolerances for the amplitude and phase:
MinimizeGrid FileName.dat 1e-6 1e-7
Here, 1e-6 is the tolerance on the amplitude and 1e-7 is the
tolerance on the phase.