megaradrp.core — Base classes for processing

class megaradrp.core.recipe.MegaraBaseRecipe(*args, **kwargs)

Base clase for all MEGARA Recipes

Parameters:
intermediate_results : bool, optional

If True, save intermediate results of the Recipe

Attributes:
obresult : ObservationResult, requirement
logger :

recipe logger

datamodel : MegaraDataModel
class MegaraBaseRecipeInput(*args, **kwds)

MegaraBaseRecipeInput documentation.

Attributes:
obresult : ObservationResultType, requirement

Observation Result

attrs(self)
obresult

The Recipe requires the result of an observation.

classmethod stored()
classmethod tag_names()
validate(self)

Validate myself.

RecipeInput

alias of numina.core.metaclass.MegaraBaseRecipeInput

class RecipeResult(*args, **kwds)
add_computation_time(self, img, time1, time2)
attrs(self)
store_to(self, where)
classmethod stored()
classmethod tag_names()
time_it(self, time1, time2)
validate(self)

Validate myself.

build_recipe_input(self, ob, dal)

Build a RecipeInput object.

configure(self, **kwds)
static create_default_runinfo()
classmethod create_input(*args, **kwds)

Pass the result arguments to the RecipeInput constructor

classmethod create_result(*args, **kwds)

Pass the result arguments to the RecipeResult constructor

datamodel = <megaradrp.datamodel.MegaraDataModel object>
extract_tags_from_obsres(self, obsres, tag_keys)
extract_tags_from_ref(self, ref, tag_keys, base=None)
gather_info(self, recipeinput)
get_filters(self, imgtypes, getters)
init_filters(self, rinput, ins)
init_filters_generic(self, rinput, getters_seq, ins)
logger = <Logger numina.recipes.megara (WARNING)>
classmethod products()
classmethod requirements()
run(self, recipe_input)
run_qc(self, recipe_input, recipe_result)

Run Quality Control checks.

save_intermediate_array(self, array, name)

Save intermediate array object as FITS.

save_intermediate_img(self, img, name)

Save intermediate FITS objects.

save_structured_as_json(self, structured, name)
set_base_headers(self, hdr)

Set metadata in FITS headers.

classmethod tag_names()
types_getter(self)
validate_input(self, recipe_input)

“Validate the input of the recipe

validate_result(self, recipe_result)

Validate the result of the recipe