Versions Compared

Key

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

...

To obtain all the metadata for all locations and their attributes, the locations element in the JSON response will need to be parsed. Running the python script will produce two csv files. Part : locations.csv and attributes.csv. 


Note that the parsing of the main location information interprets all elements as the 'type' text. Part of an example output is presented below. 

locations.csv

locationIdshortNamelatlonxyz
locALocation A56.677-93.641-93.64156.6770
locBLocation B49.861-99.962-99.96249.8610
locCLocation C51.565-101.917-101.91751.5650
locDLocation D49.868-97.405-97.40549.8680

...

Note that the parsing of the main location information interprets all elements as attributes takes the 'type' text. (text, number, boolean) into account

attributes.csv

locationIdoperating_agencyprovincehydro_stationQ_softmaxQ_hardmaxQ_softmin
locAAgency X

AA

Y8010000.5
locBAgency YBBY


locCAgency XAAY


locDAgency XMMY

...