We now come back to the IFO/Temperature working example. Our interest here is not to add more tools to the data analysis chain that you've been developing but to create a simple toy model that allows you to reproduce the steps done up to now but with synthetic data.

Since we've been through the same steps that you need to apply here in the previous section we will give here the description of the task and let you play with the models.

Build the models

We need three models: one to generate temperature-like data, another modelling the interferometer and a third one acting as the K-to-rad transfer function.

STEP 1: Build a temperature noise PZMODEL with the following properties

Key Value

'name'

'TMP'

'ounits'

'K'

GAIN

10

POLE 1

1e-5

For example, this few lines would do the job

    TMP = pzmodel(10,1e-5,[]);
    TMP.setOunits('K')
    TMP.setName('TMP')

STEP 2: Build a interferometer noise PZMODEL with the following properties

Key Value

'name'

'IFO'

'ounits'

'rad'

GAIN

1e-3

POLE 1

0.4

STEP 3: Build temperature to interferometer coupling PZMODEL with the following properties

Key Value

'name'

'K2RAD'

'iunits'

'K'

'ounits'

'rad'

GAIN

1e-1

POLE 1

5e-4

You can take a look at your models. Since we are interested in the projection of temperature into interferometric data, we can plot the response of TMP*K2RAD agains the IFO

    pl = plist('f1',1e-5,'f2',0.01)
    resp(K2RAD*TMP,IFO,pl)

inteferometer data

Discretize the models

Now discretize the models at fs = 1Hz using the miir constructor. After that you will obtain three digital filters

STEP 4: Discretize the three transfer (TMP,IFO,K2RAD) with the MIIR constructor

For example, the model related to temperature noise would be discretized like this:

    TMPd = miir(TMP,plist('fs',1));

Generate white noise data

We will need two initial white noise time series,WN1 and WN2 , that we will use as a seed to apply our filters and get noise shaped time series

STEP 5: Generate white noise with the AO constructor

You will need the ao constructor for that. You could use the following settings

Key Value

'name'

'WN'

'tsfcn'

'randn(size(t))'

'fs'

1

'nsecs'

250000

Generate the noise data streams

For each noise you will need to apply the filter that you have designed to the white noise data:

STEP 6: Filter white noise WN1 with the IFO filter

For example, following our notation:

    T = filter(WN1,TMPd);

STEP 7: Filter white noise WN2 with the IFO filter

Temperature and interferometric noise are uncorrelated, so we need to use here the second noise time series WN2

STEP 8: Filter white noise WN2 with the TMP and the K2RAD filter

In this case you need to apply both filters in serial, you can do this in one command by using the 'bank' property of the filter method.

Hint: you can input a vector of filters into the filter method and ask it to filter the data in 'parallel' or in 'serial' (the one we are interested here) by doing the following
            b = filter(data,[EMPd K2Rd],plist('bank','serial'));
        

STEP 9: Add the IFO noise to the K2RAD noise

At this point the IFO represents the purely interferometric noise and the K2RAD the contribution to interferometric noise coming from temperature. You need to add both to get the final interferometric data. This only requires to add both AOs

Perform the noise projection

Here we will reproduce the main steps performed in topic 3 analysis: power spectral and transfer function estimation.

STEP 10: Split the data streams

We will do the analysis with data in the region going from 1e5 to 2e5 seconds to avoid initial transients. You must then split your two data streams introducing the following parameters in the split method.

Key Value

'times'

[1e5 2e5]

After the splitting you must have two data streams that plot together should look like the ones below.

Plot both AOs with plist('arrangement','subplot')!

inteferometer data

STEP 11: Compute power spectral estimates for the temperature and interferometric data

Here you need to apply lpsd or psd methods. For example:

    pl = plist('order',1,'scale','ASD')         
    psd_T = lpsd(T,pl2)
    psd_ifo = lpsd(ifo,pl2)

The resulting spectrum should look like this

inteferometer data

STEP 12: Compute transfer function estimate for the temperature and interferometric data

Here you need to apply ltfe or tfe methods. For example:

    pl = plist('order',1)         
    T2ifo = ltfe(T,ifo)

You can now compare the transfer function model with the estimation obtained from the data:

    pl = plist('f1',1e-5,'f2',1)
    iplot(T2ifo(1,2),resp(K2RAD,pl))

inteferometer data

STEP 13: Project the temperature noise

Reproducing the analysis performed in topic 3 you will be able to project the temperature noise contribution into interferometric noise. The result obtained should be the one obtained below.

inteferometer data