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_Constraint
oldLM
oldLM.L_dn()
oldLM.L_up()
oldLM.accept_history()
oldLM.covariance_matrix
oldLM.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_Header
Image_Header.center
Image_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.north
Image_Header.origin
Image_Header.pixel_area
Image_Header.pixel_length
Image_Header.pixel_shift()
Image_Header.pixel_to_plane()
Image_Header.pixel_to_plane_delta()
Image_Header.pixel_to_world()
Image_Header.pixelscale
Image_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.shape
Image_Header.shift()
Image_Header.to()
Image_Header.world_to_pixel()
Image_Header.world_to_plane()
Image_Header.zeropoint
- astrophot.image.image_object module
Image
Image.blank_copy()
Image.center
Image.copy()
Image.crop()
Image.data
Image.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.identity
Image.load()
Image.metadata
Image.north
Image.origin
Image.pixel_area
Image.pixel_length
Image.pixel_to_plane()
Image.pixel_to_plane_delta()
Image.pixel_to_world()
Image.pixelscale
Image.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.shape
Image.size
Image.to()
Image.window
Image.world_to_pixel()
Image.world_to_plane()
Image.zeropoint
Image_List
Image_List.blank_copy()
Image_List.check_wcs()
Image_List.copy()
Image_List.crop()
Image_List.data
Image_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.pixelscale
Image_List.reduce()
Image_List.save()
Image_List.to()
Image_List.window
Image_List.zeropoint
- astrophot.image.jacobian_image module
- astrophot.image.model_image module
- astrophot.image.psf_image module
PSF_Image
PSF_Image.data
PSF_Image.identity
PSF_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_mask
PSF_Image.has_variance
PSF_Image.jacobian_image()
PSF_Image.model_image()
PSF_Image.normalize()
PSF_Image.psf_border_int
PSF_Image.set_data()
PSF_Image.set_fits_state()
- astrophot.image.target_image module
Target_Image
Target_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_mask
Target_Image.has_psf
Target_Image.has_variance
Target_Image.has_weight
Target_Image.image_count
Target_Image.jacobian_image()
Target_Image.mask
Target_Image.model_image()
Target_Image.or_mask()
Target_Image.psf
Target_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_deviation
Target_Image.to()
Target_Image.variance
Target_Image.weight
Target_Image_List
Target_Image_List.and_mask()
Target_Image_List.has_mask
Target_Image_List.has_psf
Target_Image_List.has_variance
Target_Image_List.has_weight
Target_Image_List.jacobian_image()
Target_Image_List.mask
Target_Image_List.match_indices()
Target_Image_List.model_image()
Target_Image_List.or_mask()
Target_Image_List.psf
Target_Image_List.psf_border
Target_Image_List.psf_border_int
Target_Image_List.set_mask()
Target_Image_List.set_psf()
Target_Image_List.set_variance()
Target_Image_List.variance
Target_Image_List.weight
- astrophot.image.wcs module
PPCS
PPCS.copy()
PPCS.default_pixelscale
PPCS.default_reference_imageij
PPCS.default_reference_imagexy
PPCS.get_fits_state()
PPCS.get_state()
PPCS.pixel_area
PPCS.pixel_length
PPCS.pixel_to_plane()
PPCS.pixel_to_plane_delta()
PPCS.pixelscale
PPCS.plane_to_pixel()
PPCS.plane_to_pixel_delta()
PPCS.reference_imageij
PPCS.reference_imagexy
PPCS.set_fits_state()
PPCS.set_state()
PPCS.to()
WCS
WPCS
WPCS.reference_radec
WPCS.reference_planexy
WPCS.projection
WPCS.copy()
WPCS.default_projection
WPCS.default_reference_planexy
WPCS.default_reference_radec
WPCS.get_fits_state()
WPCS.get_state()
WPCS.plane_to_world()
WPCS.projection
WPCS.reference_planexy
WPCS.reference_radec
WPCS.set_fits_state()
WPCS.set_state()
WPCS.softening
WPCS.to()
WPCS.world_to_plane()
- astrophot.image.window_object module
Window
Window.center
Window.copy()
Window.crop_pixel()
Window.crop_to_pixel()
Window.end
Window.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.origin
Window.overlap_frac()
Window.pad_pixel()
Window.pixel_shape
Window.pixel_shift()
Window.rescale_pixel()
Window.set_fits_state()
Window.set_state()
Window.shape
Window.shift()
Window.size
Window.to()
Window_List
- Module contents
- astrophot.models package
- Submodules
- astrophot.models.airy_psf module
- astrophot.models.core_model module
AstroPhot_Model
AstroPhot_Model.List_Model_Names()
AstroPhot_Model.List_Models()
AstroPhot_Model.default_uncertainty
AstroPhot_Model.get_state()
AstroPhot_Model.initialize()
AstroPhot_Model.jacobian()
AstroPhot_Model.load()
AstroPhot_Model.locked
AstroPhot_Model.make_model_image()
AstroPhot_Model.model_names
AstroPhot_Model.model_type
AstroPhot_Model.name
AstroPhot_Model.negative_log_likelihood()
AstroPhot_Model.parameter_order
AstroPhot_Model.sample()
AstroPhot_Model.save()
AstroPhot_Model.set_window()
AstroPhot_Model.target
AstroPhot_Model.total_flux()
AstroPhot_Model.useable
AstroPhot_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_Model
Component_Model.parameter_specs
Component_Model._parameter_order
Component_Model.psf_mode
Component_Model.sampling_mode
Component_Model.sampling_tolerance
Component_Model.integrate_mode
Component_Model.integrate_max_depth
Component_Model.integrate_gridding
Component_Model.integrate_quad_level
Component_Model.softening
Component_Model.jacobian_chunksize
Component_Model.special_kwargs
Component_Model.useable
Component_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_chunksize
Component_Model.initialize()
Component_Model.integrate_gridding
Component_Model.integrate_max_depth
Component_Model.integrate_mode
Component_Model.integrate_quad_level
Component_Model.jacobian()
Component_Model.jacobian_chunksize
Component_Model.load()
Component_Model.parameter_specs
Component_Model.psf
Component_Model.psf_convolve_mode
Component_Model.psf_mode
Component_Model.psf_subpixel_shift
Component_Model.radius_metric()
Component_Model.sample()
Component_Model.sampling_mode
Component_Model.sampling_tolerance
Component_Model.set_aux_psf()
Component_Model.softening
Component_Model.special_kwargs
Component_Model.target
Component_Model.track_attrs
Component_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_Model
PSF_Model.angular_metric()
PSF_Model.build_parameter_specs()
PSF_Model.build_parameters()
PSF_Model.evaluate_model()
PSF_Model.get_state()
PSF_Model.image_chunksize
PSF_Model.initialize()
PSF_Model.integrate_gridding
PSF_Model.integrate_max_depth
PSF_Model.integrate_mode
PSF_Model.integrate_quad_level
PSF_Model.jacobian()
PSF_Model.jacobian_chunksize
PSF_Model.load()
PSF_Model.make_model_image()
PSF_Model.model_integrated
PSF_Model.model_type
PSF_Model.normalize_psf
PSF_Model.parameter_specs
PSF_Model.radius_metric()
PSF_Model.sample()
PSF_Model.sampling_mode
PSF_Model.sampling_tolerance
PSF_Model.softening
PSF_Model.special_kwargs
PSF_Model.target
PSF_Model.track_attrs
PSF_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_Node
Parameter_Node.flat_detach()
Parameter_Node.get_state()
Parameter_Node.identities
Parameter_Node.limits
Parameter_Node.mask
Parameter_Node.names
Parameter_Node.print_params()
Parameter_Node.prof
Parameter_Node.set_state()
Parameter_Node.shape
Parameter_Node.size
Parameter_Node.to()
Parameter_Node.uncertainty
Parameter_Node.value
Parameter_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