Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-15T21:44:01.000Z (over 2 years ago)
- Last Synced: 2024-10-15T01:25:25.642Z (3 months ago)
- Language: C++
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- 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 likeMinimizeGrid FileName.dat
This will output FileName.dat.minimal, which can then be
reconstituted with something likeReconstituteGrid 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 ReconstituteGridMore details and further options are given by
MinimizeGrid --help
ReconstituteGrid --helpIn 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 enterMinimizeGrid 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.