Overview

Imports time series data from files in text format. This format is specific for water flow at 3 Quebec locations.
To use this import in FEWS configuration: <importType>HydroQuebecPRN</importType>

Format

All times are in EST

The first line contains the start date at the end of the line in format yyyyMMdd which will be read.

The next 7 lines are skipped

Then each line has 5 columns:

Column 1: time of values of this line, in hours since the start date.

Column 2: Parameter Q at location Carillon

Column 3: Parameter Q at location Cornwall

Column 4: Parameter Q at location Lac St-Franc

Column 5: Total flow (skipped by import) 

 

The forecast time will be set at 9 hours after the start date. 

Example

Previsions en date du :   20160510

La donnee de la premiere heure est mesuree et les
previsions sont fournies pour les 72 prochaines heures

           Carillon          Beauharnois-Les Cedres
    Hrs  Debit total      Cornwall  Lac St-Franc  Total

      8      3600            8600         131       8731
      9      3600            8600         131       8731
     10      3600            8600         131       8731
     11      3600            8600         131       8731
     12      3600            8600         131       8731
     13      3596            8600         131       8731
     14      3592            8600         130       8730
     15      3588            8600         130       8730
     16      3583            8600         130       8730
     17      3579            8600         130       8730
     18      3575            8600         130       8730
     19      3571            8600         129       8729
     20      3567            8600         129       8729
     21      3563            8600         129       8729
     22      3558            8600         128       8728
     23      3554            8600         128       8728
     24      3550            8600         128       8728
     25      3546            8600         128       8728

Java source code

HydroQuebecPRNTimeSeriesParser.java