Scilab Function
Last update : 21/6/2006

TARAGE - Function to apply rating curves and convert water levels or discharge data

Calling Sequence

OUT = TARAGE(CTAB,DATA,[TYPE,ExtrapolInf,ExtrapolSup])

Parameters

Description

This function is designed to convert discharges in water levels and vice versa with a tabulated rating curve.

Examples

    // Rating curve
   CT=[10,0.5;30,10;100,50;200,150];
   // Water level data
   WL=[6;10;14;25;65;170;150;120;100;85;80;70;70;60];
   // Conversion into discharge
   Q=TARAGE(CT,Wl);
   plot2d(WL,Q,style=-9);
   plot2d(CT(:,1),CT(:,2),style=-1);
  

Authors

Julien Lerat CEMAGREF Antony, HBAN Unit, julien.lerat@cemagref.fr