Skip to main content
Ctrl+K
scarlet2 - Home scarlet2 - Home
  • Quick Start Guide
  • Real-World Example
  • How To …
    • Detect Sources
    • Sample from Posterior
    • Use Neural Priors
    • Fit With Correlated Noise
    • Fit Multiple Observations
    • Stack Observations
    • Fit Transients
    • Fit a Low Surface Brightness Galaxy
  • Validation
  • API Documentation
    • scarlet2
      • ArrayPSF
      • Box
      • Component
      • CorrelatedObservation
      • DustComponent
      • Frame
      • GaussianMorphology
      • GaussianPSF
      • Module
      • Morphology
      • Observation
      • PairSimilarity
      • Parameter
      • Parameterization
      • Parameters
      • PointSource
      • ProfileMorphology
      • PSF
      • Scene
      • Scenery
      • SersicMorphology
      • Source
      • Spectrum
      • Starlet
      • StarletMorphology
      • StaticArraySpectrum
      • TransientArraySpectrum
      • stack_observations
      • relative_step
      • set_validation
    • scarlet2.constraint
      • unit_disk
    • scarlet2.detect
      • Footprint
      • HierarchicalFootprint
      • Peak
      • QuadTreeRegion
      • SingleScaleStructure
      • box_intersect
      • footprint_intersect
      • footprint_iou
      • footprints
      • get_blend_structures
      • get_blend_trees
      • get_detect_wavelets
      • get_wavelets
      • hierarchical_footprints
      • multiscale_footprints
      • split_footprint
    • scarlet2.fft
      • convolve
      • deconvolve
      • good_fft_size
      • inverse
      • transform
    • scarlet2.infer
      • FitValidator
      • Measurement
      • PairSimilarity
      • fit
      • get_scene_samples
      • hvp
      • hvp_grad
      • hvp_rad
      • sample
      • source_uncertainty
      • uncertainty
    • scarlet2.init
      • HierarchicalSourceInfo
      • best_box_moments
      • boxed_moments
      • compact_morphology
      • from_gaussian_moments
      • hierarchical_sources
      • pixel_spectrum
      • standardize_moments
    • scarlet2.interpolation
      • Interpolant
      • Lanczos
      • Quintic
      • resample2d
      • resample3d
      • resample_fourier
      • resample_hermitian
    • scarlet2.io
      • model_from_h5
      • model_to_h5
    • scarlet2.nn
      • ScorePrior
      • calc_grad
      • pad_back
      • pad_fwd
      • vgrad
    • scarlet2.measure
      • Moments
      • binomial
      • centroid
      • correlation_function
      • flux
      • forced_photometry
      • fwhm
      • max_pixel
      • snr
    • scarlet2.plot
      • AsinhAutomaticNorm
      • AsinhNorm
      • AsinhPercentileNorm
      • LinearNorm
      • LinearPercentileNorm
      • Norm
      • channels_to_rgb
      • confidence
      • cut_square_box
      • footprints
      • hallucination_score
      • hvp
      • hvp_grad
      • hvp_rad
      • img_to_3channel
      • img_to_rgb
      • log_like
      • neural_grad
      • observation
      • scene
      • sources
    • scarlet2.renderer
      • ChannelRenderer
      • ChannelTransformation
      • ConvolutionRenderer
      • ConvolutionTransformation
      • HashableSlice
      • LanczosResamplingRenderer
      • LanczosResamplingTranformation
      • Renderer
      • ResamplingRenderer
      • ResamplingTransformation
      • SpatialTrimTransformation
      • Transformation
      • TrimSpatialBox
    • scarlet2.wavelets
      • Starlet
      • bspline_convolve
      • get_multiresolution_support
      • get_scales
      • starlet_filter_norms
      • starlet_reconstruction
      • starlet_transform
  • Repository
  • Suggest edit
  • Open issue
  • .md

How To …

How To …#

  • Detect Sources
    • Data Loading
    • Starlets
    • Hierarchical Detection
    • Hierarchical Initialization
  • Sample from Posterior
    • Create Observation
    • Load Model
    • Define Parameters with Prior
    • Run Sampler
    • Access Samples
    • Visualize Posterior
  • Use Neural Priors
    • Create Observation
    • Initialize Sources
    • Load Neural Prior
    • Define Parameters with Prior
    • Check Results
  • Fit With Correlated Noise
    • Load Data
    • Create Observation with Pixel Correlatopns
    • Define Sources and Parameters
    • Fitting the Model
  • Fit Multiple Observations
    • Load Data
    • Define Model Frame and Resample
    • Initialize Sources from Multiple Observations
    • Fit Astrometric Offsets
    • Evaluate in Native Resolution
  • Stack Observations
    • Load Data
    • Define Model Frame and Stack Observations
    • Initialize Sources from a Stacked Observation
    • Fit Astrometric Offsets
  • Fit Transients
    • Define Transient Scene
    • Fitting
    • Inspect Result
  • Fit a Low Surface Brightness Galaxy
    • Load and Display Data
    • Detect Sources
    • Initialize Sources
    • Fit the Model
    • Inspecting the LSBG component

previous

Real-World Example

next

Detect Sources

By Peter Melchior

© Copyright 2025, Peter Melchior.