{
  "id": 6838,
  "title": "Sept 10 and July 4th weather files with 1 hour data?",
  "url": "/competitions/flight2-main/discussion/6838",
  "author_name": "",
  "post_date": "2014-01-15T15:17:05.577Z",
  "votes": null,
  "comment_count": 3,
  "views": 2399,
  "content": "<p>Hi admins,</p>\n<p>Is it possible to get weather files for Sept 10th and July 4th with only 1 hour weather data, in the same format as we already got for the LB (and will get for the validation)? I managed to make them myself but somehow they behave different and cause my agent to crash.&nbsp;</p>\n<p>Thanks in advance.</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>",
  "messages": [
    {
      "id": "37405",
      "postDate": "01/15/2014 15:17:05",
      "content": "<p>Hi admins,</p>\n<p>Is it possible to get weather files for Sept 10th and July 4th with only 1 hour weather data, in the same format as we already got for the LB (and will get for the validation)? I managed to make them myself but somehow they behave different and cause my agent to crash.&nbsp;</p>\n<p>Thanks in advance.</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "37445",
      "postDate": "01/16/2014 08:11:08",
      "content": "<p>Couldn't you just extract the first snapshot with</p>\n<p><code>&nbsp;head -13534 weather_20130910_1803.txt &gt; output.txt<br></code></p>\n<p>and then change ElementCount from 8 to 1 in the first line of output.txt?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "37509",
      "postDate": "01/17/2014 13:14:23",
      "content": "<p>Hi Anil,</p>\n<p>Thanks for the reaction. I open the .gz files from python and modify them..this works OK.</p>\n<p>But if I create a .gz file from python from the 10sept weather this doesn't seem to work. (The file behaves different when copied) Probably a bug in my software or maybe some difference in the zip. </p>\n<p>But since admins should have some routine or procedure to create the .gz weather files (with one hour data) I hoped they could do this for me (and others).</p>\n<p>&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "37535",
      "postDate": "01/17/2014 20:18:59",
      "content": "<p>If it is due to the simulator not liking your zip format, you can hack it to read unzipped files.</p>\n<p>Replace the following lines in loadWeatherFromStream:</p>\n<p>use compressedStream = new System.IO.Compression.GZipStream(stream, System.IO.Compression.CompressionMode.Decompress);&nbsp;&nbsp;&nbsp;</p>\n<p>let reader = new StreamReader(compressedStream)</p>\n<p>with this:</p>\n<p>let reader = new StreamReader(stream)</p>\n<p>Now the simulator can read weather files in text format.</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 37445,
      "author_name": "anlthms",
      "author_url": "",
      "post_date": "01/16/2014 08:11:08",
      "content": "<p>Couldn't you just extract the first snapshot with</p>\n<p><code>&nbsp;head -13534 weather_20130910_1803.txt &gt; output.txt<br></code></p>\n<p>and then change ElementCount from 8 to 1 in the first line of output.txt?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 37509,
      "author_name": "julesvanligtenberg",
      "author_url": "",
      "post_date": "01/17/2014 13:14:23",
      "content": "<p>Hi Anil,</p>\n<p>Thanks for the reaction. I open the .gz files from python and modify them..this works OK.</p>\n<p>But if I create a .gz file from python from the 10sept weather this doesn't seem to work. (The file behaves different when copied) Probably a bug in my software or maybe some difference in the zip. </p>\n<p>But since admins should have some routine or procedure to create the .gz weather files (with one hour data) I hoped they could do this for me (and others).</p>\n<p>&nbsp;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 37535,
      "author_name": "anlthms",
      "author_url": "",
      "post_date": "01/17/2014 20:18:59",
      "content": "<p>If it is due to the simulator not liking your zip format, you can hack it to read unzipped files.</p>\n<p>Replace the following lines in loadWeatherFromStream:</p>\n<p>use compressedStream = new System.IO.Compression.GZipStream(stream, System.IO.Compression.CompressionMode.Decompress);&nbsp;&nbsp;&nbsp;</p>\n<p>let reader = new StreamReader(compressedStream)</p>\n<p>with this:</p>\n<p>let reader = new StreamReader(stream)</p>\n<p>Now the simulator can read weather files in text format.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "37405": "",
    "37445": "",
    "37509": "",
    "37535": ""
  },
  "source": "meta"
}