Giter Club home page Giter Club logo

odw-2019's Introduction

GW Open Data Workshop #2: Hands-on exercises

Material to support the GW Open Data Workshop #2, April 8-10, 2019

Software setup

Instructions for accessing the required software are available here

Hands-on Session Program

Day 1 hands-on session

Day 1 tutorials

Topics:

  • Discover, download, and read data
  • FFTs, PSDs, and whitening
  • Working with segments lists and Timelines
  • Plot spectrograms to identify glitches, signals, and hardware injections

Day 2 hands-on session

Day 2 tutorials

Topics:

  • GW signals from compact object mergers
  • Matched filtering to identify compact object mergers
  • Working with compact object merger parameters and waveforms
  • Working with skymaps to identify likely source locations

Day 3

Challenge

odw-2019's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

odw-2019's Issues

Problem running a cell

I am having a problem while running this cell:
''''from pycbc.waveform import get_td_waveform

apx = 'IMRPhenomD'

hp1, _ = get_td_waveform(approximant=apx,
mass1=10,
mass2=10,
delta_t=1.0/sample_rate,
f_lower=25)

The amplitude of gravitational-wave signals is normally of order 1E-20. To demonstrate our method

on white noise with amplitude O(1) we normalize our signal so the cross-correlation of the signal with

itself will give a value of 1. In this case we can interpret the cross-correlation of the signal with white

noise as a signal-to-noise ratio.

hp1 = hp1 / max(numpy.correlate(hp1,hp1, mode='full'))**0.5

pylab.figure()
pylab.title("The waveform hp1")
pylab.plot(hp1.sample_times, hp1)
pylab.xlabel('Time (s)')
pylab.ylabel('Normalized amplitude')

waveform_start = numpy.random.randint(0, len(data) - len(hp1))
data[waveform_start:waveform_start+len(hp1)] += 10 * hp1.numpy()

pylab.figure()
pylab.title("Looks like random noise, right?")
pylab.plot(hp1.sample_times, data[waveform_start:waveform_start+len(hp1)])
pylab.xlabel('Time (s)')
pylab.ylabel('Normalized amplitude')

pylab.figure()
pylab.title("Signal in the data")
pylab.plot(hp1.sample_times, data[waveform_start:waveform_start+len(hp1)])
pylab.plot(hp1.sample_times, 10 * hp1)
pylab.xlabel('Time (s)')
pylab.ylabel('Normalized amplitude') ''''

The error is this one: TypeError: slice indices must be integers or None or have an index method

I have also tired to run the "new version" - that I took from here: https://github.com/gw-odw/odw-2019/blob/38c7bc75a8aca9117471ccc7e373fdc201a7e89a/Day_2/Tuto_2.1_Matched_filtering_introduction.ipynb

The strange thing is, if I change the value of sample_rate for 4096 (as indicated in 2018's version) it works.
After making it work using the new value for sample_rate, I get another error in another cell - # 11 - Generate a PSD for whitening the data.
In this cell the error is this one: ValueError: different delta_f

Unable to import gwpy in notebooks of google colab

Hi, I'm trying to run the notebook:

Tuto 1.2 Open Data access with GWpy.ipynb

On the google colab platform. However, when importing the gwpy module I get the error:


/usr/local/lib/python3.6/dist-packages/gwpy/plot/rc.py in ()
77 'text.usetex': True,
78 'text.latex.preamble': (
---> 79 rcParams.get('text.latex.preamble', []) + tex.MACROS),
80 # use bigger font for labels (since the font is good)
81 'font.family': ['serif'],

TypeError: must be str, not list

how can I overcome this?

Cheers,
Víctor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.