ARR DATAHUB CANNOT BE ACCESSED

From Tuflow
Jump to navigation Jump to search

Purpose

This page has been setup in the event that the ARR datahub cannot be accessed by 'Extract ARR for TUFLOW' tool in QGIS, but can still be accessed manually by the user. This situation may occur during times of heavy automated traffic on the website.

The following error appears in the log.txt when the tool cannot access the ARR website.
Failed to get data from ARR website

Workaround

There is a workaround in place for this situation. It requires the user to manually extract data from the ARR datahub, perform some file manipulation, then save the file in the correct location with the correct name. The tool has been setup to first attempt to access the ARR datahub. If failing this, it will then seek to find an existing copy of the extracted data. The following warning message will appear in the log.txt if this is the case 'WARNING: Could not access ARR website... found and using existing ARR web data'

Steps

The following steps describe how to manually extract data from the ARR datahub and format appropriately for the tool to use. The first 2 steps are not necessary if the user knows the longitude and latitude of the location they would like to extract information for.

  1. Run 'Extract ARR2016 for TUFLOW' tool in QGIS until error - This will let the tool perform the pre-calculations such as extract the catchment area and centroid from the input catchments
  2. Open 'log.txt' located in the tool output folder and extract the longitudinal and latitude values
    Log text coords.PNG
  3. Using an internet browser, navigate to the ARR datahub
  4. Input the coordinates of your catchment
  5. Tick on the 'Select All' box
    ARR datahub input.PNG
  6. Click Submit
  7. Navigate to the bottom of the page and click Download TXT
    ARR datahub downloadtxt.PNG
  8. Create a new .txt file called 'ARR_Web_Data_<catchment name>.txt' and save it in the data folder alongside the existing file 'BOM_raw_web_<catchment name>.html - The catchment name should be consistent with the name used in the QGIS tool. It will be the same as the BOM raw output and also be listed in the log.txt after name=
    ARR Web data.PNG
  9. Copy the text from the 'Download TXT to the newly created 'ARR_web_data' text file
    ARR Web data content.PNG
  10. On the ARR datahub page, navigate to the temporal patterns and click Download (.zip)
    ARR datahub download tp.PNG
  11. Extract the contents of the zip file
  12. Open '_increments.csv' in a text editor
  13. Copy the contents of the csv to the end of 'ARR_Web_data'
    ARR Web data content addtp.PNG
  14. Infront of 'EventID' in the newly copied across data, insert the following text [STARTPATTERNS]
    ARR Web data content addtpHeader.PNG
  15. Save 'ARR_web_data_'
  16. Run the tool in QGIS again - The tool should now first try and access the datahub online. If this fails, it will then look for a pre-existing datahub output with temporal patterns included. The following warning will appear in the log.txt file if this is the case 'WARNING: Could not access ARR website... found and using existing ARR web data'