LEDAS  
Leicester Database and Archive Service
 
Mission
    Description
Products
    Databases
Raw Data
    Archive
Analysis Software
    Archive
Ginga Information
Ginga Gallery
Related Sites
Databases
GINGALAC
GINGABGD
GINGAFRF
GINGALOG
GINGAMODE
GINGARAW
View Ginga DBs
Line
Footer
e-mail

Operations on Objects

The following commands replace all the elements of a _REAL object by the specified function of the elements.

qcl>SQUARE HDF_OBJECT
qcl>SQRT   HDF_OBJECT
qcl>ABS    HDF_OBJECT
qcl>LOG    HDF_OBJECT
qcl>EXP    HDF_OBJECT
qcl>SIN    HDF_OBJECT
qcl>ASIN   HDF_OBJECT
qcl>COS    HDF_OBJECT
qcl>ACOS   HDF_OBJECT
qcl>TAN    HDF_OBJECT
qcl>ATAN   HDF_OBJECT

They also work on data type _INTEGER but of course rounding will occur where required. A slice of an object can be specified in these commands.

There are a few commands that operate on the elements of an object using a specified constant.

qcl>MASK HDF_OBJECT,HDF_CONSTANT

Sets the elements equal to the constant.

qcl>SCALE HDF_OBJECT,HDF_CONSTANT

Multiplies the elements by the constant.

qcl>OFFSET HDF_OBJECT,HDF_CONSTANT

Adds the specified constant to the elements of the object.

qcl>RANDOM HDF_OBJECT,HDF_CONSTANT

Sets the elements to a sequence of random numbers in the range 0-1 using the constant (integer) as a seed.

qcl>MOD HDF_OBJECT,HDF_CONSTANT

Sets each element equal to the value modulo the constant.

Two commands are available which require two constant values to be specified.

qcl>CLIP HDF_OBJECT,HDF_C1,HDF_C2

This clips the element values to lie in the range HDF_C1 - HDF_C2.

qcl>RAMP HDF_OBJECT,HDF_C1,HDF_C2

This sets the jth element to the ramp function specified by C1+(J-1)*C2.


[] [Previous: Deleting Objects] [Back to Command Descriptions]
 
HOME
SEARCH
SERVICES INFO SOFTWARE ViZieR BLASTA DSS
ARCHIVES ASCA CHANDRA GINGA ROSAT ARNIE