ezgetopt

FORTRAN

integer ier, ezgetopt
ier = ezgetopt(option, value)
character*(*) option, value
C
int c_ezsetopt(char *option, char *value)

Routine description

ezgetopt allows the user to interrogate the current value of options associated with the ezscint package. The list of available options and values is described below.

 

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 (DEFAULT)

 

‘MAXIMUM’

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

The value returned is in the same language than "option". If the option is given in French, the return value will be in French.


Sample FORTRAN code :

The following code interrogates the ezscint package about the interpolation degree being used and what is done with the points outside the source grid.

character*32 interopt, xtrapopt
real xtrapval
ier = ezgetopt('INTERP_DEGREE', interopt)
ier = ezgetopt('EXTRAP_DEGREE', xtrapopt)
if (xtrapopt.eq.'VALUE') then
   ier = ezgetval('EXTRAP_VALUE', xtrapval)
endif

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