Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

E39_F_Vartdalsfjorden_wind
Json Data:  {
  "time": 1553426576000.0,
  "latitude": 62.22162247,
  "longitude": 5.89998245,
  "WindSpeed": 4.511720180511475,
  "WindGust": 7.96875,
  "WindDirection": 147.3046875,
  "deviceName": "E39_F_Vartdalsfjorden_wind"
}

The catalog

To fetch data, the script uses the system clock and date to dynamically create a URL to the MET-database containing .nc files for all the local buoy stations.  

'http://thredds.met.no/thredds/catalog/obs/buoy-svv-e39/' + year + '/' + month + '/' + 'catalog.html' ```


Below is a sample screenshot of how the catalog looks at the day of writing.


Image Added


Using the python package BeautifulSoup, the URL to each individual file is placed in an array. The array is then passed to