Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lvcnrpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
waveforms
lvcnrpy
Commits
5e1cb51c
Commit
5e1cb51c
authored
8 years ago
by
Edward Fauchon-Jones
Browse files
Options
Downloads
Patches
Plain Diff
Add README inc. install and usage instructions
parent
9a177fb8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+80
-0
80 additions, 0 deletions
README.md
with
80 additions
and
0 deletions
README.md
0 → 100644
+
80
−
0
View file @
5e1cb51c
# lvcnrpy
`lvcnrpy`
is a simple Python interface to the LVC-NR Waveform Repository.
## Installation
1.
**Install the package locally**
The package can be installed directly from
[
git.ligo.org
](
https://git.ligo.org/
)
using the following snippet. Use your
LIGO username
`albert.einstein`
and password when asked for
authorisation
```
bash
$
pip
install
git+https://git.ligo.org/edward.fauchon-jones/lvcnrpy.git#egg
=
lvcnrpy
```
2.
**Define LVC-NR Waveform Repository environment variable**
Define the environment variable
`LVCNR_DATADIR`
as the path to your local
clone of the LVC-NR Waveform Repository. If you are using a virtual
environment this can be defined in your activation script. For a bash shell
this could be done with
```
bash
export
LVCNR_DATADIR
=
<path-to-lvc-nr-repo>
```
## Usage
### Checking HDF5 NR files against format specifications
A working draft of the possible formats HDF5 NR files may be committed in to the
LVC-NR Waveform Repository is avilable at
[
Numerical Relativity Waveforms
](
https://www.lsc-group.phys.uwm.edu/ligovirgo/cbcnote/Waveforms/NR#BBH_Waveform_Catalog:_Metadata
)
.
To check a HDF5 NR file against one of the format levels use the included
program
`lvcnrcheck`
. It is installed as a global program when this package is
installed.
-
**`lvcnrcheck` usage**
```
bash
lvcnrcheck
[
-h
]
[
-c
]
[
-f
{
1,2,3
}]
file
Check hdf5 NR data meet LVCNR format specifications
positional arguments:
file name of file to check
optional arguments:
-h
,
--help
show this
help
message and
exit
-c
,
--col
use coloured output
(
default: False
)
-f
{
1,2,3
}
,
--format
{
1,2,3
}
format level to use
(
default: 1
)
```
-
**`lvcnrcheck` example**
For basic usage simple pass the file name to
`lvcnrcheck`
```
bash
$
cd
<path-to-lvc-nr-repo>
$
lvcnrcheck ./Cardiff-UIB/h5/q1.2_base_96.h5
```
To check against a specific format level use the
`-f`
option
```
bash
$
cd
<path-to-lvc-nr-repo>
$
lvcnrcheck
-f
2 ./Cardiff-UIB/h5/q1.2_base_96.h5
```
To add a coloured output use the
`-c`
flag
To check against a specific format level use the
`-f`
option
```
bash
$
cd
<path-to-lvc-nr-repo>
$
lvcnrcheck
-c
./Cardiff-UIB/h5/q1.2_base_96.h5
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment