astrophot package
Subpackages
- astrophot.errors package
- astrophot.fit package
- Submodules
- astrophot.fit.base module
- astrophot.fit.gp module
- astrophot.fit.gradient module
- astrophot.fit.hmc module
- astrophot.fit.iterative module
- astrophot.fit.lm module
- astrophot.fit.mhmcmc module
- astrophot.fit.minifit module
- astrophot.fit.nuts module
- astrophot.fit.oldlm module
LM_ConstraintoldLMoldLM.L_dn()oldLM.L_up()oldLM.accept_history()oldLM.covariance_matrixoldLM.fit()oldLM.progress_history()oldLM.rho()oldLM.step()oldLM.take_low_rho_step()oldLM.undo_step()oldLM.update_J_AD()oldLM.update_J_Broyden()oldLM.update_J_natural()oldLM.update_Yp()oldLM.update_chi2()oldLM.update_grad()oldLM.update_h()oldLM.update_hess()oldLM.update_uncertainty()
- Module contents
- astrophot.image package
- Submodules
- astrophot.image.image_header module
Image_HeaderImage_Header.centerImage_Header.copy()Image_Header.crop()Image_Header.get_coordinate_corner_meshgrid()Image_Header.get_coordinate_meshgrid()Image_Header.get_coordinate_simps_meshgrid()Image_Header.get_fits_state()Image_Header.get_state()Image_Header.get_window()Image_Header.load()Image_Header.northImage_Header.originImage_Header.pixel_areaImage_Header.pixel_lengthImage_Header.pixel_shift()Image_Header.pixel_to_plane()Image_Header.pixel_to_plane_delta()Image_Header.pixel_to_world()Image_Header.pixelscaleImage_Header.plane_to_pixel()Image_Header.plane_to_pixel_delta()Image_Header.plane_to_world()Image_Header.rescale_pixel()Image_Header.save()Image_Header.set_fits_state()Image_Header.set_state()Image_Header.shapeImage_Header.shift()Image_Header.to()Image_Header.world_to_pixel()Image_Header.world_to_plane()Image_Header.zeropoint
- astrophot.image.image_object module
ImageImage.blank_copy()Image.centerImage.copy()Image.crop()Image.dataImage.expand()Image.flatten()Image.get_coordinate_corner_meshgrid()Image.get_coordinate_meshgrid()Image.get_coordinate_simps_meshgrid()Image.get_fits_state()Image.get_state()Image.get_window()Image.identityImage.load()Image.metadataImage.northImage.originImage.pixel_areaImage.pixel_lengthImage.pixel_to_plane()Image.pixel_to_plane_delta()Image.pixel_to_world()Image.pixelscaleImage.plane_to_pixel()Image.plane_to_pixel_delta()Image.plane_to_world()Image.reduce()Image.save()Image.set_data()Image.set_fits_state()Image.set_state()Image.shapeImage.sizeImage.to()Image.windowImage.world_to_pixel()Image.world_to_plane()Image.zeropoint
Image_ListImage_List.blank_copy()Image_List.check_wcs()Image_List.copy()Image_List.crop()Image_List.dataImage_List.flatten()Image_List.get_coordinate_corner_meshgrid()Image_List.get_coordinate_meshgrid()Image_List.get_coordinate_simps_meshgrid()Image_List.get_window()Image_List.index()Image_List.load()Image_List.pixelscaleImage_List.reduce()Image_List.save()Image_List.to()Image_List.windowImage_List.zeropoint
- astrophot.image.jacobian_image module
- astrophot.image.model_image module
- astrophot.image.psf_image module
PSF_ImagePSF_Image.dataPSF_Image.identityPSF_Image.psf_border_int()PSF_Image.psf_border()PSF_Image._save_image_list()PSF_Image.reduce()PSF_Image.expand()PSF_Image.get_fits_state()PSF_Image.has_maskPSF_Image.has_variancePSF_Image.jacobian_image()PSF_Image.model_image()PSF_Image.normalize()PSF_Image.psf_border_intPSF_Image.set_data()PSF_Image.set_fits_state()
- astrophot.image.target_image module
Target_ImageTarget_Image.and_mask()Target_Image.blank_copy()Target_Image.copy()Target_Image.expand()Target_Image.get_fits_state()Target_Image.get_state()Target_Image.get_window()Target_Image.has_maskTarget_Image.has_psfTarget_Image.has_varianceTarget_Image.has_weightTarget_Image.image_countTarget_Image.jacobian_image()Target_Image.maskTarget_Image.model_image()Target_Image.or_mask()Target_Image.psfTarget_Image.reduce()Target_Image.set_fits_state()Target_Image.set_mask()Target_Image.set_psf()Target_Image.set_state()Target_Image.set_variance()Target_Image.set_weight()Target_Image.standard_deviationTarget_Image.to()Target_Image.varianceTarget_Image.weight
Target_Image_ListTarget_Image_List.and_mask()Target_Image_List.has_maskTarget_Image_List.has_psfTarget_Image_List.has_varianceTarget_Image_List.has_weightTarget_Image_List.jacobian_image()Target_Image_List.maskTarget_Image_List.match_indices()Target_Image_List.model_image()Target_Image_List.or_mask()Target_Image_List.psfTarget_Image_List.psf_borderTarget_Image_List.psf_border_intTarget_Image_List.set_mask()Target_Image_List.set_psf()Target_Image_List.set_variance()Target_Image_List.varianceTarget_Image_List.weight
- astrophot.image.wcs module
PPCSPPCS.copy()PPCS.default_pixelscalePPCS.default_reference_imageijPPCS.default_reference_imagexyPPCS.get_fits_state()PPCS.get_state()PPCS.pixel_areaPPCS.pixel_lengthPPCS.pixel_to_plane()PPCS.pixel_to_plane_delta()PPCS.pixelscalePPCS.plane_to_pixel()PPCS.plane_to_pixel_delta()PPCS.reference_imageijPPCS.reference_imagexyPPCS.set_fits_state()PPCS.set_state()PPCS.to()
WCSWPCSWPCS.reference_radecWPCS.reference_planexyWPCS.projectionWPCS.copy()WPCS.default_projectionWPCS.default_reference_planexyWPCS.default_reference_radecWPCS.get_fits_state()WPCS.get_state()WPCS.plane_to_world()WPCS.projectionWPCS.reference_planexyWPCS.reference_radecWPCS.set_fits_state()WPCS.set_state()WPCS.softeningWPCS.to()WPCS.world_to_plane()
- astrophot.image.window_object module
WindowWindow.centerWindow.copy()Window.crop_pixel()Window.crop_to_pixel()Window.endWindow.get_astropywcs()Window.get_coordinate_corner_meshgrid()Window.get_coordinate_meshgrid()Window.get_coordinate_simps_meshgrid()Window.get_fits_state()Window.get_other_indices()Window.get_self_indices()Window.get_state()Window.originWindow.overlap_frac()Window.pad_pixel()Window.pixel_shapeWindow.pixel_shift()Window.rescale_pixel()Window.set_fits_state()Window.set_state()Window.shapeWindow.shift()Window.sizeWindow.to()
Window_List
- Module contents
- astrophot.models package
- Submodules
- astrophot.models.airy_psf module
- astrophot.models.core_model module
AstroPhot_ModelAstroPhot_Model.List_Model_Names()AstroPhot_Model.List_Models()AstroPhot_Model.default_uncertaintyAstroPhot_Model.get_state()AstroPhot_Model.initialize()AstroPhot_Model.jacobian()AstroPhot_Model.load()AstroPhot_Model.lockedAstroPhot_Model.make_model_image()AstroPhot_Model.model_namesAstroPhot_Model.model_typeAstroPhot_Model.nameAstroPhot_Model.negative_log_likelihood()AstroPhot_Model.parameter_orderAstroPhot_Model.sample()AstroPhot_Model.save()AstroPhot_Model.set_window()AstroPhot_Model.targetAstroPhot_Model.total_flux()AstroPhot_Model.useableAstroPhot_Model.window
- astrophot.models.edgeon_model module
- astrophot.models.eigen_psf module
- astrophot.models.exponential_model module
- astrophot.models.flatsky_model module
- astrophot.models.foureirellipse_model module
- astrophot.models.galaxy_model_object module
- astrophot.models.gaussian_model module
- astrophot.models.group_model_object module
- astrophot.models.group_psf_model module
- astrophot.models.model_object module
Component_ModelComponent_Model.parameter_specsComponent_Model._parameter_orderComponent_Model.psf_modeComponent_Model.sampling_modeComponent_Model.sampling_toleranceComponent_Model.integrate_modeComponent_Model.integrate_max_depthComponent_Model.integrate_griddingComponent_Model.integrate_quad_levelComponent_Model.softeningComponent_Model.jacobian_chunksizeComponent_Model.special_kwargsComponent_Model.useableComponent_Model.initialize()Component_Model.sample()Component_Model.jacobian()Component_Model.angular_metric()Component_Model.build_parameter_specs()Component_Model.build_parameters()Component_Model.evaluate_model()Component_Model.get_state()Component_Model.image_chunksizeComponent_Model.initialize()Component_Model.integrate_griddingComponent_Model.integrate_max_depthComponent_Model.integrate_modeComponent_Model.integrate_quad_levelComponent_Model.jacobian()Component_Model.jacobian_chunksizeComponent_Model.load()Component_Model.parameter_specsComponent_Model.psfComponent_Model.psf_convolve_modeComponent_Model.psf_modeComponent_Model.psf_subpixel_shiftComponent_Model.radius_metric()Component_Model.sample()Component_Model.sampling_modeComponent_Model.sampling_toleranceComponent_Model.set_aux_psf()Component_Model.softeningComponent_Model.special_kwargsComponent_Model.targetComponent_Model.track_attrsComponent_Model.useable
- astrophot.models.moffat_model module
- astrophot.models.nuker_model module
- astrophot.models.pixelated_psf_model module
- astrophot.models.planesky_model module
- astrophot.models.point_source module
- astrophot.models.psf_model_object module
PSF_ModelPSF_Model.angular_metric()PSF_Model.build_parameter_specs()PSF_Model.build_parameters()PSF_Model.evaluate_model()PSF_Model.get_state()PSF_Model.image_chunksizePSF_Model.initialize()PSF_Model.integrate_griddingPSF_Model.integrate_max_depthPSF_Model.integrate_modePSF_Model.integrate_quad_levelPSF_Model.jacobian()PSF_Model.jacobian_chunksizePSF_Model.load()PSF_Model.make_model_image()PSF_Model.model_integratedPSF_Model.model_typePSF_Model.normalize_psfPSF_Model.parameter_specsPSF_Model.radius_metric()PSF_Model.sample()PSF_Model.sampling_modePSF_Model.sampling_tolerancePSF_Model.softeningPSF_Model.special_kwargsPSF_Model.targetPSF_Model.track_attrsPSF_Model.useable
- astrophot.models.ray_model module
- astrophot.models.relspline_model module
- astrophot.models.sersic_model module
- astrophot.models.sky_model_object module
- astrophot.models.spline_model module
- astrophot.models.superellipse_model module
- astrophot.models.warp_model module
- astrophot.models.wedge_model module
- astrophot.models.zernike_model module
- Module contents
- astrophot.param package
- Submodules
- astrophot.param.base module
- astrophot.param.param_context module
- astrophot.param.parameter module
Parameter_NodeParameter_Node.flat_detach()Parameter_Node.get_state()Parameter_Node.identitiesParameter_Node.limitsParameter_Node.maskParameter_Node.namesParameter_Node.print_params()Parameter_Node.profParameter_Node.set_state()Parameter_Node.shapeParameter_Node.sizeParameter_Node.to()Parameter_Node.uncertaintyParameter_Node.valueParameter_Node.vector_identities()Parameter_Node.vector_mask()Parameter_Node.vector_names()Parameter_Node.vector_representation()Parameter_Node.vector_set_mask()Parameter_Node.vector_set_representation()Parameter_Node.vector_set_uncertainty()Parameter_Node.vector_set_values()Parameter_Node.vector_transform_rep_to_val()Parameter_Node.vector_transform_val_to_rep()Parameter_Node.vector_uncertainty()Parameter_Node.vector_values()
- Module contents
- astrophot.parse_config package
- astrophot.plots package
- astrophot.utils package
- Subpackages
- Submodules
- astrophot.utils.angle_operations module
- astrophot.utils.decorators module
- astrophot.utils.interpolate module
- astrophot.utils.operations module
- astrophot.utils.optimization module
- astrophot.utils.parametric_profiles module
- Module contents
Submodules
astrophot.AP_config module
- astrophot.AP_config.set_logging_output(stdout=True, filename=None, **kwargs)[source]
Change the logging system for AstroPhot. Here you can set whether output prints to screen or to a logging file. This function will remove all handlers from the current logger in ap_logger, then add new handlers based on the input to the function.
- Parameters:
stdout (bool) – If True, log messages will be printed to the console (standard output). Default is True.
filename (str) – If given as a string, this will be the name of the file that log messages are written to. If None, no logging file will be used. Default is None.
stdout_level (logging.INFO) – The logging level of messages written to stdout, this can be different from the file level. Default is logging.INFO.
stdout_formatter (logging.Formatter) – A logging.Formatter object which determines what information to include with the logging message only when printing to stdout. Default is logging.Formatter(‘%(message)s’).
filename_level (int) – The logging level of messages written to the log file, this can be different from the stdout level. Default is logging.INFO.
filename_formatter (logging.Formatter) – A logging.Formatter object which determines what information to include with the logging message only when printing to the log file. Default is logging.Formatter(‘%(asctime)s:%(levelname)s: %(message)s’).
Module contents
- astrophot.run_from_terminal() None[source]
Execute AstroPhot from the command line with various options.
This function uses the argparse module to parse command line arguments and execute the appropriate functionality. It accepts the following arguments:
filename: the path to the configuration file. Or just ‘tutorial’ to download tutorials.
–config: the type of configuration file being provided. One of: astrophot, galfit.
-v, –version: print the current AstroPhot version to screen.
–log: set the log file name for AstroPhot. Use ‘none’ to suppress the log file.
-q: quiet flag to stop command line output, only print to log file.
–dtype: set the float point precision. Must be one of: float64, float32.
–device: set the device for AstroPhot to use for computations. Must be one of: cpu, gpu.
If the filename argument is not provided, it raises a RuntimeError. If the filename argument is tutorial or tutorials, it downloads tutorials from various URLs and saves them locally.
This function logs messages using the AP_config module, which sets the logging output based on the –log and -q arguments. The dtype and device of AstroPhot can also be set using the –dtype and –device arguments, respectively.
- Returns:
None