functions in newfits.i -
|
_fPadFits
|
_fPadFits(stream,address)
This function pads with blanks up to the next multiple of 2880 and
update address.
| |
| SEE ALSO: | ||
|
_fRescale
|
rescaled_data= _fRescale(data, bitpix, bscale, bzero, data_min=, data_max=)
Linearly rescale the values of input array DATA to fit into
integers with BITPIX bits per value (i.e., `char', `short' or
`long' for BITPIX being 8, 16 and 32 respectively).
Arguments BSCALE and BZERO are optional and purely outputs passed
by address. Their value will be set so that:
DATA(i) = BZERO + BSCALE * RESCALED_DATA(i)
where the equality may not be exact due to rounding errors. The
difference is however the smallest possible, i.e., less than
BSCALE / 2.
Keywords DATA_MIN and DATA_MAX may be used to supply the maximum
and minimum data values or to set brightness cutoffs.
Originally from fitsRescale in the Yorick fits.i distrib.
| |
| SEE ALSO: | ||
|
fitsDeleteCard
|
fitsDeleteCard(hdr,keyword)
Delete the card label "keyword" in hdr
Returns hdr
| |
| SEE ALSO: | fitsAddCard | |
|
fitsHdrValue
|
val = fitsHdrValue(hdr,keyword,&position,default=)
Returns the value associated with a keyword in a fits header.
Returns "Not a Keyword" if keyword is not found and no default
was given.
Mandatory parameters:
hdr: (input) header, as returned by fitsRead (string array)
keyword: (input) keyword name, string
Optional parameters:
position: (output) position of keyword in header
Optional keyword:
default: (input) default return value if keyword is not found
in the header.
| |
| SEE ALSO: | fitsRead, _fGetKeyword, _fGetValue | |
|
fitsHdrValue2
|
val = fitsHdrValue(hdr,keyword,&position,default=)
Returns the value associated with a keyword in a fits header.
Returns "Not a Keyword" if keyword is not found and no default
was given.
Mandatory parameters:
hdr: (input) header, as returned by fitsRead (string array)
keyword: (input) keyword name, string
Optional parameters:
position: (output) position of keyword in header
Optional keyword:
default: (input) default return value if keyword is not found
in the header.
| |
| SEE ALSO: |
fitsRead,
_fGetKeyword,
_fGetValue,
This,
was, an, attempt, to, find, a, faster, procedure, that, the, following, function, but, it's, slightly, slower, by, much |
|
|
is_set
|
NT is_set(arg)
Returns 0 if element is void or equal to zero, 1 otherwise
F.Rigaut 2002/06/03
| |
| SEE ALSO: | is_void | |