public class ResampleFlags extends Object
The flags are
badval
.
Note, this flag cannot be used in conjunction
with the conserveFlux
flag
(an error will be reported if both
flags are specified).
badval
and propagated to the output array(s).
If this flag is not set, all input values are treated literally
and the badval
value is only used for flagging output array
values.
conserveFlux
flag could be used. This causes each output
pixel value to be scaled by the ratio of the output pixel size to
the input pixel size.
tol
parameter
is set to zero (which stops the use of linear approximations), or
if the Mapping is too non-linear to be approximated by a piece-wise
linear transformation. The ratio of output to input pixel size is
evaluated once for each panel of the piece-wise linear approximation to
the Mapping, and is assumed to be constant for all output pixels in the
panel. The scaling factors for adjacent panels will in general
differ slightly, and so the joints between panels may be visible when
viewing the output image at high contrast. If this is a problem,
reduce the value of the
tol
parameter
until the difference between adjacent panels is sufficiently small
to be insignificant.
noBad
flag (an error will be reported if both flags are specified).
Flux conservation can only be approximate when using a resampling
algorithm. For accurate flux conservation use the
rebin
method
instead.
Modifier and Type | Method and Description |
---|---|
boolean |
getConserveFlux()
Returns the value of the conserveFlux flag.
|
int |
getFlagsInt()
Returns the value of this object as an integer, suitable for supplying
to one of the
astResampleX() functions. |
boolean |
getNoBad()
Returns the value of the noBad flag.
|
boolean |
getUseBad()
Returns the value of the usebad flag.
|
void |
setConserveFlux(boolean conserveFlux)
Sets the conserveFlux flag.
|
void |
setNoBad(boolean noBad)
Sets the nobad flag.
|
void |
setUseBad(boolean useBad)
Sets the useBad flag.
|
public void setNoBad(boolean noBad)
public boolean getNoBad()
public void setUseBad(boolean useBad)
public boolean getUseBad()
public void setConserveFlux(boolean conserveFlux)
public boolean getConserveFlux()
public int getFlagsInt()
astResampleX()
functions.
If necessary, this method may be overridden to supply flags which
are undefined by this java class.Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.