{
  "id": 261966,
  "title": "Questions about the .npy data files and notch filters",
  "url": "/competitions/g2net-gravitational-wave-detection/discussion/261966",
  "author_name": "",
  "post_date": "2021-08-05T12:35:51.035180100Z",
  "votes": 3,
  "comment_count": 11,
  "views": 0,
  "content": "<p>Hello,</p>\n<p>Can someone help answer the following questions for me?</p>\n<p>1) The .npy files contain data for the LIGO Hanford, LIGO Livingston, and Virgo detectors. However, it is unclear to me which part of the data belongs to which detector. Let me clarify what I mean using an example.</p>\n<p>When I read the file test/0/0/0/0007eb08fa.npy using the function numpy.load() </p>\n<p><code>data = np.load('./test/0/0/0/0007eb08fa.npy')</code></p>\n<p>I get the following numpy.ndarray</p>\n<pre><code>[[-4.25382702e-21 -4.89490056e-21 -5.62383974e-21 ... -1.53634610e-20\n  -1.56561020e-20 -1.59835683e-20]\n [ 1.45560958e-20  1.44871144e-20  1.38093953e-20 ...  6.62847167e-21\n   6.50760673e-21  5.99178397e-21]\n [-6.08799976e-22 -6.72646229e-22 -3.98347670e-22 ... -1.93071457e-21\n  -1.62630586e-21 -1.98174008e-21]]\n</code></pre>\n<p>This numpy.ndarray contains three elements, where each element is another numpy.ndarray of 4096 elements containing the strain as measured by a given detector. </p>\n<p>I'd like to know which detector corresponds to which element. So far, I assume the first element (containing the first numpy.ndarray of 4096 elements) corresponds to LIGO Hanford, the second element (containing the second numpy.ndarray of 4096 elements) to LIGO Livingston, and the third element (containing the third numpy.ndarray of 4096 elements) to Virgo, but I have not been able to verify that this is correct. Can someone please clarify this?</p>\n<p>2) In this example <a href=\"https://gwpy.github.io/docs/stable/examples/signal/gw150914.html\" target=\"_blank\">https://gwpy.github.io/docs/stable/examples/signal/gw150914.html</a><br>\nfor the LIGO detectors notch filters are created for the first three harmonics of the 60 Hz AC mains power. The LIGO Hanford and Livingston detectors are US based, so 60 Hz seems logical to use. However, Virgo is located in Italy, which has a 50 Hz electricity grid frequency. I will therefore assume 60 Hz is not applicable for the Virgo detector and 50 Hz must be used instead. Is this correct, or am I overlooking something here?</p>\n<p>Cheers,</p>\n<p>Rien.</p>",
  "messages": [
    {
      "id": "1451780",
      "postDate": "08/05/2021 12:35:51",
      "content": "<p>Hello,</p>\n<p>Can someone help answer the following questions for me?</p>\n<p>1) The .npy files contain data for the LIGO Hanford, LIGO Livingston, and Virgo detectors. However, it is unclear to me which part of the data belongs to which detector. Let me clarify what I mean using an example.</p>\n<p>When I read the file test/0/0/0/0007eb08fa.npy using the function numpy.load() </p>\n<p><code>data = np.load('./test/0/0/0/0007eb08fa.npy')</code></p>\n<p>I get the following numpy.ndarray</p>\n<pre><code>[[-4.25382702e-21 -4.89490056e-21 -5.62383974e-21 ... -1.53634610e-20\n  -1.56561020e-20 -1.59835683e-20]\n [ 1.45560958e-20  1.44871144e-20  1.38093953e-20 ...  6.62847167e-21\n   6.50760673e-21  5.99178397e-21]\n [-6.08799976e-22 -6.72646229e-22 -3.98347670e-22 ... -1.93071457e-21\n  -1.62630586e-21 -1.98174008e-21]]\n</code></pre>\n<p>This numpy.ndarray contains three elements, where each element is another numpy.ndarray of 4096 elements containing the strain as measured by a given detector. </p>\n<p>I'd like to know which detector corresponds to which element. So far, I assume the first element (containing the first numpy.ndarray of 4096 elements) corresponds to LIGO Hanford, the second element (containing the second numpy.ndarray of 4096 elements) to LIGO Livingston, and the third element (containing the third numpy.ndarray of 4096 elements) to Virgo, but I have not been able to verify that this is correct. Can someone please clarify this?</p>\n<p>2) In this example <a href=\"https://gwpy.github.io/docs/stable/examples/signal/gw150914.html\" target=\"_blank\">https://gwpy.github.io/docs/stable/examples/signal/gw150914.html</a><br>\nfor the LIGO detectors notch filters are created for the first three harmonics of the 60 Hz AC mains power. The LIGO Hanford and Livingston detectors are US based, so 60 Hz seems logical to use. However, Virgo is located in Italy, which has a 50 Hz electricity grid frequency. I will therefore assume 60 Hz is not applicable for the Virgo detector and 50 Hz must be used instead. Is this correct, or am I overlooking something here?</p>\n<p>Cheers,</p>\n<p>Rien.</p>",
      "rawMarkdown": "Hello,\n\nCan someone help answer the following questions for me?\n\n1) The .npy files contain data for the LIGO Hanford, LIGO Livingston, and Virgo detectors. However, it is unclear to me which part of the data belongs to which detector. Let me clarify what I mean using an example.\n\nWhen I read the file test/0/0/0/0007eb08fa.npy using the function numpy.load() \n\n`data = np.load('./test/0/0/0/0007eb08fa.npy')`\n\nI get the following numpy.ndarray\n\n```\n[[-4.25382702e-21 -4.89490056e-21 -5.62383974e-21 ... -1.53634610e-20\n  -1.56561020e-20 -1.59835683e-20]\n [ 1.45560958e-20  1.44871144e-20  1.38093953e-20 ...  6.62847167e-21\n   6.50760673e-21  5.99178397e-21]\n [-6.08799976e-22 -6.72646229e-22 -3.98347670e-22 ... -1.93071457e-21\n  -1.62630586e-21 -1.98174008e-21]]\n```\n\nThis numpy.ndarray contains three elements, where each element is another numpy.ndarray of 4096 elements containing the strain as measured by a given detector. \n\nI'd like to know which detector corresponds to which element. So far, I assume the first element (containing the first numpy.ndarray of 4096 elements) corresponds to LIGO Hanford, the second element (containing the second numpy.ndarray of 4096 elements) to LIGO Livingston, and the third element (containing the third numpy.ndarray of 4096 elements) to Virgo, but I have not been able to verify that this is correct. Can someone please clarify this?\n\n2) In this example https://gwpy.github.io/docs/stable/examples/signal/gw150914.html\nfor the LIGO detectors notch filters are created for the first three harmonics of the 60 Hz AC mains power. The LIGO Hanford and Livingston detectors are US based, so 60 Hz seems logical to use. However, Virgo is located in Italy, which has a 50 Hz electricity grid frequency. I will therefore assume 60 Hz is not applicable for the Virgo detector and 50 Hz must be used instead. Is this correct, or am I overlooking something here?\n\nCheers,\n\nRien.",
      "votes": null
    },
    {
      "id": "1452674",
      "postDate": "08/05/2021 17:02:21",
      "content": "<p>For <strong>question 1</strong>, I think the arrays are ordered. Even if they aren't, this shouldn't be an issue I guess. If it matters to you, you can try to plot an histogram for each considering they are sorted. If you see some differences, it could mean that they are sorted, otherwise it is impossible to tell.</p>\n<p>For <strong>question 2</strong>, that's a good point indeed. Do you have further details about how the data has been prepared? </p>",
      "rawMarkdown": "For **question 1**, I think the arrays are ordered. Even if they aren't, this shouldn't be an issue I guess. If it matters to you, you can try to plot an histogram for each considering they are sorted. If you see some differences, it could mean that they are sorted, otherwise it is impossible to tell.\n\nFor **question 2**, that's a good point indeed. Do you have further details about how the data has been prepared?",
      "votes": null
    },
    {
      "id": "1452957",
      "postDate": "08/05/2021 18:16:38",
      "content": "<p>data not taken from detectors - they are synthetic (as far as I understand)</p>",
      "rawMarkdown": "data not taken from detectors - they are synthetic (as far as I understand)",
      "votes": null
    },
    {
      "id": "1452967",
      "postDate": "08/05/2021 18:18:53",
      "content": "<p>Data is synthetic.  We can probably assume they did not add the 60 Hz or 50 Hz noise you discuss.</p>",
      "rawMarkdown": "Data is synthetic.  We can probably assume they did not add the 60 Hz or 50 Hz noise you discuss.",
      "votes": null
    },
    {
      "id": "1455001",
      "postDate": "08/06/2021 12:14:47",
      "content": "<p>Thank you all for your answers 😊.</p>\n<p><a href=\"https://www.kaggle.com/yassinealouini\" target=\"_blank\">@yassinealouini</a>, for me questions 1 and 2 are related, because if different frequencies (either 50 Hz or 60 Hz) do need to be applied, then I need to know which data corresponds to which detector as well, so I can use the appropriate frequency for each detector (50 Hz for Virgo and 60 for Hanford and Livingston). Therefore I was interested in which data array belongs to which detector.</p>",
      "rawMarkdown": "Thank you all for your answers 😊.\n\n@yassinealouini, for me questions 1 and 2 are related, because if different frequencies (either 50 Hz or 60 Hz) do need to be applied, then I need to know which data corresponds to which detector as well, so I can use the appropriate frequency for each detector (50 Hz for Virgo and 60 for Hanford and Livingston). Therefore I was interested in which data array belongs to which detector.",
      "votes": null
    },
    {
      "id": "1455055",
      "postDate": "08/06/2021 12:35:39",
      "content": "<p>Yes, I get your point. 👌 As mentioned by <a href=\"https://www.kaggle.com/cpmpml\" target=\"_blank\">@cpmpml</a>, since data is synthetic, maybe they didn't bother with these different frequencies.</p>",
      "rawMarkdown": "Yes, I get your point. 👌 As mentioned by @cpmpml, since data is synthetic, maybe they didn't bother with these different frequencies.",
      "votes": null
    },
    {
      "id": "1455296",
      "postDate": "08/06/2021 14:14:46",
      "content": "<p>For question ! first sentence of data description is:</p>\n<blockquote>\n  <p>In this competition you are provided with a training set of time series data containing simulated gravitational wave measurements from a network of 3 gravitational wave interferometers (LIGO Hanford, LIGO Livingston, and Virgo)</p>\n</blockquote>\n<p>I assumed that the order is the same in the files: data[0] is Hanford, etc.</p>",
      "rawMarkdown": "For question ! first sentence of data description is:\n\n> In this competition you are provided with a training set of time series data containing simulated gravitational wave measurements from a network of 3 gravitational wave interferometers (LIGO Hanford, LIGO Livingston, and Virgo)\n\nI assumed that the order is the same in the files: data[0] is Hanford, etc.",
      "votes": null
    },
    {
      "id": "1455441",
      "postDate": "08/06/2021 15:10:32",
      "content": "<p>Indeed, based on that sentence that was my initial assumption as well. I'll stick with that for now then.</p>",
      "rawMarkdown": "Indeed, based on that sentence that was my initial assumption as well. I'll stick with that for now then.",
      "votes": null
    },
    {
      "id": "1455459",
      "postDate": "08/06/2021 15:17:45",
      "content": "<p>Indeed, may be they didn't bother with these frequencies after all then. As an experiment, I think I'm gonna try the analysis both with and without the notch filters and see whether it makes a lot of difference.</p>",
      "rawMarkdown": "Indeed, may be they didn't bother with these frequencies after all then. As an experiment, I think I'm gonna try the analysis both with and without the notch filters and see whether it makes a lot of difference.",
      "votes": null
    },
    {
      "id": "1460518",
      "postDate": "08/08/2021 23:38:31",
      "content": "<p>The data description also says </p>\n<blockquote>\n  <p>Each time series contains either detector noise or detector noise plus a simulated gravitational wave signal. </p>\n</blockquote>\n<p>I read this as the noise is real noise from the detector and it is only the GW signal that is simulated. </p>",
      "rawMarkdown": "The data description also says \n> Each time series contains either detector noise or detector noise plus a simulated gravitational wave signal. \n\nI read this as the noise is real noise from the detector and it is only the GW signal that is simulated.",
      "votes": null
    },
    {
      "id": "1460748",
      "postDate": "08/09/2021 04:08:26",
      "content": "<p>No, noise is simulated <a href=\"https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/255814#1427815\" target=\"_blank\">too</a></p>\n<blockquote>\n  <p>Hi folks, I can confirm the detector noise is simulated rather than real data. Whilst using real data would have presented more of a challenge, we would then be limited to using public data which would present its own series of difficulties.</p>\n</blockquote>",
      "rawMarkdown": "No, noise is simulated [too](https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/255814#1427815)\n\n> Hi folks, I can confirm the detector noise is simulated rather than real data. Whilst using real data would have presented more of a challenge, we would then be limited to using public data which would present its own series of difficulties.",
      "votes": null
    },
    {
      "id": "1561203",
      "postDate": "10/27/2021 12:19:25",
      "content": "<p>Hey All,</p>\n<p>Thank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey <a href=\"https://forms.gle/QP9L16niPexozyhu5\" target=\"_blank\">https://forms.gle/QP9L16niPexozyhu5</a>.</p>\n<p>Thank you all,</p>\n<p>Regards,<br>\nChris</p>",
      "rawMarkdown": "Hey All,\n\nThank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey https://forms.gle/QP9L16niPexozyhu5.\n\nThank you all,\n\nRegards,\nChris",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1452674,
      "author_name": "yassinealouini",
      "author_url": "",
      "post_date": "08/05/2021 17:02:21",
      "content": "<p>For <strong>question 1</strong>, I think the arrays are ordered. Even if they aren't, this shouldn't be an issue I guess. If it matters to you, you can try to plot an histogram for each considering they are sorted. If you see some differences, it could mean that they are sorted, otherwise it is impossible to tell.</p>\n<p>For <strong>question 2</strong>, that's a good point indeed. Do you have further details about how the data has been prepared? </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1452957,
      "author_name": "sapr3s",
      "author_url": "",
      "post_date": "08/05/2021 18:16:38",
      "content": "<p>data not taken from detectors - they are synthetic (as far as I understand)</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1452967,
      "author_name": "cpmpml",
      "author_url": "",
      "post_date": "08/05/2021 18:18:53",
      "content": "<p>Data is synthetic.  We can probably assume they did not add the 60 Hz or 50 Hz noise you discuss.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1455001,
      "author_name": "catharinusdykstra",
      "author_url": "",
      "post_date": "08/06/2021 12:14:47",
      "content": "<p>Thank you all for your answers 😊.</p>\n<p><a href=\"https://www.kaggle.com/yassinealouini\" target=\"_blank\">@yassinealouini</a>, for me questions 1 and 2 are related, because if different frequencies (either 50 Hz or 60 Hz) do need to be applied, then I need to know which data corresponds to which detector as well, so I can use the appropriate frequency for each detector (50 Hz for Virgo and 60 for Hanford and Livingston). Therefore I was interested in which data array belongs to which detector.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1455055,
          "author_name": "yassinealouini",
          "author_url": "",
          "post_date": "08/06/2021 12:35:39",
          "content": "<p>Yes, I get your point. 👌 As mentioned by <a href=\"https://www.kaggle.com/cpmpml\" target=\"_blank\">@cpmpml</a>, since data is synthetic, maybe they didn't bother with these different frequencies.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1455459,
          "author_name": "catharinusdykstra",
          "author_url": "",
          "post_date": "08/06/2021 15:17:45",
          "content": "<p>Indeed, may be they didn't bother with these frequencies after all then. As an experiment, I think I'm gonna try the analysis both with and without the notch filters and see whether it makes a lot of difference.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1455296,
      "author_name": "cpmpml",
      "author_url": "",
      "post_date": "08/06/2021 14:14:46",
      "content": "<p>For question ! first sentence of data description is:</p>\n<blockquote>\n  <p>In this competition you are provided with a training set of time series data containing simulated gravitational wave measurements from a network of 3 gravitational wave interferometers (LIGO Hanford, LIGO Livingston, and Virgo)</p>\n</blockquote>\n<p>I assumed that the order is the same in the files: data[0] is Hanford, etc.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1455441,
          "author_name": "catharinusdykstra",
          "author_url": "",
          "post_date": "08/06/2021 15:10:32",
          "content": "<p>Indeed, based on that sentence that was my initial assumption as well. I'll stick with that for now then.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1460518,
      "author_name": "kevinmcisaac",
      "author_url": "",
      "post_date": "08/08/2021 23:38:31",
      "content": "<p>The data description also says </p>\n<blockquote>\n  <p>Each time series contains either detector noise or detector noise plus a simulated gravitational wave signal. </p>\n</blockquote>\n<p>I read this as the noise is real noise from the detector and it is only the GW signal that is simulated. </p>",
      "votes": null,
      "replies": [
        {
          "id": 1460748,
          "author_name": "sapr3s",
          "author_url": "",
          "post_date": "08/09/2021 04:08:26",
          "content": "<p>No, noise is simulated <a href=\"https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/255814#1427815\" target=\"_blank\">too</a></p>\n<blockquote>\n  <p>Hi folks, I can confirm the detector noise is simulated rather than real data. Whilst using real data would have presented more of a challenge, we would then be limited to using public data which would present its own series of difficulties.</p>\n</blockquote>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1561203,
      "author_name": "zerafachris",
      "author_url": "",
      "post_date": "10/27/2021 12:19:25",
      "content": "<p>Hey All,</p>\n<p>Thank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey <a href=\"https://forms.gle/QP9L16niPexozyhu5\" target=\"_blank\">https://forms.gle/QP9L16niPexozyhu5</a>.</p>\n<p>Thank you all,</p>\n<p>Regards,<br>\nChris</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1451780": "Hello,\n\nCan someone help answer the following questions for me?\n\n1) The .npy files contain data for the LIGO Hanford, LIGO Livingston, and Virgo detectors. However, it is unclear to me which part of the data belongs to which detector. Let me clarify what I mean using an example.\n\nWhen I read the file test/0/0/0/0007eb08fa.npy using the function numpy.load() \n\n`data = np.load('./test/0/0/0/0007eb08fa.npy')`\n\nI get the following numpy.ndarray\n\n```\n[[-4.25382702e-21 -4.89490056e-21 -5.62383974e-21 ... -1.53634610e-20\n  -1.56561020e-20 -1.59835683e-20]\n [ 1.45560958e-20  1.44871144e-20  1.38093953e-20 ...  6.62847167e-21\n   6.50760673e-21  5.99178397e-21]\n [-6.08799976e-22 -6.72646229e-22 -3.98347670e-22 ... -1.93071457e-21\n  -1.62630586e-21 -1.98174008e-21]]\n```\n\nThis numpy.ndarray contains three elements, where each element is another numpy.ndarray of 4096 elements containing the strain as measured by a given detector. \n\nI'd like to know which detector corresponds to which element. So far, I assume the first element (containing the first numpy.ndarray of 4096 elements) corresponds to LIGO Hanford, the second element (containing the second numpy.ndarray of 4096 elements) to LIGO Livingston, and the third element (containing the third numpy.ndarray of 4096 elements) to Virgo, but I have not been able to verify that this is correct. Can someone please clarify this?\n\n2) In this example https://gwpy.github.io/docs/stable/examples/signal/gw150914.html\nfor the LIGO detectors notch filters are created for the first three harmonics of the 60 Hz AC mains power. The LIGO Hanford and Livingston detectors are US based, so 60 Hz seems logical to use. However, Virgo is located in Italy, which has a 50 Hz electricity grid frequency. I will therefore assume 60 Hz is not applicable for the Virgo detector and 50 Hz must be used instead. Is this correct, or am I overlooking something here?\n\nCheers,\n\nRien.",
    "1452674": "For **question 1**, I think the arrays are ordered. Even if they aren't, this shouldn't be an issue I guess. If it matters to you, you can try to plot an histogram for each considering they are sorted. If you see some differences, it could mean that they are sorted, otherwise it is impossible to tell.\n\nFor **question 2**, that's a good point indeed. Do you have further details about how the data has been prepared?",
    "1452957": "data not taken from detectors - they are synthetic (as far as I understand)",
    "1452967": "Data is synthetic.  We can probably assume they did not add the 60 Hz or 50 Hz noise you discuss.",
    "1455001": "Thank you all for your answers 😊.\n\n@yassinealouini, for me questions 1 and 2 are related, because if different frequencies (either 50 Hz or 60 Hz) do need to be applied, then I need to know which data corresponds to which detector as well, so I can use the appropriate frequency for each detector (50 Hz for Virgo and 60 for Hanford and Livingston). Therefore I was interested in which data array belongs to which detector.",
    "1455055": "Yes, I get your point. 👌 As mentioned by @cpmpml, since data is synthetic, maybe they didn't bother with these different frequencies.",
    "1455296": "For question ! first sentence of data description is:\n\n> In this competition you are provided with a training set of time series data containing simulated gravitational wave measurements from a network of 3 gravitational wave interferometers (LIGO Hanford, LIGO Livingston, and Virgo)\n\nI assumed that the order is the same in the files: data[0] is Hanford, etc.",
    "1455441": "Indeed, based on that sentence that was my initial assumption as well. I'll stick with that for now then.",
    "1455459": "Indeed, may be they didn't bother with these frequencies after all then. As an experiment, I think I'm gonna try the analysis both with and without the notch filters and see whether it makes a lot of difference.",
    "1460518": "The data description also says \n> Each time series contains either detector noise or detector noise plus a simulated gravitational wave signal. \n\nI read this as the noise is real noise from the detector and it is only the GW signal that is simulated.",
    "1460748": "No, noise is simulated [too](https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/255814#1427815)\n\n> Hi folks, I can confirm the detector noise is simulated rather than real data. Whilst using real data would have presented more of a challenge, we would then be limited to using public data which would present its own series of difficulties.",
    "1561203": "Hey All,\n\nThank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey https://forms.gle/QP9L16niPexozyhu5.\n\nThank you all,\n\nRegards,\nChris"
  },
  "source": "meta"
}