Code Monkey home page Code Monkey logo

3-ogc's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

3-ogc's Issues

Script to create PSDs

Hi again!

I see that you have a description in text on how to create the PSDs used for analysis:

We use 512 seconds of data around each candidate (with the exception of GW190725 174728) to
estimate the local power spectral density (PSD) using
a version of Welch’s method (Brown 2004). The data is
divided into overlapping segments (8s duration for BBH;
16s for BNS) which are Hann-windowed. The final PSD
estimate is the result of taking the mean of the median
average of the odd and even segments’ power spectrum.

Im happy to follow this and re-create the PSDs. However, I was wondering -- would it be possible to upload a script to create a PSD from the ini for an event?

Is it something like the following:

from pycbc.psd import welch, interpolate
ts = Merger("EVENT_NAME").strain(ifo)
psd = interpolate(welch(ts), 1.0 / ts.duration)

Alternatively, would it be possible to share the PSD files that were used for GW151226's analysis?

Thanks! :)

Typo in readme example

I think there might be a typo in the readme. Instead of the following,

import h5py

catalog_high = h5py.File('./3-OGC_low.hdf', 'r')

# Selecting parts of the catalog
region = candidates['mass1'][:] + candidates['mass2'][:] < 4
lowmass_snr = all_candidates['H1_snr'][:][region]

I think that it might be:

import h5py

candidates = h5py.File('./3-OGC_low.hdf', 'r')

# Selecting parts of the catalog
region = candidates['mass1'][:] + candidates['mass2'][:] < 4
lowmass_snr = candidates['H1_snr'][:][region]

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.