Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
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
lscsoft
GstLAL
Commits
4c31859a
Commit
4c31859a
authored
11 years ago
by
Chad Hanna
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_fake_frames: move some more documentation into the program
parent
7258fc5f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal/bin/gstlal_fake_frames
+35
-9
35 additions, 9 deletions
gstlal/bin/gstlal_fake_frames
with
35 additions
and
9 deletions
gstlal/bin/gstlal_fake_frames
+
35
−
9
View file @
4c31859a
...
...
@@ -50,7 +50,7 @@ import numpy
# supported by datasource.py. You can additionally whiten the data or apply a
# frequency domain coloring filter. It writes its output to frame files.
#
# ####
G
raph of the
gsreamer
pipeline ####
# ####
Overview g
raph of the pipeline ####
#
# - gray boxes are optional and depend on the command line given
#
...
...
@@ -95,21 +95,44 @@ import numpy
#
# ### Usage cases ###
#
# See datasource.append_options() for additional usage cases for datasource specific command line options
#
# -# Making initial LIGO colored noise, Advanced LIGO noise, etc for different
# instruments. See datasource.append_options() for other choices
#
# $ gstlal_fake_frames --data-source=LIGO --channel-name=H1=FAKE-STRAIN --frame-type=H1_FAKE --gps-start-time=900000000 --gps-end-time=900005000 --output-path=testframes --verbose
#
# $ gstlal_fake_frames --data-source=AdvLIGO --channel-name=L1=FAKE-STRAIN --frame-type=L1_FAKE --gps-start-time=900000000 --gps-end-time=900005000 --output-path=testframes --verbose
#
#
# -# Custom colored noise.
#
# Obviously it is not practical to code up every possible noise curve to
# simulate as a custom data source. However, it is possible to provide your
# own custom noise curve as an ASCII file with frequency in one column and
# strain/Hz in the second. e.g., early advanced ligo noise curve found <a
# href=http://www.lsc-group.phys.uwm.edu/cgit/gstlal/plain/gstlal/share/v1_early_asd.txt>here</a>.
# You will need to convert ASD text files to PSD xml files using
# gstlal_psd_xml_from_asd_txt first.
#
# $ gstlal_fake_frames --data-source=white --color-psd v1psd.xml.gz --channel-name=V1=FAKE-STRAIN --frame-type=V1_FAKE --gps-start-time=900000000 --gps-end-time=900005000 --output-path=testframes --verbose
#
#
# -# Recoloring existing frame data
#
# Recoloring can be thought of as first whitening data and then applying a coloring filter.
# This procedure is very similar to the above except that instead of
# using white noise to drive the fake frame generation, we start with
# real frame data and whiten it. Recoloring can be thought of as first
# whitening data and then applying a coloring filter. You must first
# make a reference PSD of the data with e.g. gstlal_reference_psd. You
# will need to make a frame cache of the frames to recolor.
#
# gstlal_fake_frames --whiten-reference-psd
V1_median
_psd.xml.gz --color-psd recolor_psd.xml.gz --data-source frames --output-path /
home/channa/rctest/T1300121_V1_EARLY_RECOLORED_V2
--output-channel-name h_16384Hz --gps-start-time 966384031 --frame-type T1300121_V1_EARLY_RECOLORED_V2 --gps-end-time 966389031 --frame-duration 16 --frames-per-file 256 --frame-cache frame.
V1.
cache --channel-name=V1=h_16384Hz --verbose
# gstlal_fake_frames --whiten-reference-psd
reference
_psd.xml.gz --color-psd recolor_psd.xml.gz --data-source frames --output-path /
path/to/output
--output-channel-name h_16384Hz --gps-start-time 966384031 --frame-type T1300121_V1_EARLY_RECOLORED_V2 --gps-end-time 966389031 --frame-duration 16 --frames-per-file 256 --frame-cache frame.cache --channel-name=V1=h_16384Hz --verbose
#
# -# Producing colored Gaussian noise
#
#
gstlal_fake_frames --color-psd recolor_psd.xml.gz --data-source white --output-path /home/channa/rctest/V1_T1300121_V1_EARLY_GAUSSIAN --gps-start-time 966384031 --frame-type V1_T1300121_V1_EARLY_GAUSSIAN --gps-end-time 966389031 --frame-duration 16 --frames-per-file 256 --verbose --channel-name=V1=GAUSSIAN
#
-# Creating injections into silence (assumes you have an injection xml file from e.g. lalapps_inspinj)
#
#
-# Creating
injections in
to silence
#
gstlal_fake_frames --data-source silence --output-path /path/to/output --gps-start-time 966384031 --frame-type V1_INJECTIONS --gps-end-time 966389031 --frame-duration 16 --frames-per-file 256 --verbose --channel-name=V1=INJECTIONS --
injections in
jections.xml
#
# gstlal_fake_frames --data-source silence --output-path /home/channa/rctest/V1_INJECTIONS --gps-start-time 966384031 --frame-type V1_INJECTIONS --gps-end-time 966389031 --frame-duration 16 --frames-per-file 256 --verbose --channel-name=V1=INJECTIONS --injections ../BNS-MDC1-FIXEDMASS.xml
#
# -# Other things are certainly possible, please add some!
#
...
...
@@ -129,7 +152,7 @@ import numpy
# + `--frames-per-file` [int]: Set the number of frames per file. Default is 256.
# + `--verbose` []: Be verbose.
#
# ###
Review
# ###
Debug
#
# It is possible to check the pipeline graph by interupting the running process
# with ctrl+c if you have the GST_DEBUG_DUMP_DOT_DIR evironment set. A dot
...
...
@@ -150,6 +173,9 @@ import numpy
#
# dot -Tpng gstlal_fake_frames_PLAYING.dot > test.png
#
# ### Review
#
#
# @cond
##
...
...
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