40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  SUS Lab eLog  Not logged in ELOG logo
Message ID: 1820     Entry time: Fri Aug 30 14:45:42 2019
Author: rana 
Type: Computing 
Category: DAQ 
Subject: Download data with pyNDS 

I'm attaching a script to download data from the LIGO sites with python.

I recommend using it in your anaconda3 ENV:

conda install -c conda-forge nds2-client python-nds2-client

and then before running the script you have to initialize your Kerberos token:

kinit miley.cyrus@LIGO.ORG

then you run the script:

python getData.py --ifo=L1 --fs=1024

as usual, run with the -O or -OO flags to silence the debug messages.

Attachment 1: ChanList_darm.txt  60 Bytes  Uploaded Fri Aug 30 15:46:31 2019  | Hide | Hide all
SUS-ETMY_L2_MASTER_OUT_LL_DQ
SUS-ETMY_L2_NOISEMON_LL_OUT_DQ
Attachment 2: getData.py  3 kB  Uploaded Fri Aug 30 15:58:40 2019  | Hide | Hide all
#!/usr/bin/env python
# this function gets some data (from the 40m) and saves it as
# a .mat file for the matlabs
# Ex. python -O getData.py


import scipy.io as sio
import scipy.signal as sig
from astropy.time import Time
import nds2
... 101 more lines ...
ELOG V3.1.3-