ezsetopt

FORTRAN

integer ier, ezsetopt
ier = ezsetopt(option, value)
character*(*) option, value

C

int c_ezsetopt(char *option, char *value)

 

Routine description

ezsetopt allows the user to set some options associated with the ezscint package. The list of available options and values is described below. The options are values are case insensitive (they are converted to lower case before being analysed).

 

Description of parameters

option

A string containing one of the supported options

value

A string containing one of the supported values associated with option

List of supported options and values

Option

   Value

Comment

�INTERP_DEGREE�,
'DEGRE_INTERP'

sets the degree of the polynomial used for the interpolation

�NEAREST�
'VOISIN'

nearest neighbor interpolation (degree 0)

 

�LINEAR�,
'LINEAIR',
'LINEAIRE'

bi-linear interpolation (degree 1)

 

'CUBIC�,
'CUBIQUE'

bi-cubic interpolation (degree 3 - DEFAULT)

�EXTRAP_DEGREE�,
'DEGRE_EXTRAP'

sets the action to do with the values that lie outside the source grid

�NEUTRAL',
'NEUTRE'

leave the results as they are and live with the consequences

 

�MAXIMUM� (DEFAULT)

outside values are set to the maximum value of the input field + 5 % of its variation,

ie: maximum + (maximum - minimum) * 0.05

 

�MINIMUM�

outside values are set to the minimum value of the input field - 5 % of its variation,

ie: minimum - (maximum - minimum) * 0.05

 

�VALUE�,
'VALEUR'

outside values are set to a numerical value, defined by a call to the routine ezsetval. ezsetval must be called before ezsetopt in that case.

 

'ABORT'

USER PROGRAM REQUESTED ABORT

 'VERBOSE'

controls the display of information messages. Used mostly for internal debugging.

'YES',
'OUI'

Activates the display of debugging information

 

'NO',
'NON'

Deactivates the display of debugging information

  

Sample FORTRAN code :

The following code sets the interpolation degree to linear and sets the value of points in the region of extrapolation to 0.0

ier = ezsetopt('INTERP_DEGREE', 'LINEAR')
ier = ezsetval('EXTRAP_VALUE', 0.0)
ier = ezsetopt('EXTRAP_DEGREE', 'VALUE')

ezsetval has to be called before ezsetopt when 'extrap_degree' is set to 'value'

Go to the list of functions, or the general index.