megaradrp.core
— Base classes for processing¶
-
class
megaradrp.core.recipe.
MegaraBaseRecipe
(*args, **kwds)¶ Base clase for all MEGARA Recipes
Parameters: intermediate_results : bool, optional
If True, save intermediate results of the Recipe
Attributes
obresult (ObservationResult, requirement) qc (QualityControl, result, QC.GOOD by default) logger : recipe logger datamodel (MegaraDataModel) -
class
MegaraBaseRecipeInput
(*args, **kwds)¶ MegaraBaseRecipeInput documentation.
Attributes
obresult (ObservationResultType, requirement) Observation Result -
attrs
()¶
-
obresult
¶ The Recipe requires the result of an observation.
-
stored
()¶
-
validate
()¶ Validate myself.
-
-
class
MegaraBaseRecipe.
MegaraBaseRecipeResult
(*args, **kwds)¶ MegaraBaseRecipeResult documentation.
Attributes
qc (QualityControlProduct, product) -
attrs
()¶
-
qc
¶ Product holder for RecipeResult.
-
store_to
(where)¶
-
stored
()¶
-
validate
()¶ Validate myself.
-
-
MegaraBaseRecipe.
RecipeInput
¶ alias of
MegaraBaseRecipeInput
-
MegaraBaseRecipe.
RecipeResult
¶ alias of
MegaraBaseRecipeResult
-
MegaraBaseRecipe.
add_wcs
(hdr, wlr0, delt, crpix=1.0)¶
-
MegaraBaseRecipe.
bias_process_common
(obresult, img)¶
-
MegaraBaseRecipe.
buildRI
(ob, dal, pipeline='default')¶ Build a RecipeInput object.
-
MegaraBaseRecipe.
build_recipe_input
(ob, dal, pipeline='default')¶ Build a RecipeInput object.
-
MegaraBaseRecipe.
configure
(**kwds)¶
-
MegaraBaseRecipe.
create_input
(*args, **kwds)¶ Pass the result arguments to the RecipeInput constructor
-
MegaraBaseRecipe.
create_result
(*args, **kwds)¶ Pass the result arguments to the RecipeResult constructor
-
MegaraBaseRecipe.
datamodel
= <megaradrp.processing.datamodel.MegaraDataModel object>¶
-
classmethod
MegaraBaseRecipe.
gather_info
(recipeinput)¶
-
MegaraBaseRecipe.
getHeaderList
(image_list)¶
-
MegaraBaseRecipe.
get_parameters
(rinput)¶
-
MegaraBaseRecipe.
hdu_creation
(obresult, params=None)¶
-
classmethod
MegaraBaseRecipe.
init_filters
(rinput, ins)¶
-
classmethod
MegaraBaseRecipe.
init_filters_generic
(rinput, getters, ins)¶
-
classmethod
MegaraBaseRecipe.
load_getters
()¶
-
MegaraBaseRecipe.
logger
= <logging.Logger object>¶
-
MegaraBaseRecipe.
map_borders
(wls)¶ Compute borders of pixels for interpolation.
The border of the pixel is assumed to be midway of the wls
-
MegaraBaseRecipe.
products
()¶
-
MegaraBaseRecipe.
requirements
()¶
-
MegaraBaseRecipe.
resample_rss_flux
(rss_old, wcalib, wvpar_dict)¶ Parameters: - rss_old – rss image
- wcalib – ndarray of the coefficients
- wvpar_dict – dictionary containing wavelength calibration parameters
Returns:
-
MegaraBaseRecipe.
run
(recipe_input)¶
-
MegaraBaseRecipe.
run_qc
(recipe_input, recipe_result)¶ Run Quality Control checks.
-
MegaraBaseRecipe.
save_intermediate_img
(img, name)¶ Save intermediate FITS objects.
-
MegaraBaseRecipe.
set_base_headers
(hdr)¶ Set metadata in FITS headers.
-
classmethod
MegaraBaseRecipe.
types_getter
()¶
-
MegaraBaseRecipe.
validate_input
(recipe_input)¶ Method to customize recipe input validation.
See also
-
MegaraBaseRecipe.
validate_result
(recipe_result)¶ Validate the result of the recipe
-
class