SPXQuery Quickstart Demo

This notebook demonstrates the flexible, resumable pipeline features of the spxquery package.

Point Source: Cloverleaf quasar (RA=213.9427080°, Dec=+11.4953890°, z=2.56)

Package Version: v0.2.2

Features Demonstrated

  1. Advanced Configuration (v0.2.2) - FWHM-based apertures and window background

  2. One-click pipeline execution - Run everything with a single function call

  3. Smart resume with YAML - Human-readable state files with automatic loading

  4. Manual step execution - Run individual stages with dependency checking

  5. Method comparisons (v0.2.2) - Compare background and aperture methods

  6. Parameter tuning (v0.2.2) - Interactive exploration of optimal settings

SPHEREx Bad Pixel Flags Reference

The bad_flags parameter specifies which pixel quality flags to reject during visualization.

Default bad_flags: [0, 1, 2, 6, 7, 9, 10, 11, 14, 15, 17, 19]

Flag Name

Bit

Flag Name

Bit

TRANSIENT

0

COLD

11

OVERFLOW

1

FULLSAMPLE

12

SUR_ERROR

2

PHANMISS

14

NONFUNC

6

NONLINEAR

15

DICHROIC

7

PERSIST

17

MISSING_DATA

9

OUTLIER

19

HOT

10

SOURCE

21

Note: The FLAGS extension in SPHEREx FITS files uses a bitmap where multiple flags can be set for a single pixel. The pipeline marks measurements as “bad” if ANY of the specified flag bits are set.

Usage examples:

bad_flags=[0, 1, 2, 6, 7, 9, 10, 11, 14, 15, 17, 19]  # Default: comprehensive quality control
bad_flags=[]                      # No flag filtering (use all data)

Automatic Variance Repair (NEW in v0.2.2)

Problem: Some SPHEREx images contain pixels with NaN variance but valid flux values, typically due to flagged conditions.

Solution: The pipeline automatically repairs variance for flagged pixels:

  • Validates assumption: Checks that NaN variance correlates with non-zero flags

  • Estimates variance: Uses median of valid variance values across the image

  • Fails safely: Raises error if NaN variance found without flags (unexpected data quality issue)

Benefits:

  • Preserves observations that would otherwise fail photometry

  • Provides reasonable error estimates for flagged pixels

  • Maintains SNR-based quality control

  • No manual intervention required

Log message example:

INFO - Repaired 23 pixels with NaN variance using median variance (1.234e-06).
       All repaired pixels have non-zero flags.
[1]:
# Import required modules
from pathlib import Path

from spxquery import QueryConfig, Source, SPXQueryPipeline
from spxquery.core.pipeline import run_pipeline
from spxquery.utils.helpers import setup_logging

# Set up logging
setup_logging("INFO")

Generate Spectrophotometry for a Single Source

NEW IN v0.2.2: Enhanced photometry with adaptive apertures and flexible background estimation!

The advanced parameter system allows you to customize photometry, visualization, and download parameters beyond the basic pipeline settings.

What’s New in v0.2.2

Adaptive Aperture Sizing:

  • FWHM-based apertures: Automatically size apertures based on PSF FWHM

  • Automatic fallback: Falls back to fixed aperture if FWHM estimation fails

  • Parameters: aperture_method (‘fixed’ or ‘fwhm’), fwhm_multiplier

Flexible Background Estimation:

  • Window method: Rectangular background region (alternative to annulus)

  • Automatic aperture exclusion: Pixels intersecting the aperture are automatically excluded

  • Parameters: background_method (‘annulus’ or ‘window’), window_size

Key features:

  • Export default parameters to YAML template with inline comments

  • Edit parameters manually for fine-tuning

  • Load custom parameters into pipeline

  • Priority system: explicit params > YAML file > defaults

Parameter Setting (v0.2.2 Features)

Here’s how to use the new photometry features directly in your pipeline:

[2]:
# FWHM-based adaptive apertures
from spxquery.core.config import (
    PhotometryConfig,
    QueryConfig,
    Source,
    AdvancedConfig,
    DownloadConfig,
    VisualizationConfig,
)

# Define our target source
source = Source(
    name="cloverleaf",
    ra=213.9427080,  # Right ascension in degrees
    dec=11.4953890,  # Declination in degrees
)

# Define the output directory
output_dir = Path("./demo_data/cloverleaf")


config_all = AdvancedConfig(
    # === Query Configuration ===
    query=QueryConfig(
        source=source,
        output_dir=output_dir,
        bands=["D1", "D2", "D3", "D4", "D5", "D6"],  # SPHEREx bands to query
    ),
    # === Download Configuration ===
    download=DownloadConfig(
        # === Image settings ===
        cutout_size="60px",  # Size of cutout images; None for full image (e.g., "200px", "3arcmin")
        cutout_center=None,  # Center of cutout; defaults to source coordinates (e.g., "70,20", "300.5,120px")
        # === Download Settings ===
        max_retries=3,  # Number of retry attempts for failed downloads
        max_download_workers=5,  # Number of parallel download workers
        # === Advanced Users Only ===
        chunk_size=8192,  # Only for advanced users: size of data chunks to read (bytes)
        timeout=300,  # Only for advanced users: HTTP timeout (seconds)
        user_agent="SPXQuery/0.2.2",  # Only for advanced users: User agent string for HTTP requests
    ),
    # === Photometry Configuration ===
    photometry=PhotometryConfig(
        # === Aperture Configuration ===
        aperture_method="fwhm",  # "fixed" or "fwhm" - aperture sizing method
        fwhm_multiplier=2.5,  # Multiplier for FWHM-based apertures (aperture = FWHM × multiplier)
        aperture_diameter=3.0,  # Aperture diameter in pixels (fixed method OR fallback)
        # === Background Configuration ===
        background_method="window",  # "annulus" or "window" - background estimation method
        window_size=50,  # Window size for window method (int for square, tuple for rectangular)
        # === Annulus Parameters (Only valid if aperture_method="annulus") ===
        annulus_inner_offset=1.414,  # Gap between aperture and annulus inner radius (pixels)
        min_annulus_area=10,  # Minimum annulus area (pixels)
        max_outer_radius=5.0,  # Maximum outer annulus radius (pixels)
        max_annulus_attempts=5,  # Max attempts to expand annulus if insufficient pixels
        annulus_expansion_step=0.5,  # Step size for annulus expansion (pixels)
        # === Background Statistics ===
        min_usable_pixels=10,  # Minimum unflagged pixels required for background estimation
        bg_sigma_clip_sigma=3.0,  # Sigma threshold for background sigma clipping
        bg_sigma_clip_maxiters=3,  # Maximum iterations for background sigma clipping
        # === Other Photometry Parameters ===
        subtract_zodi=True,  # Whether to subtract zodiacal light background from images
        zodi_scale_min=0.0,  # Minimum allowed zodiacal scaling factor
        zodi_scale_max=10.0,  # Maximum allowed zodiacal scaling factor
        pixel_scale_fallback=6.2,  # Fallback pixel scale (arcsec/pixel) when WCS fails
        # === Processing & Quality Control ===
        max_processing_workers=10,  # Parallel processing
        bad_flags=[0, 1, 2, 6, 7, 9, 10, 11, 15],  # Photometry fails if aperture contains flagged pixels
    ),
    # === Visualization Configuration ===
    visualization=VisualizationConfig(
        # === Quality Control ===
        sigma_threshold=5.0,  # Minimum SNR (flux/flux_err) for quality control filtering
        # === Plot Type ===
        use_magnitude=False,  # If True, plot AB magnitude instead of flux
        show_errorbars=True,  # If True, show error bars on plots
        # === Color Maps ===
        wavelength_cmap="rainbow",  # Colormap for wavelength coding in light curves
        date_cmap="viridis",  # Colormap for date coding in spectra
        # === Outlier Removal ===
        sigma_clip_sigma=5.0,  # Sigma threshold for outlier removal in plots
        sigma_clip_maxiters=10,  # Maximum iterations for sigma clipping
        # === Y-axis Limits ===
        ylim_percentile_min=1.0,  # Lower percentile for smart y-axis limits (0-100)
        ylim_percentile_max=99.0,  # Upper percentile for smart y-axis limits (0-100)
        ylim_padding_fraction=0.1,  # Padding fraction added to y-axis range
        # === Marker Sizes ===
        marker_size_good=1.5,  # Marker size for good measurements
        marker_size_rejected=2.0,  # Marker size for rejected measurements
        marker_size_upper_limit=3.0,  # Marker size for upper limit arrows
        # === Transparency ===
        errorbar_alpha=0.2,  # Transparency for error bars (0-1)
        marker_alpha=0.9,  # Transparency for markers (0-1)
        # === Line Widths ===
        errorbar_linewidth=0.5,  # Line width for error bars in points
        # === Figure Settings ===
        figsize=(10, 8),  # Figure size in inches (width, height)
        dpi=150,  # Resolution in dots per inch for saved figures
    ),
)

# Save these settings for future use
config_all.to_yaml_file(output_dir / "config_params.yaml")

Or use a YAML template and Edit outside

[3]:
# Export default parameters to a JSON template
from spxquery.utils.params import export_default_parameters

# Export to custom directory
params_file = export_default_parameters(output_dir, filename="config_params.yaml")

print(f"\nParameter template created at: {params_file}")
2025-11-13 00:33:00 - spxquery.utils.params - INFO - Default parameters exported to demo_data/cloverleaf/config_params.yaml

======================================================================
Advanced Parameters Template Exported
======================================================================
File location: demo_data/cloverleaf/config_params.yaml

This template contains customizable parameters for:
  • Photometry (aperture, background annulus, sigma clipping)
  • Visualization (colormaps, marker sizes, figure settings)
  • Downloads (chunk size, timeouts, retries)

NOTE: This template does NOT include source information (ra/dec).
      You must provide source coordinates when running the pipeline.

Next steps:
  1. Edit config_params.yaml to customize parameters (YAML format with comments)
  2. Use the file in your pipeline with:
     • QueryConfig(source=..., advanced_params_file='demo_data/cloverleaf/config_params.yaml')
     • run_pipeline(ra=..., dec=..., advanced_params_file='demo_data/cloverleaf/config_params.yaml')
======================================================================


Parameter template created at: demo_data/cloverleaf/config_params.yaml
[4]:
# Load the file back into a QueryConfig object
config_all = AdvancedConfig.from_yaml_file(params_file)
2025-11-13 00:33:00 - spxquery.core.config - INFO - Loaded advanced parameters from demo_data/cloverleaf/config_params.yaml

You can also update your parameters after build up the config

[5]:
# Only name of the parameter is needed. Package will identify which category it belongs to.
print(config_all.query.source.name)
config_all.update(source=source, output_dir=output_dir, max_processing_workers=1)
print(config_all.query.source.name)
2025-11-13 00:33:00 - spxquery.core.config - INFO - Updated parameters: ['source', 'output_dir', 'max_processing_workers']
MySource
cloverleaf

Use Custom Parameters in Pipeline

There are two ways to use custom parameters:

[6]:
# Method 1: Using SPXQueryPipeline with advanced_params_file
print("\nMethod 1: Using SPXQueryPipeline with advanced_params_file")
print("=" * 70)

# Create source
pipeline_custom = SPXQueryPipeline(config_all)

# Verify parameters were loaded
print("\n✓ Custom parameters loaded!")
print(f"  Visualization DPI: {pipeline_custom.config.visualization.dpi}")
print(f"  Figure size: {pipeline_custom.config.visualization.figsize}")
print(f"  Wavelength colormap: {pipeline_custom.config.visualization.wavelength_cmap}")
print(f"  BG sigma clipping: {pipeline_custom.config.photometry.bg_sigma_clip_sigma}")

# Create and run pipeline
# Uncomment to run:
pipeline_custom.run_full_pipeline()

print("\nTo run pipeline, uncomment the last two lines above.")
2025-11-13 00:33:00 - spxquery.core.pipeline - INFO - Initialized pipeline for source at RA=213.942708, Dec=11.495389
2025-11-13 00:33:00 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:00 - spxquery.core.pipeline - INFO - State file: cloverleaf.yaml
2025-11-13 00:33:00 - spxquery.core.pipeline - INFO - Starting full pipeline execution
2025-11-13 00:33:00 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:00 - spxquery.core.pipeline - INFO - Running query stage
2025-11-13 00:33:00 - spxquery.core.query - INFO - Querying SPHEREx observations for source at RA=213.942708, Dec=11.495389

Method 1: Using SPXQueryPipeline with advanced_params_file
======================================================================

✓ Custom parameters loaded!
  Visualization DPI: 150
  Figure size: (10, 8)
  Wavelength colormap: rainbow
  BG sigma clipping: 3.0
2025-11-13 00:33:04 - spxquery.core.query - INFO - Found 108 observations spanning 33.1 days
2025-11-13 00:33:04 - spxquery.core.pipeline - INFO - Marked stage 'query' as complete
2025-11-13 00:33:04 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=download, completed=['query']
2025-11-13 00:33:04 - spxquery.core.pipeline - INFO - Running download stage (skip_existing=True)
2025-11-13 00:33:04 - spxquery.core.download - INFO - Starting parallel download of 108 files
2025-11-13 00:33:04 - spxquery.core.download - INFO - Download settings: timeout=300s, retries=3, workers=4

============================================================
SPHEREx Archive Search Results
============================================================
Source: RA=213.942708, Dec=11.495389
        Name: cloverleaf
Query time: 2025-11-13 00:33:04

Total observations found: 108

Observations by band:
  D1 (0.75-1.09 μm):  18 observations
  D2 (1.10-1.62 μm):  18 observations
  D3 (1.63-2.41 μm):  18 observations
  D4 (2.42-3.82 μm):  18 observations
  D5 (3.83-4.41 μm):  18 observations
  D6 (4.42-5.00 μm):  18 observations

Time span: 33.1 days
Total data volume: 0.00 GB
============================================================

Downloading:   0%|          | 0/108 [00:00<?, ?files/s]2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:33:04 - spxquery.core.download - INFO - Skipping 2025W29_2A_0482_1.fits - already exists
Downloading: 100%|██████████| 108/108 [00:00<00:00, 5133.38files/s]
2025-11-13 00:33:04 - spxquery.core.download - INFO - Download complete: 108 successful, 0 failed
2025-11-13 00:33:04 - spxquery.core.download - INFO - Total size: 525.9 MB
2025-11-13 00:33:04 - spxquery.core.pipeline - INFO - Downloaded 108 files
2025-11-13 00:33:04 - spxquery.core.pipeline - INFO - Total data size: 0.00 GB (estimated) → 0.51 GB (actual)
2025-11-13 00:33:04 - spxquery.core.pipeline - INFO - Marked stage 'download' as complete
2025-11-13 00:33:04 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=processing, completed=['query', 'download']
2025-11-13 00:33:04 - spxquery.core.pipeline - INFO - Running processing stage
2025-11-13 00:33:04 - spxquery.core.pipeline - INFO - Processing 108 FITS files
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - Processing photometry for 108 observations
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - Using sequential processing (max_workers=1)

============================================================
Download Summary
============================================================
Total files: 108
Successful: 108
Failed: 0
Total downloaded: 525.9 MB (0.51 GB)
============================================================

Processing observations:   0%|          | 0/108 [00:00<?, ?files/s]2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0062_1.fits
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - Repaired 12 pixels with NaN variance using median variance (9.499758e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.017" (0.82px) → diameter=2.04px (radius=1.02px)
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2663/3600 (74.0%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1757
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1757
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2663/3600 (74.0%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2663/3600 (74.0%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2663/3600 (74.0%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2663/3600 (74.0%) pixels available
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_1.fits: flux=1038.191±38.595 μJy (0.001038±0.000039 Jy) at λ=1.940 μm, mag_AB=16.359±0.040
Processing observations:   1%|          | 1/108 [00:00<00:22,  4.69files/s]2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0062_1.fits
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - Repaired 19 pixels with NaN variance using median variance (5.811026e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.625" (0.91px) → diameter=2.28px (radius=1.14px)
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2995/3600 (83.2%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0426
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0426
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2995/3600 (83.2%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2995/3600 (83.2%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2995/3600 (83.2%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2995/3600 (83.2%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2995/3600 (83.2%) pixels available
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_1.fits: flux=2436.807±110.307 μJy (0.002437±0.000110 Jy) at λ=4.658 μm, mag_AB=15.433±0.049
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0062_2.fits
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_2: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - Repaired 11 pixels with NaN variance using median variance (9.150388e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.643" (0.75px) → diameter=1.89px (radius=0.94px)
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1734
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1734
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_2.fits: flux=1023.154±37.410 μJy (0.001023±0.000037 Jy) at λ=1.985 μm, mag_AB=16.375±0.040
Processing observations:   3%|▎         | 3/108 [00:00<00:09, 10.75files/s]2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0062_2.fits
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_2: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (6.164463e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.250" (0.69px) → diameter=1.72px (radius=0.86px)
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0365
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0365
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:33:04 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_2.fits: flux=1933.091±93.696 μJy (0.001933±0.000094 Jy) at λ=4.692 μm, mag_AB=15.684±0.053
2025-11-13 00:33:04 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0062_3.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_3: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (8.889740e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.495" (0.73px) → diameter=1.83px (radius=0.91px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2635/3600 (73.2%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1805
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1805
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2635/3600 (73.2%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2635/3600 (73.2%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2635/3600 (73.2%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2635/3600 (73.2%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_3.fits: flux=886.621±35.335 μJy (0.000887±0.000035 Jy) at λ=2.032 μm, mag_AB=16.531±0.043
Processing observations:   5%|▍         | 5/108 [00:00<00:07, 14.02files/s]2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0062_3.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_3: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (6.721239e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=7.940" (1.29px) → diameter=3.22px (radius=1.61px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3023/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0259
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0259
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3023/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3023/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3023/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3023/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_3.fits: flux=3041.467±146.377 μJy (0.003041±0.000146 Jy) at λ=4.726 μm, mag_AB=15.192±0.052
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0062_4.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_4: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (8.557443e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.490" (0.73px) → diameter=1.83px (radius=0.91px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2667/3600 (74.1%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1888
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1888
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2667/3600 (74.1%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2667/3600 (74.1%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2667/3600 (74.1%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2667/3600 (74.1%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_4.fits: flux=1035.729±35.128 μJy (0.001036±0.000035 Jy) at λ=2.078 μm, mag_AB=16.362±0.037
Processing observations:   6%|▋         | 7/108 [00:00<00:06, 15.78files/s]2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0062_4.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_4: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 23 pixels with NaN variance using median variance (7.100530e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=7.936" (1.29px) → diameter=3.22px (radius=1.61px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3021/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0445
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0445
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3021/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3021/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3021/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3021/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_4.fits: flux=2935.772±149.228 μJy (0.002936±0.000149 Jy) at λ=4.761 μm, mag_AB=15.231±0.055
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0178_1.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 20 pixels with NaN variance using median variance (8.644567e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.551" (0.90px) → diameter=2.25px (radius=1.13px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3022/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0760
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0760
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3022/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3022/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3022/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3022/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3022/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_1.fits: flux=2720.236±127.554 μJy (0.002720±0.000128 Jy) at λ=4.830 μm, mag_AB=15.313±0.051
Processing observations:   8%|▊         | 9/108 [00:00<00:05, 16.68files/s]2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0178_1.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (7.728661e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.629" (0.75px) → diameter=1.88px (radius=0.94px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1792
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1792
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_1.fits: flux=1065.493±36.852 μJy (0.001065±0.000037 Jy) at λ=2.176 μm, mag_AB=16.331±0.038
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0178_2.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_2: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 19 pixels with NaN variance using median variance (9.236660e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.553" (0.90px) → diameter=2.25px (radius=1.13px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3034/3600 (84.3%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0621
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0621
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3034/3600 (84.3%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3034/3600 (84.3%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3034/3600 (84.3%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3034/3600 (84.3%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3034/3600 (84.3%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_2.fits: flux=2996.135±133.733 μJy (0.002996±0.000134 Jy) at λ=4.866 μm, mag_AB=15.209±0.048
Processing observations:  10%|█         | 11/108 [00:00<00:05, 17.25files/s]2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0178_3.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_3: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (9.960690e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.567" (0.74px) → diameter=1.85px (radius=0.93px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3024/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0838
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0838
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3024/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3024/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3024/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3024/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3024/3600 (84.0%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_3.fits: flux=2216.766±113.886 μJy (0.002217±0.000114 Jy) at λ=4.901 μm, mag_AB=15.536±0.056
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0178_3.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_3: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 19 pixels with NaN variance using median variance (6.856603e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.714" (0.77px) → diameter=1.91px (radius=0.96px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1851
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1851
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_3.fits: flux=1518.666±40.899 μJy (0.001519±0.000041 Jy) at λ=2.277 μm, mag_AB=15.946±0.029
Processing observations:  12%|█▏        | 13/108 [00:00<00:05, 17.56files/s]2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0178_4.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_4: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 20 pixels with NaN variance using median variance (1.096818e+00). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.570" (0.74px) → diameter=1.85px (radius=0.93px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2966/3600 (82.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0908
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0908
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2966/3600 (82.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2966/3600 (82.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2966/3600 (82.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2966/3600 (82.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2966/3600 (82.4%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_4.fits: flux=2417.426±121.911 μJy (0.002417±0.000122 Jy) at λ=4.937 μm, mag_AB=15.442±0.055
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0178_4.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_4: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 23 pixels with NaN variance using median variance (6.745640e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.713" (0.77px) → diameter=1.91px (radius=0.96px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2603/3600 (72.3%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2239
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2239
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2603/3600 (72.3%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2603/3600 (72.3%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2603/3600 (72.3%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2603/3600 (72.3%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_4.fits: flux=3445.029±58.752 μJy (0.003445±0.000059 Jy) at λ=2.329 μm, mag_AB=15.057±0.019
Processing observations:  14%|█▍        | 15/108 [00:00<00:05, 18.17files/s]2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0202_1.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0202_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (1.186982e+00). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.223" (0.85px) → diameter=2.12px (radius=1.06px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0572
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0572
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0202_1.fits: flux=2556.301±135.873 μJy (0.002556±0.000136 Jy) at λ=4.973 μm, mag_AB=15.381±0.058
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0202_1.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0202_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 26 pixels with NaN variance using median variance (1.020734e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.415" (0.72px) → diameter=1.79px (radius=0.90px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3655
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3655
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0202_1.fits: flux=1505.321±50.051 μJy (0.001505±0.000050 Jy) at λ=2.382 μm, mag_AB=15.956±0.036
Processing observations:  16%|█▌        | 17/108 [00:01<00:05, 17.65files/s]2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0329_3.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0329_3: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 3 pixels with NaN variance using median variance (1.231259e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.646" (0.76px) → diameter=1.89px (radius=0.94px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2684/3600 (74.6%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0272
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0272
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2684/3600 (74.6%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2684/3600 (74.6%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2684/3600 (74.6%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2684/3600 (74.6%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0329_3.fits: flux=1041.454±41.376 μJy (0.001041±0.000041 Jy) at λ=1.633 μm, mag_AB=16.356±0.043
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0329_3.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0329_3: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 11 pixels with NaN variance using median variance (3.707438e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.581" (0.91px) → diameter=2.27px (radius=1.13px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 0.9897
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 0.9897
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0329_3.fits: flux=1770.649±91.207 μJy (0.001771±0.000091 Jy) at λ=4.411 μm, mag_AB=15.780±0.056
Processing observations:  18%|█▊        | 19/108 [00:01<00:04, 17.94files/s]2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0329_4.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0329_4: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.203764e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.662" (0.76px) → diameter=1.89px (radius=0.94px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2677/3600 (74.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0526
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0526
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2677/3600 (74.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2677/3600 (74.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2677/3600 (74.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2677/3600 (74.4%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0329_4.fits: flux=1071.033±42.147 μJy (0.001071±0.000042 Jy) at λ=1.671 μm, mag_AB=16.325±0.043
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0329_4.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0329_4: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (3.862086e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.584" (0.91px) → diameter=2.27px (radius=1.13px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 0.9603
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 0.9603
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0329_4.fits: flux=2347.701±99.688 μJy (0.002348±0.000100 Jy) at λ=4.443 μm, mag_AB=15.473±0.046
Processing observations:  19%|█▉        | 21/108 [00:01<00:04, 18.18files/s]2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0468_1.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.169509e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.704" (0.76px) → diameter=1.91px (radius=0.96px)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2682/3600 (74.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0774
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0774
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2682/3600 (74.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2682/3600 (74.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2682/3600 (74.5%) pixels available
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2682/3600 (74.5%) pixels available
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_1.fits: flux=1225.838±42.605 μJy (0.001226±0.000043 Jy) at λ=1.709 μm, mag_AB=16.179±0.038
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0468_1.fits
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:05 - spxquery.processing.photometry - INFO - Repaired 20 pixels with NaN variance using median variance (4.453817e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.645" (0.92px) → diameter=2.29px (radius=1.15px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3000/3600 (83.3%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0566
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0566
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3000/3600 (83.3%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3000/3600 (83.3%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3000/3600 (83.3%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3000/3600 (83.3%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3000/3600 (83.3%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_1.fits: flux=1786.397±100.958 μJy (0.001786±0.000101 Jy) at λ=4.475 μm, mag_AB=15.770±0.061
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0468_2.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_2: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (1.113934e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.558" (0.74px) → diameter=1.85px (radius=0.93px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2676/3600 (74.3%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0940
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0940
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2676/3600 (74.3%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2676/3600 (74.3%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2676/3600 (74.3%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2676/3600 (74.3%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_2.fits: flux=1611.082±46.411 μJy (0.001611±0.000046 Jy) at λ=1.749 μm, mag_AB=15.882±0.031
Processing observations:  22%|██▏       | 24/108 [00:01<00:04, 18.89files/s]2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0468_2.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_2: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (4.604722e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.405" (0.71px) → diameter=1.79px (radius=0.89px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0315
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0315
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_2.fits: flux=1943.829±90.072 μJy (0.001944±0.000090 Jy) at λ=4.508 μm, mag_AB=15.678±0.050
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0468_3.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_3: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (1.078577e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.561" (0.74px) → diameter=1.85px (radius=0.93px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2678/3600 (74.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1140
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1140
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2678/3600 (74.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2678/3600 (74.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2678/3600 (74.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2678/3600 (74.4%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_3.fits: flux=1243.893±41.996 μJy (0.001244±0.000042 Jy) at λ=1.789 μm, mag_AB=16.163±0.037
Processing observations:  24%|██▍       | 26/108 [00:01<00:04, 19.02files/s]2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0468_3.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_3: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 21 pixels with NaN variance using median variance (4.797451e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.406" (0.71px) → diameter=1.79px (radius=0.89px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3014/3600 (83.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0258
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0258
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3014/3600 (83.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3014/3600 (83.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3014/3600 (83.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3014/3600 (83.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3014/3600 (83.7%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_3.fits: flux=2453.452±101.397 μJy (0.002453±0.000101 Jy) at λ=4.540 μm, mag_AB=15.426±0.045
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0468_4.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_4: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (4.988441e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.677" (0.92px) → diameter=2.30px (radius=1.15px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2987/3600 (83.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0101
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0101
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2987/3600 (83.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2987/3600 (83.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2987/3600 (83.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2987/3600 (83.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2987/3600 (83.0%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_4.fits: flux=3044.509±113.623 μJy (0.003045±0.000114 Jy) at λ=4.573 μm, mag_AB=15.191±0.041
Processing observations:  26%|██▌       | 28/108 [00:01<00:04, 19.01files/s]2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0468_4.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_4: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (1.039659e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.362" (0.71px) → diameter=1.77px (radius=0.89px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2658/3600 (73.8%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1364
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1364
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2658/3600 (73.8%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2658/3600 (73.8%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2658/3600 (73.8%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2658/3600 (73.8%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_4.fits: flux=983.200±38.791 μJy (0.000983±0.000039 Jy) at λ=1.831 μm, mag_AB=16.418±0.043
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0503_1.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0503_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 22 pixels with NaN variance using median variance (5.483860e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.637" (0.91px) → diameter=2.28px (radius=1.14px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3008/3600 (83.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0489
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0489
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3008/3600 (83.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3008/3600 (83.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3008/3600 (83.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3008/3600 (83.6%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0503_1.fits: flux=2544.291±118.549 μJy (0.002544±0.000119 Jy) at λ=4.607 μm, mag_AB=15.386±0.051
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0503_1.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0503_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (1.003989e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.361" (0.71px) → diameter=1.77px (radius=0.89px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1580
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1580
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0503_1.fits: flux=913.576±37.143 μJy (0.000914±0.000037 Jy) at λ=1.873 μm, mag_AB=16.498±0.044
Processing observations:  29%|██▊       | 31/108 [00:01<00:03, 19.40files/s]2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0503_2.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0503_2: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 23 pixels with NaN variance using median variance (5.778874e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.634" (0.91px) → diameter=2.28px (radius=1.14px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0207
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0207
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0503_2.fits: flux=2290.276±111.149 μJy (0.002290±0.000111 Jy) at λ=4.640 μm, mag_AB=15.500±0.053
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0503_2.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0503_2: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (9.719857e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.438" (0.72px) → diameter=1.80px (radius=0.90px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1714
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1714
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0503_2.fits: flux=940.792±35.942 μJy (0.000941±0.000036 Jy) at λ=1.917 μm, mag_AB=16.466±0.041
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_1B_0616_1.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_1: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 11 pixels with NaN variance using median variance (3.814502e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.566" (0.91px) → diameter=2.26px (radius=1.13px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2194/3600 (60.9%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3159
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3159
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2194/3600 (60.9%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2194/3600 (60.9%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2194/3600 (60.9%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2194/3600 (60.9%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_1.fits: flux=2357.584±97.139 μJy (0.002358±0.000097 Jy) at λ=4.251 μm, mag_AB=15.469±0.045
Processing observations:  31%|███▏      | 34/108 [00:01<00:03, 19.51files/s]2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_1B_0616_1.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_1: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (1.311397e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.541" (0.74px) → diameter=1.85px (radius=0.92px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2866/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1742
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1742
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2866/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2866/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2866/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2866/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2866/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_1.fits: flux=986.890±40.346 μJy (0.000987±0.000040 Jy) at λ=1.480 μm, mag_AB=16.414±0.044
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_1B_0616_2.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_2: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.271930e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.542" (0.74px) → diameter=1.85px (radius=0.92px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1367
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1367
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_2.fits: flux=1024.023±39.575 μJy (0.001024±0.000040 Jy) at λ=1.516 μm, mag_AB=16.374±0.042
Processing observations:  33%|███▎      | 36/108 [00:02<00:03, 19.33files/s]2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_1B_0616_2.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_2: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 16 pixels with NaN variance using median variance (3.952595e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.565" (0.91px) → diameter=2.26px (radius=1.13px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2143/3600 (59.5%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2754
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2754
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2143/3600 (59.5%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2143/3600 (59.5%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2143/3600 (59.5%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2143/3600 (59.5%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_2.fits: flux=2375.139±101.912 μJy (0.002375±0.000102 Jy) at λ=4.287 μm, mag_AB=15.461±0.047
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_1B_0616_3.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_3: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (4.147240e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.928" (0.97px) → diameter=2.42px (radius=1.21px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2195/3600 (61.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2534
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2534
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2195/3600 (61.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2195/3600 (61.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2195/3600 (61.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2195/3600 (61.0%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_3.fits: flux=2531.522±107.528 μJy (0.002532±0.000108 Jy) at λ=4.324 μm, mag_AB=15.392±0.046
Processing observations:  35%|███▌      | 38/108 [00:02<00:03, 19.21files/s]2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_1B_0616_3.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_3: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.213519e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.574" (0.75px) → diameter=1.86px (radius=0.93px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2865/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1006
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1006
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2865/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2865/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2865/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2865/3600 (79.6%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_3.fits: flux=1147.682±41.158 μJy (0.001148±0.000041 Jy) at λ=1.552 μm, mag_AB=16.250±0.039
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_1B_0616_4.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_4: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 20 pixels with NaN variance using median variance (4.322733e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.949" (0.97px) → diameter=2.42px (radius=1.21px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2123/3600 (59.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2312
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2312
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2123/3600 (59.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2123/3600 (59.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2123/3600 (59.0%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2123/3600 (59.0%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_4.fits: flux=2807.264±113.975 μJy (0.002807±0.000114 Jy) at λ=4.361 μm, mag_AB=15.279±0.044
Processing observations:  37%|███▋      | 40/108 [00:02<00:03, 19.31files/s]2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_1B_0616_4.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_4: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (1.164446e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.574" (0.75px) → diameter=1.86px (radius=0.93px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2824/3600 (78.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0617
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0617
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2824/3600 (78.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2824/3600 (78.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2824/3600 (78.4%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2824/3600 (78.4%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_4.fits: flux=1017.127±40.294 μJy (0.001017±0.000040 Jy) at λ=1.589 μm, mag_AB=16.382±0.043
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_1B_0679_1.fits
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0679_1: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (4.967668e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.709" (0.93px) → diameter=2.33px (radius=1.16px)
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2185/3600 (60.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3352
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3352
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2185/3600 (60.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2185/3600 (60.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2185/3600 (60.7%) pixels available
2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2185/3600 (60.7%) pixels available
2025-11-13 00:33:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0679_1.fits: flux=2770.542±111.917 μJy (0.002771±0.000112 Jy) at λ=4.398 μm, mag_AB=15.294±0.044
Processing observations:  39%|███▉      | 42/108 [00:02<00:03, 19.41files/s]2025-11-13 00:33:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_1B_0679_1.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0679_1: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.141730e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.439" (0.72px) → diameter=1.81px (radius=0.90px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2886/3600 (80.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0796
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0796
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2886/3600 (80.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2886/3600 (80.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2886/3600 (80.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2886/3600 (80.2%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0679_1.fits: flux=1132.340±38.347 μJy (0.001132±0.000038 Jy) at λ=1.627 μm, mag_AB=16.265±0.037
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0746_1.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0746_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (8.280554e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.752" (0.93px) → diameter=2.33px (radius=1.17px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 3005/3600 (83.5%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0637
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0637
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 3005/3600 (83.5%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 3005/3600 (83.5%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 3005/3600 (83.5%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 3005/3600 (83.5%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0746_1.fits: flux=2834.850±135.527 μJy (0.002835±0.000136 Jy) at λ=4.795 μm, mag_AB=15.269±0.052
Processing observations:  41%|████      | 44/108 [00:02<00:03, 19.09files/s]2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0746_1.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0746_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (8.186452e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.560" (0.74px) → diameter=1.85px (radius=0.93px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2683/3600 (74.5%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1785
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1785
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2683/3600 (74.5%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2683/3600 (74.5%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2683/3600 (74.5%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2683/3600 (74.5%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0746_1.fits: flux=1101.919±37.666 μJy (0.001102±0.000038 Jy) at λ=2.127 μm, mag_AB=16.295±0.037
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0075_1.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_1: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 27 pixels with NaN variance using median variance (2.792472e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.099" (0.83px) → diameter=2.07px (radius=1.04px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2129/3600 (59.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2205
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2205
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2129/3600 (59.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2129/3600 (59.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2129/3600 (59.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2129/3600 (59.1%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_1.fits: flux=1801.026±67.128 μJy (0.001801±0.000067 Jy) at λ=4.107 μm, mag_AB=15.761±0.040
Processing observations:  43%|████▎     | 46/108 [00:02<00:03, 19.34files/s]2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0075_1.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_1: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 3 pixels with NaN variance using median variance (1.412864e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.929" (0.80px) → diameter=2.01px (radius=1.00px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2864/3600 (79.6%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2326
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2326
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2864/3600 (79.6%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2864/3600 (79.6%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2864/3600 (79.6%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2864/3600 (79.6%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_1.fits: flux=1062.394±43.543 μJy (0.001062±0.000044 Jy) at λ=1.346 μm, mag_AB=16.334±0.044
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0075_2.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_2: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.392585e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.833" (0.79px) → diameter=1.97px (radius=0.98px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2170
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2170
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_2.fits: flux=1105.652±44.017 μJy (0.001106±0.000044 Jy) at λ=1.379 μm, mag_AB=16.291±0.043
Processing observations:  44%|████▍     | 48/108 [00:02<00:03, 18.88files/s]2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0075_2.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_2: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (2.996648e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.574" (0.91px) → diameter=2.27px (radius=1.13px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2203/3600 (61.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2300
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2300
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2203/3600 (61.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2203/3600 (61.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2203/3600 (61.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2203/3600 (61.2%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_2.fits: flux=2024.953±91.798 μJy (0.002025±0.000092 Jy) at λ=4.143 μm, mag_AB=15.634±0.049
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0075_3.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_3: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 7 pixels with NaN variance using median variance (1.339184e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.830" (0.79px) → diameter=1.97px (radius=0.98px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2873/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1844
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1844
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2873/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2873/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2873/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2873/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2873/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_3.fits: flux=1017.162±40.772 μJy (0.001017±0.000041 Jy) at λ=1.412 μm, mag_AB=16.382±0.044
Processing observations:  46%|████▋     | 50/108 [00:02<00:03, 19.17files/s]2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0075_3.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_3: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (3.166565e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.571" (0.91px) → diameter=2.27px (radius=1.13px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2184/3600 (60.7%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2336
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2336
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2184/3600 (60.7%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2184/3600 (60.7%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2184/3600 (60.7%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2184/3600 (60.7%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_3.fits: flux=2095.266±94.111 μJy (0.002095±0.000094 Jy) at λ=4.179 μm, mag_AB=15.597±0.049
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0075_4.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_4: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (1.324254e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.792" (0.78px) → diameter=1.95px (radius=0.98px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2860/3600 (79.4%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1701
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1701
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2860/3600 (79.4%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2860/3600 (79.4%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2860/3600 (79.4%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2860/3600 (79.4%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2860/3600 (79.4%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_4.fits: flux=1006.390±42.360 μJy (0.001006±0.000042 Jy) at λ=1.446 μm, mag_AB=16.393±0.046
Processing observations:  48%|████▊     | 52/108 [00:02<00:02, 19.09files/s]2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0075_4.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_4: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (3.447359e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.504" (0.90px) → diameter=2.24px (radius=1.12px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2162/3600 (60.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2517
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2517
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2162/3600 (60.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2162/3600 (60.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2162/3600 (60.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2162/3600 (60.1%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_4.fits: flux=2179.995±98.121 μJy (0.002180±0.000098 Jy) at λ=4.215 μm, mag_AB=15.554±0.049
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0206_2.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_2: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.581823e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.504" (0.73px) → diameter=1.84px (radius=0.92px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2872/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2306
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2306
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2872/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2872/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2872/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2872/3600 (79.8%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_2.fits: flux=950.834±41.364 μJy (0.000951±0.000041 Jy) at λ=1.102 μm, mag_AB=16.455±0.047
Processing observations:  50%|█████     | 54/108 [00:02<00:02, 19.06files/s]2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0206_2.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_2: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 16 pixels with NaN variance using median variance (2.212814e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.550" (0.90px) → diameter=2.26px (radius=1.13px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2151/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3802
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3802
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2151/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2151/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2151/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2151/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2151/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_2.fits: flux=2330.662±89.843 μJy (0.002331±0.000090 Jy) at λ=3.815 μm, mag_AB=15.481±0.042
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0206_3.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_3: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 21 pixels with NaN variance using median variance (2.206441e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.588" (0.91px) → diameter=2.27px (radius=1.14px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2150/3600 (59.7%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3323
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3323
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2150/3600 (59.7%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2150/3600 (59.7%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2150/3600 (59.7%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2150/3600 (59.7%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_3.fits: flux=2725.853±98.194 μJy (0.002726±0.000098 Jy) at λ=3.848 μm, mag_AB=15.311±0.039
Processing observations:  52%|█████▏    | 56/108 [00:03<00:02, 18.20files/s]2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0206_3.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_3: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (1.528159e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.506" (0.73px) → diameter=1.84px (radius=0.92px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2853/3600 (79.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1931
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1931
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2853/3600 (79.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2853/3600 (79.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2853/3600 (79.2%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2853/3600 (79.2%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_3.fits: flux=1082.146±44.309 μJy (0.001082±0.000044 Jy) at λ=1.128 μm, mag_AB=16.314±0.044
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0206_4.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_4: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 4 pixels with NaN variance using median variance (1.480095e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.188" (0.68px) → diameter=1.71px (radius=0.85px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1456
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1456
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_4.fits: flux=1026.325±39.947 μJy (0.001026±0.000040 Jy) at λ=1.154 μm, mag_AB=16.372±0.042
Processing observations:  54%|█████▎    | 58/108 [00:03<00:02, 18.35files/s]2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0206_4.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_4: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (2.241896e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.588" (0.91px) → diameter=2.27px (radius=1.14px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2153/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2988
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2988
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2153/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2153/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2153/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2153/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2153/3600 (59.8%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_4.fits: flux=2358.564±94.382 μJy (0.002359±0.000094 Jy) at λ=3.882 μm, mag_AB=15.468±0.043
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0241_1.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_1: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.471404e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.478" (0.73px) → diameter=1.82px (radius=0.91px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1484
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1484
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_1.fits: flux=867.443±40.227 μJy (0.000867±0.000040 Jy) at λ=1.182 μm, mag_AB=16.554±0.050
Processing observations:  56%|█████▌    | 60/108 [00:03<00:02, 18.71files/s]2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0241_1.fits
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_1: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (2.329182e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.527" (0.90px) → diameter=2.25px (radius=1.12px)
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2157/3600 (59.9%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3030
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3030
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2157/3600 (59.9%) pixels available
2025-11-13 00:33:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2157/3600 (59.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2157/3600 (59.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2157/3600 (59.9%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_1.fits: flux=2045.221±87.366 μJy (0.002045±0.000087 Jy) at λ=3.916 μm, mag_AB=15.623±0.046
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0241_2.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_2: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (1.441440e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.480" (0.73px) → diameter=1.82px (radius=0.91px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2859/3600 (79.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1353
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1353
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2859/3600 (79.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2859/3600 (79.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2859/3600 (79.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2859/3600 (79.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2859/3600 (79.4%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_2.fits: flux=963.083±42.628 μJy (0.000963±0.000043 Jy) at λ=1.209 μm, mag_AB=16.441±0.048
Processing observations:  57%|█████▋    | 62/108 [00:03<00:02, 19.04files/s]2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0241_2.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_2: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 28 pixels with NaN variance using median variance (2.362807e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.525" (0.90px) → diameter=2.25px (radius=1.12px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2126/3600 (59.1%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1901
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1901
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2126/3600 (59.1%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2126/3600 (59.1%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2126/3600 (59.1%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2126/3600 (59.1%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_2.fits: flux=2032.974±86.873 μJy (0.002033±0.000087 Jy) at λ=3.950 μm, mag_AB=15.630±0.046
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0241_3.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_3: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.451720e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.756" (0.77px) → diameter=1.94px (radius=0.97px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1532
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1532
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_3.fits: flux=966.438±44.684 μJy (0.000966±0.000045 Jy) at λ=1.239 μm, mag_AB=16.437±0.050
Processing observations:  59%|█████▉    | 64/108 [00:03<00:02, 19.04files/s]2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0241_3.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_3: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (2.401630e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.605" (0.91px) → diameter=2.28px (radius=1.14px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2125/3600 (59.0%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2596
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2596
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2125/3600 (59.0%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2125/3600 (59.0%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2125/3600 (59.0%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2125/3600 (59.0%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_3.fits: flux=1990.659±86.711 μJy (0.001991±0.000087 Jy) at λ=3.984 μm, mag_AB=15.653±0.047
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0241_4.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_4: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.448073e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.684" (0.76px) → diameter=1.91px (radius=0.95px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2885/3600 (80.1%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1694
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1694
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2885/3600 (80.1%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2885/3600 (80.1%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2885/3600 (80.1%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2885/3600 (80.1%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2885/3600 (80.1%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_4.fits: flux=942.211±41.840 μJy (0.000942±0.000042 Jy) at λ=1.268 μm, mag_AB=16.465±0.048
Processing observations:  61%|██████    | 66/108 [00:03<00:02, 19.01files/s]2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0241_4.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_4: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (2.518859e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.569" (0.74px) → diameter=1.86px (radius=0.93px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2155/3600 (59.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2444
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2444
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2155/3600 (59.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2155/3600 (59.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2155/3600 (59.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2155/3600 (59.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2155/3600 (59.9%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_4.fits: flux=1820.615±80.044 μJy (0.001821±0.000080 Jy) at λ=4.019 μm, mag_AB=15.749±0.048
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0366_1.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0366_1: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (2.634656e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.496" (0.89px) → diameter=2.23px (radius=1.12px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2189/3600 (60.8%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2615
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2615
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2189/3600 (60.8%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2189/3600 (60.8%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2189/3600 (60.8%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2189/3600 (60.8%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0366_1.fits: flux=2055.672±86.719 μJy (0.002056±0.000087 Jy) at λ=4.037 μm, mag_AB=15.618±0.046
Processing observations:  63%|██████▎   | 68/108 [00:03<00:02, 19.21files/s]2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0366_1.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0366_1: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 7 pixels with NaN variance using median variance (1.435891e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.538" (0.74px) → diameter=1.85px (radius=0.92px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1846
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1846
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0366_1.fits: flux=1041.061±40.612 μJy (0.001041±0.000041 Jy) at λ=1.284 μm, mag_AB=16.356±0.042
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0366_2.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0366_2: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.447795e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.536" (0.74px) → diameter=1.85px (radius=0.92px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2870/3600 (79.7%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2307
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2307
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2870/3600 (79.7%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2870/3600 (79.7%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2870/3600 (79.7%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2870/3600 (79.7%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2870/3600 (79.7%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0366_2.fits: flux=1015.715±41.439 μJy (0.001016±0.000041 Jy) at λ=1.315 μm, mag_AB=16.383±0.044
Processing observations:  65%|██████▍   | 70/108 [00:03<00:02, 18.92files/s]2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0366_2.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0366_2: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (2.910928e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.099" (0.83px) → diameter=2.07px (radius=1.04px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2204/3600 (61.2%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3046
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3046
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2204/3600 (61.2%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2204/3600 (61.2%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2204/3600 (61.2%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2204/3600 (61.2%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0366_2.fits: flux=1738.574±80.805 μJy (0.001739±0.000081 Jy) at λ=4.072 μm, mag_AB=15.800±0.050
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0204_4.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0204_4: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (8.066626e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.608" (0.91px) → diameter=2.28px (radius=1.14px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2652/3600 (73.7%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2096
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2096
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2652/3600 (73.7%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2652/3600 (73.7%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2652/3600 (73.7%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2652/3600 (73.7%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0204_4.fits: flux=962.074±40.974 μJy (0.000962±0.000041 Jy) at λ=2.438 μm, mag_AB=16.442±0.046
Processing observations:  67%|██████▋   | 72/108 [00:03<00:01, 18.65files/s]2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0204_4.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0204_4: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (1.516588e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.820" (0.78px) → diameter=1.96px (radius=0.98px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2944/3600 (81.8%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1701
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1701
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2944/3600 (81.8%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2944/3600 (81.8%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0204_4.fits: flux=445.904±37.093 μJy (0.000446±0.000037 Jy) at λ=0.751 μm, mag_AB=17.277±0.090
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0240_1.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_1: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (6.193488e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.958" (0.80px) → diameter=2.01px (radius=1.01px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2627/3600 (73.0%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2945
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2945
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2627/3600 (73.0%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2627/3600 (73.0%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2627/3600 (73.0%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2627/3600 (73.0%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_1.fits: flux=1053.824±34.742 μJy (0.001054±0.000035 Jy) at λ=2.501 μm, mag_AB=16.343±0.036
Processing observations:  69%|██████▊   | 74/108 [00:04<00:01, 18.72files/s]2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0240_1.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_1: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 11 pixels with NaN variance using median variance (1.562245e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.822" (0.78px) → diameter=1.96px (radius=0.98px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3041/3600 (84.5%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2093
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2093
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3041/3600 (84.5%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3041/3600 (84.5%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_1.fits: flux=597.272±39.962 μJy (0.000597±0.000040 Jy) at λ=0.768 μm, mag_AB=16.960±0.073
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0240_2.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_2: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (5.939406e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.960" (0.80px) → diameter=2.01px (radius=1.01px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3071
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3071
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_2.fits: flux=1073.086±34.625 μJy (0.001073±0.000035 Jy) at λ=2.567 μm, mag_AB=16.323±0.035
Processing observations:  70%|███████   | 76/108 [00:04<00:01, 18.53files/s]2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0240_2.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_2: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.550666e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.992" (0.81px) → diameter=2.03px (radius=1.02px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3018/3600 (83.8%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2133
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2133
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3018/3600 (83.8%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3018/3600 (83.8%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_2.fits: flux=535.552±39.404 μJy (0.000536±0.000039 Jy) at λ=0.786 μm, mag_AB=17.078±0.080
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0240_3.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_3: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.576395e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.647" (0.76px) → diameter=1.89px (radius=0.94px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3031/3600 (84.2%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2171
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2171
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3031/3600 (84.2%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3031/3600 (84.2%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_3.fits: flux=492.086±38.042 μJy (0.000492±0.000038 Jy) at λ=0.805 μm, mag_AB=17.170±0.084
Processing observations:  72%|███████▏  | 78/108 [00:04<00:01, 18.89files/s]2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0240_3.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_3: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (5.790259e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.314" (0.86px) → diameter=2.16px (radius=1.08px)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3242
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3242
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_3.fits: flux=1189.216±37.498 μJy (0.001189±0.000037 Jy) at λ=2.636 μm, mag_AB=16.212±0.034
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0240_4.fits
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_4: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:08 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (5.448314e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.302" (0.86px) → diameter=2.16px (radius=1.08px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3125
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3125
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_4.fits: flux=1102.399±36.971 μJy (0.001102±0.000037 Jy) at λ=2.706 μm, mag_AB=16.294±0.036
Processing observations:  74%|███████▍  | 80/108 [00:04<00:01, 18.90files/s]2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0240_4.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_4: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (1.576505e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.647" (0.76px) → diameter=1.89px (radius=0.94px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3039/3600 (84.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2252
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2252
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3039/3600 (84.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3039/3600 (84.4%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_4.fits: flux=582.431±39.542 μJy (0.000582±0.000040 Jy) at λ=0.824 μm, mag_AB=16.987±0.074
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0298_1.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0298_1: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.584829e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.838" (0.79px) → diameter=1.97px (radius=0.98px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3037/3600 (84.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2557
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2557
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3037/3600 (84.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3037/3600 (84.4%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0298_1.fits: flux=690.974±39.301 μJy (0.000691±0.000039 Jy) at λ=0.843 μm, mag_AB=16.801±0.062
Processing observations:  76%|███████▌  | 82/108 [00:04<00:01, 19.03files/s]2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0298_1.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0298_1: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 19 pixels with NaN variance using median variance (5.298661e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.589" (0.91px) → diameter=2.27px (radius=1.14px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3188
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3188
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0298_1.fits: flux=1196.569±36.788 μJy (0.001197±0.000037 Jy) at λ=2.779 μm, mag_AB=16.205±0.033
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0298_2.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0298_2: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 22 pixels with NaN variance using median variance (5.243953e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.575" (0.91px) → diameter=2.26px (radius=1.13px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2615/3600 (72.6%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3461
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3461
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2615/3600 (72.6%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2615/3600 (72.6%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2615/3600 (72.6%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2615/3600 (72.6%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0298_2.fits: flux=1350.574±38.946 μJy (0.001351±0.000039 Jy) at λ=2.854 μm, mag_AB=16.074±0.031
Processing observations:  78%|███████▊  | 84/108 [00:04<00:01, 19.06files/s]2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0298_2.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0298_2: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 7 pixels with NaN variance using median variance (1.500622e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.549" (0.74px) → diameter=1.85px (radius=0.92px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2080
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2080
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0298_2.fits: flux=754.124±39.575 μJy (0.000754±0.000040 Jy) at λ=0.863 μm, mag_AB=16.706±0.057
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0553_1.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_1: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (1.501274e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.687" (0.76px) → diameter=1.90px (radius=0.95px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3018/3600 (83.8%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2063
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2063
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3018/3600 (83.8%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3018/3600 (83.8%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_1.fits: flux=807.865±41.964 μJy (0.000808±0.000042 Jy) at λ=0.883 μm, mag_AB=16.632±0.056
Processing observations:  80%|███████▉  | 86/108 [00:04<00:01, 19.16files/s]2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0553_1.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_1: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 21 pixels with NaN variance using median variance (5.287452e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.383" (0.71px) → diameter=1.78px (radius=0.89px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.4092
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.4092
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_1.fits: flux=1063.322±33.050 μJy (0.001063±0.000033 Jy) at λ=2.931 μm, mag_AB=16.333±0.034
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0553_2.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_2: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (1.481494e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.403" (0.72px) → diameter=1.79px (radius=0.89px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2080
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2080
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_2.fits: flux=719.661±39.111 μJy (0.000720±0.000039 Jy) at λ=0.904 μm, mag_AB=16.757±0.059
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0553_2.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_2: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (4.931199e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=3.079" (0.50px) → diameter=1.25px (radius=0.63px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3528
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3528
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_2.fits: flux=751.148±26.300 μJy (0.000751±0.000026 Jy) at λ=3.011 μm, mag_AB=16.711±0.038
Processing observations:  82%|████████▏ | 89/108 [00:04<00:00, 19.51files/s]2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0553_3.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_3: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 7 pixels with NaN variance using median variance (4.747215e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=3.080" (0.50px) → diameter=1.25px (radius=0.63px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2624/3600 (72.9%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3728
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3728
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2624/3600 (72.9%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2624/3600 (72.9%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2624/3600 (72.9%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2624/3600 (72.9%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2624/3600 (72.9%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_3.fits: flux=643.977±35.197 μJy (0.000644±0.000035 Jy) at λ=3.094 μm, mag_AB=16.878±0.059
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0553_3.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_3: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (1.460178e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.399" (0.72px) → diameter=1.79px (radius=0.89px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2154
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2154
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_3.fits: flux=558.906±35.738 μJy (0.000559±0.000036 Jy) at λ=0.925 μm, mag_AB=17.032±0.069
Processing observations:  84%|████████▍ | 91/108 [00:04<00:00, 19.30files/s]2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0553_4.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_4: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 21 pixels with NaN variance using median variance (4.723504e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.255" (0.85px) → diameter=2.13px (radius=1.07px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2644/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3956
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3956
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2644/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2644/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2644/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2644/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_4.fits: flux=1423.584±38.378 μJy (0.001424±0.000038 Jy) at λ=3.178 μm, mag_AB=16.017±0.029
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0553_4.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_4: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 22 pixels with NaN variance using median variance (1.457800e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.449" (0.72px) → diameter=1.81px (radius=0.90px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3007/3600 (83.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2347
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2347
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3007/3600 (83.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3007/3600 (83.5%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_4.fits: flux=711.734±37.958 μJy (0.000712±0.000038 Jy) at λ=0.948 μm, mag_AB=16.769±0.058
Processing observations:  86%|████████▌ | 93/108 [00:05<00:00, 19.28files/s]2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0026_1.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_1: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (4.935230e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.284" (0.86px) → diameter=2.14px (radius=1.07px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2647/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.4528
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.4528
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2647/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2647/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2647/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2647/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2647/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_1.fits: flux=1520.030±39.160 μJy (0.001520±0.000039 Jy) at λ=3.265 μm, mag_AB=15.945±0.028
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0026_1.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_1: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 11 pixels with NaN variance using median variance (1.411780e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.573" (0.74px) → diameter=1.86px (radius=0.93px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3027/3600 (84.1%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1951
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1951
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3027/3600 (84.1%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3027/3600 (84.1%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_1.fits: flux=753.487±38.104 μJy (0.000753±0.000038 Jy) at λ=0.970 μm, mag_AB=16.707±0.055
Processing observations:  88%|████████▊ | 95/108 [00:05<00:00, 18.40files/s]2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0026_2.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_2: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (1.393711e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.576" (0.74px) → diameter=1.86px (radius=0.93px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3032/3600 (84.2%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1769
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1769
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3032/3600 (84.2%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3032/3600 (84.2%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_2.fits: flux=988.743±41.599 μJy (0.000989±0.000042 Jy) at λ=0.993 μm, mag_AB=16.412±0.046
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0026_2.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_2: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 20 pixels with NaN variance using median variance (4.739665e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.277" (0.86px) → diameter=2.14px (radius=1.07px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3908
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3908
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_2.fits: flux=1482.157±40.189 μJy (0.001482±0.000040 Jy) at λ=3.354 μm, mag_AB=15.973±0.029
Processing observations:  90%|████████▉ | 97/108 [00:05<00:00, 18.76files/s]2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0026_3.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_3: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (4.657418e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.495" (0.89px) → diameter=2.23px (radius=1.11px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2643/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3628
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3628
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2643/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2643/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2643/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2643/3600 (73.4%) pixels available
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_3.fits: flux=1414.463±38.439 μJy (0.001414±0.000038 Jy) at λ=3.445 μm, mag_AB=16.024±0.030
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0026_3.fits
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_3: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (1.373315e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.521" (0.74px) → diameter=1.85px (radius=0.92px)
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3041/3600 (84.5%) pixels available
2025-11-13 00:33:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1554
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1554
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3041/3600 (84.5%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3041/3600 (84.5%) pixels available
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_3.fits: flux=789.735±37.811 μJy (0.000790±0.000038 Jy) at λ=1.017 μm, mag_AB=16.656±0.052
Processing observations:  92%|█████████▏| 99/108 [00:05<00:00, 19.07files/s]2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0026_4.fits
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_4: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (4.719877e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.836" (0.95px) → diameter=2.37px (radius=1.18px)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2665/3600 (74.0%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3709
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3709
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2665/3600 (74.0%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2665/3600 (74.0%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2665/3600 (74.0%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2665/3600 (74.0%) pixels available
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_4.fits: flux=1667.974±40.322 μJy (0.001668±0.000040 Jy) at λ=3.538 μm, mag_AB=15.845±0.026
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0026_4.fits
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_4: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (1.343486e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.542" (0.74px) → diameter=1.85px (radius=0.92px)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3003/3600 (83.4%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1348
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1348
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3003/3600 (83.4%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3003/3600 (83.4%) pixels available
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_4.fits: flux=748.293±37.514 μJy (0.000748±0.000038 Jy) at λ=1.041 μm, mag_AB=16.715±0.054
Processing observations:  94%|█████████▎| 101/108 [00:05<00:00, 19.10files/s]2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0142_1.fits
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_1: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Repaired 19 pixels with NaN variance using median variance (5.108546e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.832" (0.95px) → diameter=2.37px (radius=1.18px)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2626/3600 (72.9%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.4118
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.4118
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2626/3600 (72.9%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2626/3600 (72.9%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2626/3600 (72.9%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2626/3600 (72.9%) pixels available
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_1.fits: flux=1657.464±40.785 μJy (0.001657±0.000041 Jy) at λ=3.634 μm, mag_AB=15.851±0.027
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0142_1.fits
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_1: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Repaired 12 pixels with NaN variance using median variance (1.690161e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.949" (0.80px) → diameter=2.01px (radius=1.00px)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3012/3600 (83.7%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.4808
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.4808
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3012/3600 (83.7%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3012/3600 (83.7%) pixels available
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_1.fits: flux=897.737±42.041 μJy (0.000898±0.000042 Jy) at λ=1.065 μm, mag_AB=16.517±0.051
Processing observations:  95%|█████████▌| 103/108 [00:05<00:00, 19.07files/s]2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0142_2.fits
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_2: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (3.226726e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.055" (0.82px) → diameter=2.05px (radius=1.03px)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3017/3600 (83.8%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 2.6388
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 2.6388
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3017/3600 (83.8%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3017/3600 (83.8%) pixels available
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_2.fits: flux=927.186±52.357 μJy (0.000927±0.000052 Jy) at λ=1.091 μm, mag_AB=16.482±0.061
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0142_2.fits
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_2: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (5.286015e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.639" (0.92px) → diameter=2.29px (radius=1.14px)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2637/3600 (73.2%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3300
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3300
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2637/3600 (73.2%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2637/3600 (73.2%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2637/3600 (73.2%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2637/3600 (73.2%) pixels available
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_2.fits: flux=1644.076±41.040 μJy (0.001644±0.000041 Jy) at λ=3.731 μm, mag_AB=15.860±0.027
Processing observations:  97%|█████████▋| 105/108 [00:05<00:00, 19.12files/s]2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0142_3.fits
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_3: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Repaired 16 pixels with NaN variance using median variance (1.359724e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.054" (0.82px) → diameter=2.05px (radius=1.03px)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1747
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1747
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_3.fits: flux=990.997±42.160 μJy (0.000991±0.000042 Jy) at λ=1.116 μm, mag_AB=16.410±0.046
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0142_3.fits
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_3: detector 4, shape (54, 60), units μJy/arcsec²
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (5.430989e-02). All repaired pixels have non-zero flags.
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.641" (0.92px) → diameter=2.29px (radius=1.14px)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2415/3240 (74.5%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2421
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2421
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2415/3240 (74.5%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2415/3240 (74.5%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2415/3240 (74.5%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2415/3240 (74.5%) pixels available
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_3.fits: flux=2274.172±45.958 μJy (0.002274±0.000046 Jy) at λ=3.832 μm, mag_AB=15.508±0.022
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W29_2A_0482_1.fits
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W29_2A_0482_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.133680e-01). All repaired pixels have non-zero flags.
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.018" (0.82px) → diameter=2.04px (radius=1.02px)
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2693/3600 (74.8%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1333
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1333
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2693/3600 (74.8%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2693/3600 (74.8%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2693/3600 (74.8%) pixels available
2025-11-13 00:33:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2693/3600 (74.8%) pixels available
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W29_2A_0482_1.fits: flux=1050.897±40.417 μJy (0.001051±0.000040 Jy) at λ=1.940 μm, mag_AB=16.346±0.042
Processing observations: 100%|██████████| 108/108 [00:05<00:00, 18.50files/s]
2025-11-13 00:33:10 - spxquery.processing.photometry - INFO - Successfully processed 108 observations
2025-11-13 00:33:10 - spxquery.processing.lightcurve - INFO - Generated light curve with 108 measurements
2025-11-13 00:33:10 - spxquery.processing.lightcurve - INFO - Saved light curve to demo_data/cloverleaf/results/lightcurve.csv
2025-11-13 00:33:10 - spxquery.core.pipeline - INFO - Marked stage 'processing' as complete
2025-11-13 00:33:10 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=visualization, completed=['query', 'download', 'processing']
2025-11-13 00:33:10 - spxquery.core.pipeline - INFO - Running visualization stage
2025-11-13 00:33:10 - spxquery.visualization.plots - INFO - Quality filtering: 108 total points (104 good, 4 rejected - shown as crosses)
2025-11-13 00:33:10 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)
2025-11-13 00:33:10 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)

============================================================
Light Curve Summary
============================================================
Total observations: 108
Time span: 33.1 days
MJD range: 60842.27 - 60875.36
Wavelength range: 0.75 - 4.97 μm
Number of bands: 6
Upper limits: 0
Mean SNR: 25.3

Observations per band:
  D1: 18
  D2: 18
  D3: 18
  D4: 18
  D5: 18
  D6: 18
============================================================

2025-11-13 00:33:10 - spxquery.visualization.plots - INFO - Saved combined plot to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:33:10 - spxquery.core.pipeline - INFO - Marked stage 'visualization' as complete
2025-11-13 00:33:10 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:10 - spxquery.core.pipeline - INFO - Visualization saved to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:33:11 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:11 - spxquery.core.pipeline - INFO - Pipeline execution complete

To run pipeline, uncomment the last two lines above.
../_images/tutorials_quickstart_demo_13_10.png
[7]:
# Method 2: Using run_pipeline() function

# ======================================
# === Old way and will be deprecated ===
# ======================================

print("Method 2: Using run_pipeline() with advanced_params_file")
print("=" * 70)

run_pipeline(
    ra=213.9427080,
    dec=11.4953890,
    source_name="cloverleaf",
    output_dir=Path("demo_data/cloverleaf"),
    advanced_params_file=params_file,  # <-- Load custom parameters
)

print("To run pipeline with custom parameters, uncomment the code above.")
print(f"Custom parameters will be loaded from: {params_file}")
2025-11-13 00:33:11 - spxquery.core.config - INFO - Loaded advanced parameters from demo_data/cloverleaf/config_params.yaml
2025-11-13 00:33:11 - spxquery.utils.params - INFO - Loaded advanced parameters from demo_data/cloverleaf/config_params.yaml
2025-11-13 00:33:11 - spxquery.core.pipeline - INFO - Initialized pipeline for source at RA=213.942708, Dec=11.495389
2025-11-13 00:33:11 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:11 - spxquery.core.pipeline - INFO - State file: cloverleaf.yaml
2025-11-13 00:33:11 - spxquery.core.pipeline - INFO - Starting full pipeline execution
2025-11-13 00:33:11 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:11 - spxquery.core.pipeline - INFO - Running query stage
2025-11-13 00:33:11 - spxquery.core.query - INFO - Querying SPHEREx observations for source at RA=213.942708, Dec=11.495389
Method 2: Using run_pipeline() with advanced_params_file
======================================================================
2025-11-13 00:33:37 - spxquery.core.query - INFO - Found 108 observations spanning 33.1 days
2025-11-13 00:33:37 - spxquery.core.pipeline - INFO - Marked stage 'query' as complete
2025-11-13 00:33:37 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=download, completed=['query']
2025-11-13 00:33:37 - spxquery.core.pipeline - INFO - Running download stage (skip_existing=True)
2025-11-13 00:33:37 - spxquery.core.download - INFO - Starting parallel download of 108 files
2025-11-13 00:33:37 - spxquery.core.download - INFO - Download settings: timeout=300s, retries=3, workers=4

============================================================
SPHEREx Archive Search Results
============================================================
Source: RA=213.942708, Dec=11.495389
        Name: cloverleaf
Query time: 2025-11-13 00:33:37

Total observations found: 108

Observations by band:
  D1 (0.75-1.09 μm):  18 observations
  D2 (1.10-1.62 μm):  18 observations
  D3 (1.63-2.41 μm):  18 observations
  D4 (2.42-3.82 μm):  18 observations
  D5 (3.83-4.41 μm):  18 observations
  D6 (4.42-5.00 μm):  18 observations

Time span: 33.1 days
Total data volume: 0.00 GB
============================================================

Downloading:   0%|          | 0/108 [00:00<?, ?files/s]2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:33:37 - spxquery.core.download - INFO - Skipping 2025W29_2A_0482_1.fits - already exists
Downloading: 100%|██████████| 108/108 [00:00<00:00, 5660.90files/s]
2025-11-13 00:33:37 - spxquery.core.download - INFO - Download complete: 108 successful, 0 failed
2025-11-13 00:33:37 - spxquery.core.download - INFO - Total size: 525.9 MB
2025-11-13 00:33:37 - spxquery.core.pipeline - INFO - Downloaded 108 files
2025-11-13 00:33:37 - spxquery.core.pipeline - INFO - Total data size: 0.00 GB (estimated) → 0.51 GB (actual)
2025-11-13 00:33:37 - spxquery.core.pipeline - INFO - Marked stage 'download' as complete
2025-11-13 00:33:37 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=processing, completed=['query', 'download']
2025-11-13 00:33:37 - spxquery.core.pipeline - INFO - Running processing stage
2025-11-13 00:33:37 - spxquery.core.pipeline - INFO - Processing 108 FITS files
2025-11-13 00:33:37 - spxquery.processing.photometry - INFO - Processing photometry for 108 observations
2025-11-13 00:33:37 - spxquery.processing.photometry - INFO - Using multiprocessing with 10 workers

============================================================
Download Summary
============================================================
Total files: 108
Successful: 108
Failed: 0
Total downloaded: 525.9 MB (0.51 GB)
============================================================

Processing observations: 100%|██████████| 108/108 [00:02<00:00, 47.21files/s]
2025-11-13 00:33:39 - spxquery.processing.photometry - INFO - Successfully processed 108 observations
2025-11-13 00:33:39 - spxquery.processing.lightcurve - INFO - Generated light curve with 108 measurements
2025-11-13 00:33:39 - spxquery.processing.lightcurve - INFO - Saved light curve to demo_data/cloverleaf/results/lightcurve.csv
2025-11-13 00:33:39 - spxquery.core.pipeline - INFO - Marked stage 'processing' as complete
2025-11-13 00:33:39 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=visualization, completed=['query', 'download', 'processing']
2025-11-13 00:33:39 - spxquery.core.pipeline - INFO - Running visualization stage
2025-11-13 00:33:39 - spxquery.visualization.plots - INFO - Quality filtering: 108 total points (104 good, 4 rejected - shown as crosses)
2025-11-13 00:33:39 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)
2025-11-13 00:33:39 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)

============================================================
Light Curve Summary
============================================================
Total observations: 108
Time span: 33.1 days
MJD range: 60842.27 - 60875.36
Wavelength range: 0.75 - 4.97 μm
Number of bands: 6
Upper limits: 0
Mean SNR: 25.3

Observations per band:
  D1: 18
  D2: 18
  D3: 18
  D4: 18
  D5: 18
  D6: 18
============================================================

2025-11-13 00:33:39 - spxquery.visualization.plots - INFO - Saved combined plot to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:33:39 - spxquery.core.pipeline - INFO - Marked stage 'visualization' as complete
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Visualization saved to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Pipeline execution complete
To run pipeline with custom parameters, uncomment the code above.
Custom parameters will be loaded from: demo_data/cloverleaf/config_params.yaml
../_images/tutorials_quickstart_demo_14_10.png

Option A: One-Click Resume

The simplest way - let the pipeline automatically run all remaining stages.

[8]:
# Uncomment to run one-click resume:
pipeline_resumed = SPXQueryPipeline(AdvancedConfig.from_yaml_file(output_dir / "cloverleaf.yaml"))
pipeline_resumed.resume(skip_existing_downloads=True)
print("\nFinal status after resume:")
pipeline_resumed.print_status()

print("To use one-click resume, uncomment the lines above.")
print("This will automatically complete all remaining stages.")
2025-11-13 00:33:40 - spxquery.core.config - INFO - Loaded advanced parameters from demo_data/cloverleaf/cloverleaf.yaml
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Initialized pipeline for source at RA=213.942708, Dec=11.495389
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - State file: cloverleaf.yaml
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Loaded pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Resuming from saved state
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - All stages already complete

Pipeline Status:
  Completed stages: ['query', 'download', 'processing', 'visualization']
  Pending stages: None
  Current stage: complete


Final status after resume:

Pipeline Status:
  Completed stages: ['query', 'download', 'processing', 'visualization']
  Pending stages: None
  Current stage: complete

To use one-click resume, uncomment the lines above.
This will automatically complete all remaining stages.

Option B: Step-by-Step Manual Execution

Run each remaining stage manually for more control.

[9]:
# Check what stages still need to be run
print("Checking which stages remain...")
print(f"\nCompleted stages: {pipeline_resumed.state.completed_stages}")
print(f"Pipeline stages: {pipeline_resumed.config.pipeline_stages}")

remaining = [s for s in pipeline_resumed.config.pipeline_stages if s not in pipeline_resumed.state.completed_stages]
print(f"\nRemaining stages: {remaining if remaining else 'None - all complete!'}")

print("\n✓ Pipeline stages now in AdvancedConfig (not PipelineState)")
print("  - No duplicate entries in YAML file")
print("  - Accessible via: pipeline.config.pipeline_stages")
Checking which stages remain...

Completed stages: ['query', 'download', 'processing', 'visualization']
Pipeline stages: ['query', 'download', 'processing', 'visualization']

Remaining stages: None - all complete!

✓ Pipeline stages now in AdvancedConfig (not PipelineState)
  - No duplicate entries in YAML file
  - Accessible via: pipeline.config.pipeline_stages
[10]:
# Step 1: Download (if not already completed)
if "download" in pipeline_resumed.state.completed_stages:
    print("✓ Download stage already completed. Skipping.")
else:
    print("\nRunning download stage...")
    pipeline_resumed.run_download(skip_existing=True)
    print("\n✓ Download complete!")
    pipeline_resumed.print_status()
✓ Download stage already completed. Skipping.
[11]:
# Step 2: Processing (if not already completed)
if "processing" in pipeline_resumed.state.completed_stages:
    print("✓ Processing stage already completed. Skipping.")
else:
    print("\nRunning processing stage...")
    pipeline_resumed.run_processing()
    print("\n✓ Processing complete!")
    pipeline_resumed.print_status()
✓ Processing stage already completed. Skipping.
[12]:
# Step 3: Visualization (if not already completed)
if "visualization" in pipeline_resumed.state.completed_stages:
    print("✓ Visualization stage already completed. Skipping.")
else:
    print("\nRunning visualization stage...")
    pipeline_resumed.run_visualization()
    print("\n✓ Visualization complete!")
    pipeline_resumed.print_status()

print("\n" + "=" * 70)
print("ALL STAGES COMPLETE!")
print("=" * 70)
✓ Visualization stage already completed. Skipping.

======================================================================
ALL STAGES COMPLETE!
======================================================================

View Results

After running the pipeline, results are saved in the output directory.

[13]:
# Display the light curve plot
import pandas as pd
from IPython.display import Image, display

# Show plot from the one-click example
plot_path = output_dir / "results" / "combined_plot.png"
if plot_path.exists():
    print("\nLight curve plot:")
    display(Image(filename=str(plot_path)))
else:
    print(f"Plot not found at {plot_path}")

Light curve plot:
../_images/tutorials_quickstart_demo_23_1.png

Background and Aperture Method Comparison

[14]:
# Display the light curve data
csv_path = output_dir / "results" / "lightcurve.csv"
if csv_path.exists():
    df = pd.read_csv(csv_path, comment="#")
    print("\nLight curve data (first 10 rows):")
    display(df.head(10))
    print(f"\nTotal measurements: {len(df)}")
else:
    print(f"CSV not found at {csv_path}")

Light curve data (first 10 rows):
obs_id mjd flux flux_error mag_ab mag_ab_error wavelength bandwidth band flag flag_binary pix_x pix_y is_upper_limit snr
0 2025W25_1B_0062_1 60842.269794 1038.190806 38.594902 16.359307 0.040362 1.940270 0.047790 D3 2097152 1000000000000000000000 29.226040 29.946309 False 26.899687
1 2025W25_1B_0062_1 60842.269794 2436.806596 110.306551 15.432947 0.049148 4.658078 0.036448 D6 2097152 1000000000000000000000 29.557889 29.859574 False 22.091223
2 2025W25_1B_0062_2 60842.271286 1023.153740 37.410014 16.375148 0.039698 1.984936 0.048890 D3 2097152 1000000000000000000000 29.228793 29.049005 False 27.349729
3 2025W25_1B_0062_2 60842.271286 1933.090874 93.695601 15.684369 0.052625 4.691950 0.036713 D6 2097152 1000000000000000000000 29.420567 29.979960 False 20.631608
4 2025W25_1B_0062_3 60842.272779 886.621010 35.335209 16.530655 0.043271 2.031681 0.050041 D3 2097152 1000000000000000000000 29.779715 29.163495 False 25.091716
5 2025W25_1B_0062_3 60842.272779 3041.467188 146.377337 15.192292 0.052253 4.726364 0.036983 D6 2097152 1000000000000000000000 29.694355 29.330708 False 20.778266
6 2025W25_1B_0062_4 60842.274271 1035.728823 35.127564 16.361885 0.036824 2.078427 0.051193 D3 2097152 1000000000000000000000 29.027695 29.260076 False 29.484789
7 2025W25_1B_0062_4 60842.274271 2935.771804 149.228218 15.230694 0.055189 4.760819 0.037252 D6 2097152 1000000000000000000000 29.752959 29.544355 False 19.673034
8 2025W25_1B_0178_1 60842.882044 2720.236164 127.554061 15.313483 0.050911 4.830310 0.037796 D6 2097152 1000000000000000000000 29.663109 29.794504 False 21.326143
9 2025W25_1B_0178_1 60842.882044 1065.492761 36.851711 16.331124 0.037552 2.175510 0.053584 D3 2097152 1000000000000000000000 29.418622 29.210586 False 28.912979

Total measurements: 108

Background Method Comparison (NEW in v0.2.1)

SPXQuery v0.2.1 introduces two methods for local background estimation:

Annulus Method (Traditional)

  • Uses an annular region around the source aperture

  • Inner radius offset from aperture edge

  • Outer radius determined by minimum area requirement

  • Best for isolated sources in sparse fields

Window Method (NEW)

  • Uses a rectangular window centered on the source

  • Automatically excludes pixels intersecting the aperture

  • Simpler geometry, easier to visualize

  • More robust in crowded fields or near image edges

Below we demonstrate both methods and compare their results.

Recommendations

When to use Annulus method:

  • Isolated point sources in sparse fields

  • When local background varies smoothly

  • Traditional aperture photometry workflows

When to use Window method:

  • Crowded fields with nearby sources

  • Sources near image edges or defects

  • When you want simpler background geometry

  • Faster computation (simpler geometry)

Configuration tip: Save your preferred method in a YAML template for consistent analysis!

[15]:
# Setup: Create configurations for both background methods
from spxquery.core.config import PhotometryConfig, AdvancedConfig
import pandas as pd
import matplotlib.pyplot as plt

# Configuration with annulus background (default)
advanced_annulus = AdvancedConfig.from_yaml_file(output_dir / "cloverleaf.yaml")
advanced_annulus.update(
    aperture_method="fixed", aperture_diameter=2.0, background_method="annulus", annulus_inner_offset=1.414
)

# Configuration with window background (NEW)
advanced_window = AdvancedConfig.from_yaml_file(output_dir / "cloverleaf.yaml")
advanced_window.update(aperture_method="fixed", aperture_diameter=2.0, background_method="window", window_size=50)

print("✓ Configurations created:")
print(f"  Annulus: method={advanced_annulus.photometry.background_method}")
print(f"  Window: method={advanced_window.photometry.background_method}, size={advanced_window.photometry.window_size}")
2025-11-13 00:33:40 - spxquery.core.config - INFO - Loaded advanced parameters from demo_data/cloverleaf/cloverleaf.yaml
2025-11-13 00:33:40 - spxquery.core.config - INFO - Updated parameters: ['aperture_method', 'aperture_diameter', 'background_method', 'annulus_inner_offset']
2025-11-13 00:33:40 - spxquery.core.config - INFO - Loaded advanced parameters from demo_data/cloverleaf/cloverleaf.yaml
2025-11-13 00:33:40 - spxquery.core.config - INFO - Updated parameters: ['aperture_method', 'aperture_diameter', 'background_method', 'window_size']
✓ Configurations created:
  Annulus: method=annulus
  Window: method=window, size=50
[16]:
# Demo 1: Run pipeline with annulus background
config_annulus = SPXQueryPipeline(advanced_annulus)
config_annulus.run_full_pipeline(skip_existing_downloads=True)
df_annulus = pd.read_csv(output_dir / "results/lightcurve.csv", comment="#")
print("Annulus method configuration ready.")
print("Uncomment the code above to run the pipeline.")
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Initialized pipeline for source at RA=213.942708, Dec=11.495389
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - State file: cloverleaf.yaml
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Starting full pipeline execution
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:40 - spxquery.core.pipeline - INFO - Running query stage
2025-11-13 00:33:40 - spxquery.core.query - INFO - Querying SPHEREx observations for source at RA=213.942708, Dec=11.495389
2025-11-13 00:33:46 - spxquery.core.query - INFO - Found 108 observations spanning 33.1 days
2025-11-13 00:33:46 - spxquery.core.pipeline - INFO - Marked stage 'query' as complete
2025-11-13 00:33:46 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=download, completed=['query']
2025-11-13 00:33:46 - spxquery.core.pipeline - INFO - Running download stage (skip_existing=True)
2025-11-13 00:33:46 - spxquery.core.download - INFO - Starting parallel download of 108 files
2025-11-13 00:33:46 - spxquery.core.download - INFO - Download settings: timeout=300s, retries=3, workers=4

============================================================
SPHEREx Archive Search Results
============================================================
Source: RA=213.942708, Dec=11.495389
        Name: cloverleaf
Query time: 2025-11-13 00:33:46

Total observations found: 108

Observations by band:
  D1 (0.75-1.09 μm):  18 observations
  D2 (1.10-1.62 μm):  18 observations
  D3 (1.63-2.41 μm):  18 observations
  D4 (2.42-3.82 μm):  18 observations
  D5 (3.83-4.41 μm):  18 observations
  D6 (4.42-5.00 μm):  18 observations

Time span: 33.1 days
Total data volume: 0.00 GB
============================================================

Downloading:   0%|          | 0/108 [00:00<?, ?files/s]2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:33:46 - spxquery.core.download - INFO - Skipping 2025W29_2A_0482_1.fits - already exists
Downloading: 100%|██████████| 108/108 [00:00<00:00, 4835.66files/s]
2025-11-13 00:33:46 - spxquery.core.download - INFO - Download complete: 108 successful, 0 failed
2025-11-13 00:33:46 - spxquery.core.download - INFO - Total size: 525.9 MB
2025-11-13 00:33:46 - spxquery.core.pipeline - INFO - Downloaded 108 files
2025-11-13 00:33:46 - spxquery.core.pipeline - INFO - Total data size: 0.00 GB (estimated) → 0.51 GB (actual)
2025-11-13 00:33:46 - spxquery.core.pipeline - INFO - Marked stage 'download' as complete
2025-11-13 00:33:46 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=processing, completed=['query', 'download']
2025-11-13 00:33:46 - spxquery.core.pipeline - INFO - Running processing stage
2025-11-13 00:33:46 - spxquery.core.pipeline - INFO - Processing 108 FITS files
2025-11-13 00:33:46 - spxquery.processing.photometry - INFO - Processing photometry for 108 observations
2025-11-13 00:33:46 - spxquery.processing.photometry - INFO - Using multiprocessing with 10 workers

============================================================
Download Summary
============================================================
Total files: 108
Successful: 108
Failed: 0
Total downloaded: 525.9 MB (0.51 GB)
============================================================

Processing observations: 100%|██████████| 108/108 [00:01<00:00, 104.66files/s]
2025-11-13 00:33:47 - spxquery.processing.photometry - INFO - Successfully processed 108 observations
2025-11-13 00:33:47 - spxquery.processing.lightcurve - INFO - Generated light curve with 108 measurements
2025-11-13 00:33:47 - spxquery.processing.lightcurve - INFO - Saved light curve to demo_data/cloverleaf/results/lightcurve.csv
2025-11-13 00:33:47 - spxquery.core.pipeline - INFO - Marked stage 'processing' as complete
2025-11-13 00:33:47 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=visualization, completed=['query', 'download', 'processing']
2025-11-13 00:33:47 - spxquery.core.pipeline - INFO - Running visualization stage
2025-11-13 00:33:47 - spxquery.visualization.plots - INFO - Quality filtering: 108 total points (105 good, 3 rejected - shown as crosses)
2025-11-13 00:33:47 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)
2025-11-13 00:33:47 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)

============================================================
Light Curve Summary
============================================================
Total observations: 108
Time span: 33.1 days
MJD range: 60842.27 - 60875.36
Wavelength range: 0.75 - 4.97 μm
Number of bands: 6
Upper limits: 0
Mean SNR: 25.4

Observations per band:
  D1: 18
  D2: 18
  D3: 18
  D4: 18
  D5: 18
  D6: 18
============================================================

2025-11-13 00:33:47 - spxquery.visualization.plots - INFO - Saved combined plot to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:33:47 - spxquery.core.pipeline - INFO - Marked stage 'visualization' as complete
2025-11-13 00:33:47 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:47 - spxquery.core.pipeline - INFO - Visualization saved to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:33:47 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:47 - spxquery.core.pipeline - INFO - Pipeline execution complete
Annulus method configuration ready.
Uncomment the code above to run the pipeline.
../_images/tutorials_quickstart_demo_29_8.png
[17]:
# Demo 2: Run pipeline with window background
config_window = SPXQueryPipeline(advanced_window)
config_window.run_full_pipeline(skip_existing_downloads=True)
df_window = pd.read_csv(output_dir / "results/lightcurve.csv", comment="#")
print("Window method configuration ready.")
print("Uncomment the code above to run the pipeline.")
2025-11-13 00:33:48 - spxquery.core.pipeline - INFO - Initialized pipeline for source at RA=213.942708, Dec=11.495389
2025-11-13 00:33:48 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:48 - spxquery.core.pipeline - INFO - State file: cloverleaf.yaml
2025-11-13 00:33:48 - spxquery.core.pipeline - INFO - Starting full pipeline execution
2025-11-13 00:33:48 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:48 - spxquery.core.pipeline - INFO - Running query stage
2025-11-13 00:33:48 - spxquery.core.query - INFO - Querying SPHEREx observations for source at RA=213.942708, Dec=11.495389
2025-11-13 00:33:52 - spxquery.core.query - INFO - Found 108 observations spanning 33.1 days
2025-11-13 00:33:52 - spxquery.core.pipeline - INFO - Marked stage 'query' as complete
2025-11-13 00:33:52 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=download, completed=['query']
2025-11-13 00:33:52 - spxquery.core.pipeline - INFO - Running download stage (skip_existing=True)
2025-11-13 00:33:52 - spxquery.core.download - INFO - Starting parallel download of 108 files
2025-11-13 00:33:52 - spxquery.core.download - INFO - Download settings: timeout=300s, retries=3, workers=4

============================================================
SPHEREx Archive Search Results
============================================================
Source: RA=213.942708, Dec=11.495389
        Name: cloverleaf
Query time: 2025-11-13 00:33:52

Total observations found: 108

Observations by band:
  D1 (0.75-1.09 μm):  18 observations
  D2 (1.10-1.62 μm):  18 observations
  D3 (1.63-2.41 μm):  18 observations
  D4 (2.42-3.82 μm):  18 observations
  D5 (3.83-4.41 μm):  18 observations
  D6 (4.42-5.00 μm):  18 observations

Time span: 33.1 days
Total data volume: 0.00 GB
============================================================

Downloading:   0%|          | 0/108 [00:00<?, ?files/s]2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:33:52 - spxquery.core.download - INFO - Skipping 2025W29_2A_0482_1.fits - already exists
Downloading: 100%|██████████| 108/108 [00:00<00:00, 4743.25files/s]
2025-11-13 00:33:52 - spxquery.core.download - INFO - Download complete: 108 successful, 0 failed
2025-11-13 00:33:52 - spxquery.core.download - INFO - Total size: 525.9 MB
2025-11-13 00:33:52 - spxquery.core.pipeline - INFO - Downloaded 108 files
2025-11-13 00:33:52 - spxquery.core.pipeline - INFO - Total data size: 0.00 GB (estimated) → 0.51 GB (actual)
2025-11-13 00:33:52 - spxquery.core.pipeline - INFO - Marked stage 'download' as complete
2025-11-13 00:33:52 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=processing, completed=['query', 'download']
2025-11-13 00:33:52 - spxquery.core.pipeline - INFO - Running processing stage
2025-11-13 00:33:52 - spxquery.core.pipeline - INFO - Processing 108 FITS files
2025-11-13 00:33:52 - spxquery.processing.photometry - INFO - Processing photometry for 108 observations
2025-11-13 00:33:52 - spxquery.processing.photometry - INFO - Using multiprocessing with 10 workers

============================================================
Download Summary
============================================================
Total files: 108
Successful: 108
Failed: 0
Total downloaded: 525.9 MB (0.51 GB)
============================================================

Processing observations:  88%|████████▊ | 95/108 [00:00<00:00, 158.77files/s]Background window [4:55, -2:49] exceeds image boundaries, clipped to [4:55, 0:49]
Processing observations: 100%|██████████| 108/108 [00:00<00:00, 111.76files/s]
2025-11-13 00:33:53 - spxquery.processing.photometry - INFO - Successfully processed 108 observations
2025-11-13 00:33:53 - spxquery.processing.lightcurve - INFO - Generated light curve with 108 measurements
2025-11-13 00:33:53 - spxquery.processing.lightcurve - INFO - Saved light curve to demo_data/cloverleaf/results/lightcurve.csv
2025-11-13 00:33:53 - spxquery.core.pipeline - INFO - Marked stage 'processing' as complete
2025-11-13 00:33:53 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=visualization, completed=['query', 'download', 'processing']
2025-11-13 00:33:53 - spxquery.core.pipeline - INFO - Running visualization stage
2025-11-13 00:33:53 - spxquery.visualization.plots - INFO - Quality filtering: 108 total points (105 good, 3 rejected - shown as crosses)
2025-11-13 00:33:53 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)
2025-11-13 00:33:53 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)

============================================================
Light Curve Summary
============================================================
Total observations: 108
Time span: 33.1 days
MJD range: 60842.27 - 60875.36
Wavelength range: 0.75 - 4.97 μm
Number of bands: 6
Upper limits: 0
Mean SNR: 26.2

Observations per band:
  D1: 18
  D2: 18
  D3: 18
  D4: 18
  D5: 18
  D6: 18
============================================================

2025-11-13 00:33:53 - spxquery.visualization.plots - INFO - Saved combined plot to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:33:53 - spxquery.core.pipeline - INFO - Marked stage 'visualization' as complete
2025-11-13 00:33:53 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:53 - spxquery.core.pipeline - INFO - Visualization saved to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:33:53 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:53 - spxquery.core.pipeline - INFO - Pipeline execution complete
Window method configuration ready.
Uncomment the code above to run the pipeline.
../_images/tutorials_quickstart_demo_30_8.png
[18]:
# Compare flux measurements
fig, axes = plt.subplots(1, 2, figsize=(12, 4))

# Plot 1: Flux comparison
axes[0].scatter(df_annulus["flux"], df_window["flux"], alpha=0.6)
axes[0].plot([0, max(df_annulus["flux"])], [0, max(df_annulus["flux"])], "k--", alpha=0.3)
axes[0].set_xlabel("Annulus Flux (MJy/sr)")
axes[0].set_ylabel("Window Flux (MJy/sr)")
axes[0].set_title("Flux Comparison")

# Plot 2: Difference
flux_diff = (df_window["flux"] - df_annulus["flux"]) / df_annulus["flux"] * 100
axes[1].hist(flux_diff, bins=20, alpha=0.7)
axes[1].set_xlabel("Relative Difference (%)")
axes[1].set_ylabel("Count")
axes[1].set_title("Flux Difference Distribution")
axes[1].axvline(0, color="k", linestyle="--", alpha=0.3)

plt.tight_layout()
plt.show()

print(f"Mean flux difference: {flux_diff.mean():.2f}%")
print(f"Std flux difference: {flux_diff.std():.2f}%")
/var/folders/z5/qygyj_xj7dq109c9rzqq2wv40000gn/T/ipykernel_78266/1917494619.py:19: UserWarning: The figure layout has changed to tight
  plt.tight_layout()
../_images/tutorials_quickstart_demo_31_1.png
Mean flux difference: 0.22%
Std flux difference: 1.57%

Aperture Sizing Comparison (NEW in v0.2.1)

SPXQuery v0.2.1 introduces adaptive aperture sizing based on PSF FWHM:

Fixed Aperture (Traditional)

  • User specifies aperture diameter in pixels

  • Same aperture size for all observations

  • Simple, predictable, widely used

  • May be suboptimal when seeing varies

FWHM-Based Aperture (NEW)

  • Aperture size adapts to PSF FWHM for each observation

  • aperture_diameter = FWHM × fwhm_multiplier

  • Optimizes signal-to-noise ratio

  • Automatically falls back to fixed aperture if FWHM estimation fails

Below we demonstrate both methods and compare their photometric results.

[19]:
# Setup: Create configurations for both aperture methods

# Configuration with fixed aperture (traditional)
advanced_fixed = AdvancedConfig.from_yaml_file(output_dir / "cloverleaf.yaml")
advanced_fixed.update(aperture_method="fixed", aperture_diameter=3.0, background_method="window", window_size=50)

# Configuration with FWHM-based aperture (NEW)
advanced_fwhm = AdvancedConfig.from_yaml_file(output_dir / "cloverleaf.yaml")
advanced_fwhm.update(
    aperture_method="fwhm",
    fwhm_multiplier=3.0,
    aperture_diameter=3.0,
    background_method="window",
    window_size=50,
    max_processing_workers=1,
)


print("✓ Configurations created:")
print(
    f"  Fixed: method={advanced_fixed.photometry.aperture_method}, diameter={advanced_fixed.photometry.aperture_diameter}"
)
print(
    f"  FWHM: method={advanced_fwhm.photometry.aperture_method}, multiplier={advanced_fwhm.photometry.fwhm_multiplier}"
)
2025-11-13 00:33:54 - spxquery.core.config - INFO - Loaded advanced parameters from demo_data/cloverleaf/cloverleaf.yaml
2025-11-13 00:33:54 - spxquery.core.config - INFO - Updated parameters: ['aperture_method', 'aperture_diameter', 'background_method', 'window_size']
2025-11-13 00:33:54 - spxquery.core.config - INFO - Loaded advanced parameters from demo_data/cloverleaf/cloverleaf.yaml
2025-11-13 00:33:54 - spxquery.core.config - INFO - Updated parameters: ['aperture_method', 'fwhm_multiplier', 'aperture_diameter', 'background_method', 'window_size', 'max_processing_workers']
✓ Configurations created:
  Fixed: method=fixed, diameter=3.0
  FWHM: method=fwhm, multiplier=3.0
[20]:
# Demo 1: Run pipeline with fixed aperture
config_fixed = SPXQueryPipeline(advanced_fixed)
config_fixed.run_full_pipeline(skip_existing_downloads=True)
df_fixed = pd.read_csv(output_dir / "results/lightcurve.csv", comment="#")

print("Fixed aperture configuration ready.")
print(f"  Aperture diameter: {advanced_fixed.photometry.aperture_diameter} pixels (constant)")
print("Uncomment the code above to run the pipeline.")
2025-11-13 00:33:54 - spxquery.core.pipeline - INFO - Initialized pipeline for source at RA=213.942708, Dec=11.495389
2025-11-13 00:33:54 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:54 - spxquery.core.pipeline - INFO - State file: cloverleaf.yaml
2025-11-13 00:33:54 - spxquery.core.pipeline - INFO - Starting full pipeline execution
2025-11-13 00:33:54 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:33:54 - spxquery.core.pipeline - INFO - Running query stage
2025-11-13 00:33:54 - spxquery.core.query - INFO - Querying SPHEREx observations for source at RA=213.942708, Dec=11.495389
2025-11-13 00:33:58 - spxquery.core.query - INFO - Found 108 observations spanning 33.1 days
2025-11-13 00:33:58 - spxquery.core.pipeline - INFO - Marked stage 'query' as complete
2025-11-13 00:33:58 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=download, completed=['query']
2025-11-13 00:33:58 - spxquery.core.pipeline - INFO - Running download stage (skip_existing=True)
2025-11-13 00:33:58 - spxquery.core.download - INFO - Starting parallel download of 108 files
2025-11-13 00:33:58 - spxquery.core.download - INFO - Download settings: timeout=300s, retries=3, workers=4

============================================================
SPHEREx Archive Search Results
============================================================
Source: RA=213.942708, Dec=11.495389
        Name: cloverleaf
Query time: 2025-11-13 00:33:58

Total observations found: 108

Observations by band:
  D1 (0.75-1.09 μm):  18 observations
  D2 (1.10-1.62 μm):  18 observations
  D3 (1.63-2.41 μm):  18 observations
  D4 (2.42-3.82 μm):  18 observations
  D5 (3.83-4.41 μm):  18 observations
  D6 (4.42-5.00 μm):  18 observations

Time span: 33.1 days
Total data volume: 0.00 GB
============================================================

Downloading:   0%|          | 0/108 [00:00<?, ?files/s]2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:33:58 - spxquery.core.download - INFO - Skipping 2025W29_2A_0482_1.fits - already exists
Downloading: 100%|██████████| 108/108 [00:00<00:00, 5247.25files/s]
2025-11-13 00:33:58 - spxquery.core.download - INFO - Download complete: 108 successful, 0 failed
2025-11-13 00:33:58 - spxquery.core.download - INFO - Total size: 525.9 MB
2025-11-13 00:33:58 - spxquery.core.pipeline - INFO - Downloaded 108 files
2025-11-13 00:33:58 - spxquery.core.pipeline - INFO - Total data size: 0.00 GB (estimated) → 0.51 GB (actual)
2025-11-13 00:33:58 - spxquery.core.pipeline - INFO - Marked stage 'download' as complete
2025-11-13 00:33:58 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=processing, completed=['query', 'download']
2025-11-13 00:33:58 - spxquery.core.pipeline - INFO - Running processing stage
2025-11-13 00:33:58 - spxquery.core.pipeline - INFO - Processing 108 FITS files
2025-11-13 00:33:58 - spxquery.processing.photometry - INFO - Processing photometry for 108 observations
2025-11-13 00:33:58 - spxquery.processing.photometry - INFO - Using multiprocessing with 10 workers

============================================================
Download Summary
============================================================
Total files: 108
Successful: 108
Failed: 0
Total downloaded: 525.9 MB (0.51 GB)
============================================================

Processing observations:  92%|█████████▏| 99/108 [00:00<00:00, 158.24files/s]Background window [4:55, -2:49] exceeds image boundaries, clipped to [4:55, 0:49]
Processing observations: 100%|██████████| 108/108 [00:00<00:00, 110.79files/s]
2025-11-13 00:33:59 - spxquery.processing.photometry - INFO - Successfully processed 108 observations
2025-11-13 00:33:59 - spxquery.processing.lightcurve - INFO - Generated light curve with 108 measurements
2025-11-13 00:33:59 - spxquery.processing.lightcurve - INFO - Saved light curve to demo_data/cloverleaf/results/lightcurve.csv
2025-11-13 00:33:59 - spxquery.core.pipeline - INFO - Marked stage 'processing' as complete
2025-11-13 00:33:59 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=visualization, completed=['query', 'download', 'processing']
2025-11-13 00:33:59 - spxquery.core.pipeline - INFO - Running visualization stage
2025-11-13 00:33:59 - spxquery.visualization.plots - INFO - Quality filtering: 108 total points (101 good, 7 rejected - shown as crosses)
2025-11-13 00:33:59 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)
2025-11-13 00:33:59 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)

============================================================
Light Curve Summary
============================================================
Total observations: 108
Time span: 33.1 days
MJD range: 60842.27 - 60875.36
Wavelength range: 0.75 - 4.97 μm
Number of bands: 6
Upper limits: 0
Mean SNR: 27.0

Observations per band:
  D1: 18
  D2: 18
  D3: 18
  D4: 18
  D5: 18
  D6: 18
============================================================

2025-11-13 00:34:00 - spxquery.visualization.plots - INFO - Saved combined plot to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - Marked stage 'visualization' as complete
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - Visualization saved to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - Pipeline execution complete
Fixed aperture configuration ready.
  Aperture diameter: 3.0 pixels (constant)
Uncomment the code above to run the pipeline.
../_images/tutorials_quickstart_demo_34_8.png
[21]:
# Demo 2: Run pipeline with FWHM-based aperture
config_fwhm = SPXQueryPipeline(advanced_fwhm)
config_fwhm.run_full_pipeline(skip_existing_downloads=True)
df_fwhm = pd.read_csv(output_dir / "results/lightcurve.csv", comment="#")

print("FWHM-based aperture configuration ready.")
print(f"  Aperture = FWHM × {advanced_fwhm.photometry.fwhm_multiplier} (adaptive per observation)")
print(f"  Fallback diameter: {advanced_fwhm.photometry.aperture_diameter} pixels")
print("Uncomment the code above to run the pipeline.")
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - Initialized pipeline for source at RA=213.942708, Dec=11.495389
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - State file: cloverleaf.yaml
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - Starting full pipeline execution
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - Pipeline stages: ['query', 'download', 'processing', 'visualization']
2025-11-13 00:34:00 - spxquery.core.pipeline - INFO - Running query stage
2025-11-13 00:34:00 - spxquery.core.query - INFO - Querying SPHEREx observations for source at RA=213.942708, Dec=11.495389
2025-11-13 00:34:04 - spxquery.core.query - INFO - Found 108 observations spanning 33.1 days
2025-11-13 00:34:04 - spxquery.core.pipeline - INFO - Marked stage 'query' as complete
2025-11-13 00:34:04 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=download, completed=['query']
2025-11-13 00:34:04 - spxquery.core.pipeline - INFO - Running download stage (skip_existing=True)
2025-11-13 00:34:04 - spxquery.core.download - INFO - Starting parallel download of 108 files
2025-11-13 00:34:04 - spxquery.core.download - INFO - Download settings: timeout=300s, retries=3, workers=4

============================================================
SPHEREx Archive Search Results
============================================================
Source: RA=213.942708, Dec=11.495389
        Name: cloverleaf
Query time: 2025-11-13 00:34:04

Total observations found: 108

Observations by band:
  D1 (0.75-1.09 μm):  18 observations
  D2 (1.10-1.62 μm):  18 observations
  D3 (1.63-2.41 μm):  18 observations
  D4 (2.42-3.82 μm):  18 observations
  D5 (3.83-4.41 μm):  18 observations
  D6 (4.42-5.00 μm):  18 observations

Time span: 33.1 days
Total data volume: 0.00 GB
============================================================

Downloading:   0%|          | 0/108 [00:00<?, ?files/s]2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0062_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0178_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0202_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0329_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0468_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0503_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0616_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0679_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_1B_0746_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0075_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0206_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0241_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W25_2A_0366_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0204_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0240_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0298_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_1A_0553_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0026_4.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_1.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_2.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W26_2A_0142_3.fits - already exists
2025-11-13 00:34:04 - spxquery.core.download - INFO - Skipping 2025W29_2A_0482_1.fits - already exists
Downloading: 100%|██████████| 108/108 [00:00<00:00, 5244.46files/s]
2025-11-13 00:34:04 - spxquery.core.download - INFO - Download complete: 108 successful, 0 failed
2025-11-13 00:34:04 - spxquery.core.download - INFO - Total size: 525.9 MB
2025-11-13 00:34:04 - spxquery.core.pipeline - INFO - Downloaded 108 files
2025-11-13 00:34:04 - spxquery.core.pipeline - INFO - Total data size: 0.00 GB (estimated) → 0.51 GB (actual)
2025-11-13 00:34:04 - spxquery.core.pipeline - INFO - Marked stage 'download' as complete
2025-11-13 00:34:04 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=processing, completed=['query', 'download']
2025-11-13 00:34:04 - spxquery.core.pipeline - INFO - Running processing stage
2025-11-13 00:34:04 - spxquery.core.pipeline - INFO - Processing 108 FITS files
2025-11-13 00:34:04 - spxquery.processing.photometry - INFO - Processing photometry for 108 observations
2025-11-13 00:34:04 - spxquery.processing.photometry - INFO - Using sequential processing (max_workers=1)

============================================================
Download Summary
============================================================
Total files: 108
Successful: 108
Failed: 0
Total downloaded: 525.9 MB (0.51 GB)
============================================================

Processing observations:   0%|          | 0/108 [00:00<?, ?files/s]2025-11-13 00:34:04 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0062_1.fits
2025-11-13 00:34:04 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:04 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:04 - spxquery.processing.photometry - INFO - Repaired 12 pixels with NaN variance using median variance (9.499758e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:04 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.017" (0.82px) → diameter=2.45px (radius=1.22px)
2025-11-13 00:34:04 - spxquery.utils.spherex_mef - INFO - Background mask: 2663/3600 (74.0%) pixels available
2025-11-13 00:34:04 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1757
2025-11-13 00:34:04 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1757
2025-11-13 00:34:04 - spxquery.utils.spherex_mef - INFO - Background mask: 1945/2601 (74.8%) pixels available
2025-11-13 00:34:04 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_1.fits: flux=1121.937±41.018 μJy (0.001122±0.000041 Jy) at λ=1.940 μm, mag_AB=16.275±0.040
2025-11-13 00:34:04 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0062_1.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 19 pixels with NaN variance using median variance (5.811026e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.625" (0.91px) → diameter=2.74px (radius=1.37px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2995/3600 (83.2%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0426
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0426
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2172/2601 (83.5%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_1.fits: flux=2825.502±119.947 μJy (0.002826±0.000120 Jy) at λ=4.658 μm, mag_AB=15.272±0.046
Processing observations:   2%|▏         | 2/108 [00:00<00:06, 16.15files/s]2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0062_2.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_2: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 11 pixels with NaN variance using median variance (9.150388e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.643" (0.75px) → diameter=2.26px (radius=1.13px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1734
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1734
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 1942/2601 (74.7%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_2.fits: flux=1106.323±39.931 μJy (0.001106±0.000040 Jy) at λ=1.985 μm, mag_AB=16.290±0.039
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0062_2.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_2: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (6.164463e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.250" (0.69px) → diameter=2.07px (radius=1.03px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0365
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0365
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2192/2601 (84.3%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_2.fits: flux=2312.551±103.936 μJy (0.002313±0.000104 Jy) at λ=4.692 μm, mag_AB=15.490±0.049
Processing observations:   4%|▎         | 4/108 [00:00<00:05, 18.16files/s]2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0062_3.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_3: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (8.889740e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.495" (0.73px) → diameter=2.19px (radius=1.10px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2635/3600 (73.2%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1805
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1805
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 1917/2601 (73.7%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_3.fits: flux=1024.168±37.980 μJy (0.001024±0.000038 Jy) at λ=2.032 μm, mag_AB=16.374±0.040
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0062_3.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_3: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (6.721239e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=7.940" (1.29px) → diameter=3.87px (radius=1.93px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3023/3600 (84.0%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0259
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0259
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2192/2601 (84.3%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_3.fits: flux=3330.851±154.565 μJy (0.003331±0.000155 Jy) at λ=4.726 μm, mag_AB=15.094±0.050
Processing observations:   6%|▌         | 6/108 [00:00<00:05, 18.82files/s]2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0062_4.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_4: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (8.557443e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.490" (0.73px) → diameter=2.19px (radius=1.10px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2667/3600 (74.1%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1888
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1888
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 1945/2601 (74.8%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_4.fits: flux=1208.118±37.310 μJy (0.001208±0.000037 Jy) at λ=2.078 μm, mag_AB=16.195±0.034
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0062_4.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0062_4: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 23 pixels with NaN variance using median variance (7.100530e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=7.936" (1.29px) → diameter=3.87px (radius=1.93px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3021/3600 (83.9%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0445
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0445
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2191/2601 (84.2%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0062_4.fits: flux=3114.435±150.008 μJy (0.003114±0.000150 Jy) at λ=4.761 μm, mag_AB=15.167±0.052
Processing observations:   7%|▋         | 8/108 [00:00<00:05, 18.99files/s]2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0178_1.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 20 pixels with NaN variance using median variance (8.644567e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.551" (0.90px) → diameter=2.70px (radius=1.35px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3022/3600 (83.9%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0760
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0760
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2199/2601 (84.5%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_1.fits: flux=3209.757±139.790 μJy (0.003210±0.000140 Jy) at λ=4.830 μm, mag_AB=15.134±0.047
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0178_1.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (7.728661e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.629" (0.75px) → diameter=2.26px (radius=1.13px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1792
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1792
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 1935/2601 (74.4%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_1.fits: flux=1255.156±40.227 μJy (0.001255±0.000040 Jy) at λ=2.176 μm, mag_AB=16.153±0.035
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0178_2.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_2: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 19 pixels with NaN variance using median variance (9.236660e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.553" (0.90px) → diameter=2.70px (radius=1.35px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3034/3600 (84.3%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0621
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0621
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2201/2601 (84.6%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_2.fits: flux=3468.647±144.604 μJy (0.003469±0.000145 Jy) at λ=4.866 μm, mag_AB=15.050±0.045
Processing observations:  10%|█         | 11/108 [00:00<00:05, 19.30files/s]2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0178_3.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_3: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (9.960690e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.567" (0.74px) → diameter=2.23px (radius=1.11px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3024/3600 (84.0%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0838
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0838
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2196/2601 (84.4%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_3.fits: flux=2750.664±127.283 μJy (0.002751±0.000127 Jy) at λ=4.901 μm, mag_AB=15.301±0.050
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0178_3.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_3: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 19 pixels with NaN variance using median variance (6.856603e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.714" (0.77px) → diameter=2.30px (radius=1.15px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1851
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1851
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 1915/2601 (73.6%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_3.fits: flux=1633.109±43.013 μJy (0.001633±0.000043 Jy) at λ=2.277 μm, mag_AB=15.867±0.029
Processing observations:  12%|█▏        | 13/108 [00:00<00:05, 18.64files/s]2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0178_4.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_4: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 20 pixels with NaN variance using median variance (1.096818e+00). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.570" (0.74px) → diameter=2.23px (radius=1.11px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2966/3600 (82.4%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0908
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0908
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2157/2601 (82.9%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_4.fits: flux=3023.937±157.861 μJy (0.003024±0.000158 Jy) at λ=4.937 μm, mag_AB=15.199±0.057
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0178_4.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0178_4: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 23 pixels with NaN variance using median variance (6.745640e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.713" (0.77px) → diameter=2.30px (radius=1.15px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2603/3600 (72.3%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2239
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2239
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 1908/2601 (73.4%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0178_4.fits: flux=3873.840±62.466 μJy (0.003874±0.000062 Jy) at λ=2.329 μm, mag_AB=14.930±0.018
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0202_1.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0202_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (1.186982e+00). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.223" (0.85px) → diameter=2.54px (radius=1.27px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0572
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0572
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2191/2601 (84.2%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0202_1.fits: flux=3014.348±148.454 μJy (0.003014±0.000148 Jy) at λ=4.973 μm, mag_AB=15.202±0.053
Processing observations:  15%|█▍        | 16/108 [00:00<00:04, 19.01files/s]2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0202_1.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0202_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 26 pixels with NaN variance using median variance (1.020734e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.415" (0.72px) → diameter=2.15px (radius=1.08px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3655
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3655
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 1945/2601 (74.8%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0202_1.fits: flux=1829.841±55.316 μJy (0.001830±0.000055 Jy) at λ=2.382 μm, mag_AB=15.744±0.033
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0329_3.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0329_3: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 3 pixels with NaN variance using median variance (1.231259e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.646" (0.76px) → diameter=2.27px (radius=1.13px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2684/3600 (74.6%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0272
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0272
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 1967/2601 (75.6%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0329_3.fits: flux=1253.936±45.043 μJy (0.001254±0.000045 Jy) at λ=1.633 μm, mag_AB=16.154±0.039
Processing observations:  17%|█▋        | 18/108 [00:00<00:04, 18.19files/s]2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0329_3.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0329_3: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 11 pixels with NaN variance using median variance (3.707438e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.581" (0.91px) → diameter=2.72px (radius=1.36px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 0.9897
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 0.9897
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2203/2601 (84.7%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0329_3.fits: flux=2134.900±98.292 μJy (0.002135±0.000098 Jy) at λ=4.411 μm, mag_AB=15.577±0.050
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0329_4.fits
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0329_4: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.203764e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.662" (0.76px) → diameter=2.27px (radius=1.13px)
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 2677/3600 (74.4%) pixels available
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0526
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0526
2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Background mask: 1954/2601 (75.1%) pixels available
2025-11-13 00:34:05 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0329_4.fits: flux=1207.572±45.054 μJy (0.001208±0.000045 Jy) at λ=1.671 μm, mag_AB=16.195±0.041
Processing observations:  19%|█▊        | 20/108 [00:01<00:04, 18.61files/s]2025-11-13 00:34:05 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0329_4.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0329_4: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (3.862086e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.584" (0.91px) → diameter=2.72px (radius=1.36px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 0.9603
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 0.9603
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2173/2601 (83.5%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0329_4.fits: flux=2620.783±107.760 μJy (0.002621±0.000108 Jy) at λ=4.443 μm, mag_AB=15.354±0.045
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0468_1.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.169509e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.704" (0.76px) → diameter=2.29px (radius=1.15px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2682/3600 (74.5%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0774
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0774
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 1963/2601 (75.5%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_1.fits: flux=1521.356±47.269 μJy (0.001521±0.000047 Jy) at λ=1.709 μm, mag_AB=15.944±0.034
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0468_1.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 20 pixels with NaN variance using median variance (4.453817e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.645" (0.92px) → diameter=2.75px (radius=1.37px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3000/3600 (83.3%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0566
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0566
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2186/2601 (84.0%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_1.fits: flux=2102.276±108.125 μJy (0.002102±0.000108 Jy) at λ=4.475 μm, mag_AB=15.593±0.056
Processing observations:  21%|██▏       | 23/108 [00:01<00:04, 19.28files/s]2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0468_2.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_2: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (1.113934e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.558" (0.74px) → diameter=2.22px (radius=1.11px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2676/3600 (74.3%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0940
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0940
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 1951/2601 (75.0%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_2.fits: flux=1788.948±49.582 μJy (0.001789±0.000050 Jy) at λ=1.749 μm, mag_AB=15.769±0.030
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0468_2.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_2: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (4.604722e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.405" (0.71px) → diameter=2.14px (radius=1.07px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3004/3600 (83.4%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0315
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0315
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2183/2601 (83.9%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_2.fits: flux=2280.462±98.781 μJy (0.002280±0.000099 Jy) at λ=4.508 μm, mag_AB=15.505±0.047
Processing observations:  23%|██▎       | 25/108 [00:01<00:04, 19.35files/s]2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0468_3.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_3: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (1.078577e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.561" (0.74px) → diameter=2.22px (radius=1.11px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2678/3600 (74.4%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1140
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1140
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 1961/2601 (75.4%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_3.fits: flux=1392.935±45.493 μJy (0.001393±0.000045 Jy) at λ=1.789 μm, mag_AB=16.040±0.035
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0468_3.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_3: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 21 pixels with NaN variance using median variance (4.797451e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.406" (0.71px) → diameter=2.14px (radius=1.07px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3014/3600 (83.7%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0258
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0258
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2186/2601 (84.0%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_3.fits: flux=2818.990±108.006 μJy (0.002819±0.000108 Jy) at λ=4.540 μm, mag_AB=15.275±0.042
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0468_4.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_4: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (4.988441e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.677" (0.92px) → diameter=2.76px (radius=1.38px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2987/3600 (83.0%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0101
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0101
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2162/2601 (83.1%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_4.fits: flux=3517.963±119.892 μJy (0.003518±0.000120 Jy) at λ=4.573 μm, mag_AB=15.034±0.037
Processing observations:  26%|██▌       | 28/108 [00:01<00:04, 19.53files/s]2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0468_4.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0468_4: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (1.039659e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.362" (0.71px) → diameter=2.13px (radius=1.06px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2658/3600 (73.8%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1364
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1364
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 1944/2601 (74.7%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0468_4.fits: flux=1253.689±42.934 μJy (0.001254±0.000043 Jy) at λ=1.831 μm, mag_AB=16.155±0.037
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0503_1.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0503_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 22 pixels with NaN variance using median variance (5.483860e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.637" (0.91px) → diameter=2.74px (radius=1.37px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 3008/3600 (83.6%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0489
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0489
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2193/2601 (84.3%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0503_1.fits: flux=2919.277±119.140 μJy (0.002919±0.000119 Jy) at λ=4.607 μm, mag_AB=15.237±0.044
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0503_1.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0503_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (1.003989e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.361" (0.71px) → diameter=2.13px (radius=1.06px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2649/3600 (73.6%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1580
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1580
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 1936/2601 (74.4%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0503_1.fits: flux=1207.048±41.556 μJy (0.001207±0.000042 Jy) at λ=1.873 μm, mag_AB=16.196±0.037
Processing observations:  29%|██▊       | 31/108 [00:01<00:03, 19.82files/s]2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0503_2.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0503_2: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 23 pixels with NaN variance using median variance (5.778874e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.634" (0.91px) → diameter=2.74px (radius=1.37px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0207
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0207
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2184/2601 (84.0%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0503_2.fits: flux=2682.458±118.442 μJy (0.002682±0.000118 Jy) at λ=4.640 μm, mag_AB=15.329±0.048
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0503_2.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0503_2: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (9.719857e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.438" (0.72px) → diameter=2.16px (radius=1.08px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2654/3600 (73.7%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1714
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1714
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 1940/2601 (74.6%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0503_2.fits: flux=1134.037±39.745 μJy (0.001134±0.000040 Jy) at λ=1.917 μm, mag_AB=16.263±0.038
Processing observations:  31%|███       | 33/108 [00:01<00:03, 19.61files/s]2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_1B_0616_1.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_1: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 11 pixels with NaN variance using median variance (3.814502e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.566" (0.91px) → diameter=2.72px (radius=1.36px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2194/3600 (60.9%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3159
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3159
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 1666/2601 (64.1%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_1.fits: flux=2652.838±104.667 μJy (0.002653±0.000105 Jy) at λ=4.251 μm, mag_AB=15.341±0.043
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_1B_0616_1.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_1: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (1.311397e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.541" (0.74px) → diameter=2.22px (radius=1.11px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2866/3600 (79.6%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1742
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1742
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2136/2601 (82.1%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_1.fits: flux=1124.569±43.783 μJy (0.001125±0.000044 Jy) at λ=1.480 μm, mag_AB=16.273±0.042
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_1B_0616_2.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_2: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.271930e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.542" (0.74px) → diameter=2.22px (radius=1.11px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1367
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1367
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2141/2601 (82.3%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_2.fits: flux=1153.277±41.911 μJy (0.001153±0.000042 Jy) at λ=1.516 μm, mag_AB=16.245±0.039
Processing observations:  33%|███▎      | 36/108 [00:01<00:03, 19.60files/s]2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_1B_0616_2.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_2: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 16 pixels with NaN variance using median variance (3.952595e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.565" (0.91px) → diameter=2.72px (radius=1.36px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2143/3600 (59.5%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2754
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2754
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 1633/2601 (62.8%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_2.fits: flux=2802.135±107.660 μJy (0.002802±0.000108 Jy) at λ=4.287 μm, mag_AB=15.281±0.042
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_1B_0616_3.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_3: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (4.147240e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.928" (0.97px) → diameter=2.90px (radius=1.45px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2195/3600 (61.0%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2534
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2534
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 1668/2601 (64.1%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_3.fits: flux=2894.202±112.163 μJy (0.002894±0.000112 Jy) at λ=4.324 μm, mag_AB=15.246±0.042
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_1B_0616_3.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_3: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.213519e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.574" (0.75px) → diameter=2.24px (radius=1.12px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2865/3600 (79.6%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1006
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1006
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2134/2601 (82.0%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_3.fits: flux=1297.317±43.575 μJy (0.001297±0.000044 Jy) at λ=1.552 μm, mag_AB=16.117±0.036
Processing observations:  36%|███▌      | 39/108 [00:02<00:03, 19.81files/s]2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_1B_0616_4.fits
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_4: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Repaired 20 pixels with NaN variance using median variance (4.322733e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.949" (0.97px) → diameter=2.90px (radius=1.45px)
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 2123/3600 (59.0%) pixels available
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2312
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2312
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Background mask: 1620/2601 (62.3%) pixels available
2025-11-13 00:34:06 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_4.fits: flux=3197.984±118.941 μJy (0.003198±0.000119 Jy) at λ=4.361 μm, mag_AB=15.138±0.040
2025-11-13 00:34:06 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_1B_0616_4.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0616_4: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (1.164446e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.574" (0.75px) → diameter=2.24px (radius=1.12px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2824/3600 (78.4%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0617
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0617
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2101/2601 (80.8%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0616_4.fits: flux=1174.522±42.245 μJy (0.001175±0.000042 Jy) at λ=1.589 μm, mag_AB=16.225±0.039
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_1B_0679_1.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0679_1: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (4.967668e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.709" (0.93px) → diameter=2.79px (radius=1.40px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2185/3600 (60.7%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3352
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3352
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 1668/2601 (64.1%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0679_1.fits: flux=2963.480±117.091 μJy (0.002963±0.000117 Jy) at λ=4.398 μm, mag_AB=15.220±0.043
Processing observations:  39%|███▉      | 42/108 [00:02<00:03, 19.96files/s]2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_1B_0679_1.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0679_1: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.141730e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.439" (0.72px) → diameter=2.17px (radius=1.09px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2886/3600 (80.2%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0796
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0796
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2156/2601 (82.9%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0679_1.fits: flux=1233.630±41.307 μJy (0.001234±0.000041 Jy) at λ=1.627 μm, mag_AB=16.172±0.036
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D6/2025W25_1B_0746_1.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0746_1: detector 6, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (8.280554e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.752" (0.93px) → diameter=2.80px (radius=1.40px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 3005/3600 (83.5%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.0637
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.0637
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2193/2601 (84.3%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0746_1.fits: flux=3082.004±136.653 μJy (0.003082±0.000137 Jy) at λ=4.795 μm, mag_AB=15.178±0.048
Processing observations:  41%|████      | 44/108 [00:02<00:03, 19.89files/s]2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W25_1B_0746_1.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_1B_0746_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (8.186452e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.560" (0.74px) → diameter=2.22px (radius=1.11px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2683/3600 (74.5%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1785
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1785
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 1947/2601 (74.9%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_1B_0746_1.fits: flux=1175.484±39.542 μJy (0.001175±0.000040 Jy) at λ=2.127 μm, mag_AB=16.224±0.037
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0075_1.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_1: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 27 pixels with NaN variance using median variance (2.792472e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.099" (0.83px) → diameter=2.49px (radius=1.24px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2129/3600 (59.1%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2205
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2205
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 1617/2601 (62.2%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_1.fits: flux=2030.394±71.666 μJy (0.002030±0.000072 Jy) at λ=4.107 μm, mag_AB=15.631±0.038
Processing observations:  43%|████▎     | 46/108 [00:02<00:03, 19.44files/s]2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0075_1.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_1: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 3 pixels with NaN variance using median variance (1.412864e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.929" (0.80px) → diameter=2.41px (radius=1.20px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2864/3600 (79.6%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2326
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2326
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2132/2601 (82.0%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_1.fits: flux=1191.820±46.193 μJy (0.001192±0.000046 Jy) at λ=1.346 μm, mag_AB=16.209±0.042
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0075_2.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_2: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.392585e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.833" (0.79px) → diameter=2.36px (radius=1.18px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2170
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2170
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2142/2601 (82.4%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_2.fits: flux=1224.834±47.185 μJy (0.001225±0.000047 Jy) at λ=1.379 μm, mag_AB=16.180±0.042
Processing observations:  44%|████▍     | 48/108 [00:02<00:03, 19.37files/s]2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0075_2.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_2: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (2.996648e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.574" (0.91px) → diameter=2.72px (radius=1.36px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2203/3600 (61.2%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2300
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2300
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 1678/2601 (64.5%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_2.fits: flux=2339.555±96.875 μJy (0.002340±0.000097 Jy) at λ=4.143 μm, mag_AB=15.477±0.045
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0075_3.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_3: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 7 pixels with NaN variance using median variance (1.339184e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.830" (0.79px) → diameter=2.36px (radius=1.18px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2873/3600 (79.8%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1844
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1844
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2138/2601 (82.2%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_3.fits: flux=1145.978±44.401 μJy (0.001146±0.000044 Jy) at λ=1.412 μm, mag_AB=16.252±0.042
Processing observations:  46%|████▋     | 50/108 [00:02<00:02, 19.38files/s]2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0075_3.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_3: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (3.166565e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.571" (0.91px) → diameter=2.72px (radius=1.36px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2184/3600 (60.7%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2336
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2336
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 1668/2601 (64.1%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_3.fits: flux=2467.138±100.419 μJy (0.002467±0.000100 Jy) at λ=4.179 μm, mag_AB=15.420±0.044
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0075_4.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_4: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (1.324254e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.792" (0.78px) → diameter=2.34px (radius=1.17px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2860/3600 (79.4%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1701
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1701
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2125/2601 (81.7%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_4.fits: flux=1153.586±46.299 μJy (0.001154±0.000046 Jy) at λ=1.446 μm, mag_AB=16.245±0.044
Processing observations:  48%|████▊     | 52/108 [00:02<00:02, 19.50files/s]2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0075_4.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0075_4: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (3.447359e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.504" (0.90px) → diameter=2.69px (radius=1.34px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2162/3600 (60.1%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2517
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2517
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 1647/2601 (63.3%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0075_4.fits: flux=2489.013±102.615 μJy (0.002489±0.000103 Jy) at λ=4.215 μm, mag_AB=15.410±0.045
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0206_2.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_2: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.581823e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.504" (0.73px) → diameter=2.20px (radius=1.10px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2872/3600 (79.8%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2306
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2306
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2140/2601 (82.3%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_2.fits: flux=1006.959±45.064 μJy (0.001007±0.000045 Jy) at λ=1.102 μm, mag_AB=16.392±0.049
Processing observations:  50%|█████     | 54/108 [00:02<00:02, 18.92files/s]2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0206_2.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_2: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 16 pixels with NaN variance using median variance (2.212814e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.550" (0.90px) → diameter=2.71px (radius=1.36px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2151/3600 (59.8%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3802
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3802
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 1643/2601 (63.2%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_2.fits: flux=2526.442±95.536 μJy (0.002526±0.000096 Jy) at λ=3.815 μm, mag_AB=15.394±0.041
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0206_3.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_3: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 21 pixels with NaN variance using median variance (2.206441e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.588" (0.91px) → diameter=2.73px (radius=1.36px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2150/3600 (59.7%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3323
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3323
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 1642/2601 (63.1%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_3.fits: flux=3094.978±103.156 μJy (0.003095±0.000103 Jy) at λ=3.848 μm, mag_AB=15.173±0.036
Processing observations:  52%|█████▏    | 56/108 [00:02<00:02, 19.01files/s]2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0206_3.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_3: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (1.528159e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.506" (0.73px) → diameter=2.20px (radius=1.10px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2853/3600 (79.2%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1931
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1931
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2109/2601 (81.1%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_3.fits: flux=1185.612±45.997 μJy (0.001186±0.000046 Jy) at λ=1.128 μm, mag_AB=16.215±0.042
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0206_4.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_4: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 4 pixels with NaN variance using median variance (1.480095e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.188" (0.68px) → diameter=2.05px (radius=1.02px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2891/3600 (80.3%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1456
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1456
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2161/2601 (83.1%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_4.fits: flux=1073.604±42.865 μJy (0.001074±0.000043 Jy) at λ=1.154 μm, mag_AB=16.323±0.043
Processing observations:  54%|█████▎    | 58/108 [00:03<00:02, 19.28files/s]2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0206_4.fits
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0206_4: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (2.241896e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.588" (0.91px) → diameter=2.73px (radius=1.36px)
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 2153/3600 (59.8%) pixels available
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2988
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2988
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Background mask: 1644/2601 (63.2%) pixels available
2025-11-13 00:34:07 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0206_4.fits: flux=2641.889±96.582 μJy (0.002642±0.000097 Jy) at λ=3.882 μm, mag_AB=15.345±0.040
2025-11-13 00:34:07 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0241_1.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_1: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.471404e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.478" (0.73px) → diameter=2.19px (radius=1.09px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2883/3600 (80.1%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1484
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1484
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2143/2601 (82.4%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_1.fits: flux=1111.059±45.280 μJy (0.001111±0.000045 Jy) at λ=1.182 μm, mag_AB=16.286±0.044
Processing observations:  56%|█████▌    | 60/108 [00:03<00:02, 18.76files/s]2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0241_1.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_1: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (2.329182e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.527" (0.90px) → diameter=2.70px (radius=1.35px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2157/3600 (59.9%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3030
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3030
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 1652/2601 (63.5%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_1.fits: flux=2274.227±91.826 μJy (0.002274±0.000092 Jy) at λ=3.916 μm, mag_AB=15.508±0.044
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0241_2.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_2: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (1.441440e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.480" (0.73px) → diameter=2.19px (radius=1.09px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2859/3600 (79.4%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1353
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1353
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2128/2601 (81.8%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_2.fits: flux=1191.300±47.707 μJy (0.001191±0.000048 Jy) at λ=1.209 μm, mag_AB=16.210±0.043
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0241_2.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_2: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 28 pixels with NaN variance using median variance (2.362807e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.525" (0.90px) → diameter=2.70px (radius=1.35px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2126/3600 (59.1%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1901
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1901
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 1628/2601 (62.6%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_2.fits: flux=2348.428±92.304 μJy (0.002348±0.000092 Jy) at λ=3.950 μm, mag_AB=15.473±0.043
Processing observations:  58%|█████▊    | 63/108 [00:03<00:02, 19.14files/s]2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0241_3.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_3: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.451720e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.756" (0.77px) → diameter=2.32px (radius=1.16px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1532
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1532
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2138/2601 (82.2%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_3.fits: flux=1143.269±46.915 μJy (0.001143±0.000047 Jy) at λ=1.239 μm, mag_AB=16.255±0.045
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0241_3.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_3: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (2.401630e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.605" (0.91px) → diameter=2.74px (radius=1.37px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2125/3600 (59.0%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2596
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2596
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 1626/2601 (62.5%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_3.fits: flux=2302.212±90.589 μJy (0.002302±0.000091 Jy) at λ=3.984 μm, mag_AB=15.495±0.043
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0241_4.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_4: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.448073e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.684" (0.76px) → diameter=2.29px (radius=1.14px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2885/3600 (80.1%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1694
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1694
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2148/2601 (82.6%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_4.fits: flux=1172.464±46.689 μJy (0.001172±0.000047 Jy) at λ=1.268 μm, mag_AB=16.227±0.043
Processing observations:  61%|██████    | 66/108 [00:03<00:02, 19.60files/s]2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0241_4.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0241_4: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (2.518859e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.569" (0.74px) → diameter=2.23px (radius=1.12px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2155/3600 (59.9%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2444
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2444
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 1639/2601 (63.0%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0241_4.fits: flux=2242.229±88.374 μJy (0.002242±0.000088 Jy) at λ=4.019 μm, mag_AB=15.523±0.043
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0366_1.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0366_1: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (2.634656e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.496" (0.89px) → diameter=2.68px (radius=1.34px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2189/3600 (60.8%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2615
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2615
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 1661/2601 (63.9%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0366_1.fits: flux=2379.442±92.328 μJy (0.002379±0.000092 Jy) at λ=4.037 μm, mag_AB=15.459±0.042
Processing observations:  63%|██████▎   | 68/108 [00:03<00:02, 19.32files/s]2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0366_1.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0366_1: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 7 pixels with NaN variance using median variance (1.435891e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.538" (0.74px) → diameter=2.22px (radius=1.11px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2875/3600 (79.9%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1846
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1846
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2142/2601 (82.4%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0366_1.fits: flux=1143.112±44.632 μJy (0.001143±0.000045 Jy) at λ=1.284 μm, mag_AB=16.255±0.042
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D2/2025W25_2A_0366_2.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0366_2: detector 2, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.447795e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.536" (0.74px) → diameter=2.22px (radius=1.11px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2870/3600 (79.7%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2307
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2307
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2144/2601 (82.4%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0366_2.fits: flux=1120.550±44.975 μJy (0.001121±0.000045 Jy) at λ=1.315 μm, mag_AB=16.276±0.044
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D5/2025W25_2A_0366_2.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W25_2A_0366_2: detector 5, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 17 pixels with NaN variance using median variance (2.910928e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.099" (0.83px) → diameter=2.49px (radius=1.24px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2204/3600 (61.2%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3046
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3046
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 1667/2601 (64.1%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W25_2A_0366_2.fits: flux=2031.299±88.358 μJy (0.002031±0.000088 Jy) at λ=4.072 μm, mag_AB=15.631±0.047
Processing observations:  66%|██████▌   | 71/108 [00:03<00:01, 19.38files/s]2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0204_4.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0204_4: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (8.066626e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.608" (0.91px) → diameter=2.73px (radius=1.37px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2652/3600 (73.7%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2096
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2096
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 1969/2601 (75.7%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0204_4.fits: flux=1139.536±44.124 μJy (0.001140±0.000044 Jy) at λ=2.438 μm, mag_AB=16.258±0.042
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0204_4.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0204_4: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (1.516588e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.820" (0.78px) → diameter=2.35px (radius=1.18px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2944/3600 (81.8%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1701
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1701
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2177/2601 (83.7%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0204_4.fits: flux=513.560±39.912 μJy (0.000514±0.000040 Jy) at λ=0.751 μm, mag_AB=17.124±0.084
Processing observations:  68%|██████▊   | 73/108 [00:03<00:01, 19.13files/s]2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0240_1.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_1: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (6.193488e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.958" (0.80px) → diameter=2.41px (radius=1.21px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2627/3600 (73.0%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2945
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2945
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 1958/2601 (75.3%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_1.fits: flux=1274.580±38.202 μJy (0.001275±0.000038 Jy) at λ=2.501 μm, mag_AB=16.137±0.033
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0240_1.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_1: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 11 pixels with NaN variance using median variance (1.562245e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.822" (0.78px) → diameter=2.35px (radius=1.18px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3041/3600 (84.5%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2093
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2093
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2250/2601 (86.5%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_1.fits: flux=668.962±42.221 μJy (0.000669±0.000042 Jy) at λ=0.768 μm, mag_AB=16.836±0.069
Processing observations:  69%|██████▉   | 75/108 [00:03<00:01, 18.92files/s]2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0240_2.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_2: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (5.939406e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.960" (0.80px) → diameter=2.41px (radius=1.21px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3071
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3071
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 1967/2601 (75.6%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_2.fits: flux=1221.012±37.075 μJy (0.001221±0.000037 Jy) at λ=2.567 μm, mag_AB=16.183±0.033
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0240_2.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_2: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 8 pixels with NaN variance using median variance (1.550666e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.992" (0.81px) → diameter=2.44px (radius=1.22px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3018/3600 (83.8%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2133
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2133
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2238/2601 (86.0%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_2.fits: flux=609.424±41.783 μJy (0.000609±0.000042 Jy) at λ=0.786 μm, mag_AB=16.938±0.074
Processing observations:  71%|███████▏  | 77/108 [00:04<00:01, 19.08files/s]2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0240_3.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_3: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.576395e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.647" (0.76px) → diameter=2.27px (radius=1.13px)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 3031/3600 (84.2%) pixels available
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2171
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2171
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Background mask: 2235/2601 (85.9%) pixels available
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_3.fits: flux=595.003±40.460 μJy (0.000595±0.000040 Jy) at λ=0.805 μm, mag_AB=16.964±0.074
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0240_3.fits
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:08 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_3: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:08 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (5.790259e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.314" (0.86px) → diameter=2.59px (radius=1.29px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3242
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3242
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1974/2601 (75.9%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_3.fits: flux=1370.767±39.484 μJy (0.001371±0.000039 Jy) at λ=2.636 μm, mag_AB=16.058±0.031
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0240_4.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_4: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (5.448314e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.302" (0.86px) → diameter=2.59px (radius=1.29px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2653/3600 (73.7%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3125
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3125
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1966/2601 (75.6%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_4.fits: flux=1315.342±38.577 μJy (0.001315±0.000039 Jy) at λ=2.706 μm, mag_AB=16.102±0.032
Processing observations:  74%|███████▍  | 80/108 [00:04<00:01, 19.62files/s]2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0240_4.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0240_4: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (1.576505e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.647" (0.76px) → diameter=2.27px (radius=1.13px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3039/3600 (84.4%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2252
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2252
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2241/2601 (86.2%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0240_4.fits: flux=735.192±42.276 μJy (0.000735±0.000042 Jy) at λ=0.824 μm, mag_AB=16.734±0.062
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0298_1.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0298_1: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.584829e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.838" (0.79px) → diameter=2.36px (radius=1.18px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3037/3600 (84.4%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2557
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2557
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2253/2601 (86.6%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0298_1.fits: flux=721.219±43.073 μJy (0.000721±0.000043 Jy) at λ=0.843 μm, mag_AB=16.755±0.065
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0298_1.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0298_1: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 19 pixels with NaN variance using median variance (5.298661e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.589" (0.91px) → diameter=2.72px (radius=1.36px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2641/3600 (73.4%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3188
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3188
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1966/2601 (75.6%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0298_1.fits: flux=1405.195±39.617 μJy (0.001405±0.000040 Jy) at λ=2.779 μm, mag_AB=16.031±0.031
Processing observations:  77%|███████▋  | 83/108 [00:04<00:01, 19.73files/s]2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0298_2.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0298_2: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 22 pixels with NaN variance using median variance (5.243953e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.575" (0.91px) → diameter=2.72px (radius=1.36px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2615/3600 (72.6%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3461
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3461
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1946/2601 (74.8%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0298_2.fits: flux=1557.544±41.189 μJy (0.001558±0.000041 Jy) at λ=2.854 μm, mag_AB=15.919±0.029
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0298_2.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0298_2: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 7 pixels with NaN variance using median variance (1.500622e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.549" (0.74px) → diameter=2.22px (radius=1.11px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3042/3600 (84.5%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2080
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2080
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2255/2601 (86.7%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0298_2.fits: flux=793.754±41.839 μJy (0.000794±0.000042 Jy) at λ=0.863 μm, mag_AB=16.651±0.057
Processing observations:  79%|███████▊  | 85/108 [00:04<00:01, 19.66files/s]2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0553_1.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_1: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (1.501274e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.687" (0.76px) → diameter=2.29px (radius=1.14px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3018/3600 (83.8%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2063
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2063
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2234/2601 (85.9%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_1.fits: flux=924.035±44.099 μJy (0.000924±0.000044 Jy) at λ=0.883 μm, mag_AB=16.486±0.052
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0553_1.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_1: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 21 pixels with NaN variance using median variance (5.287452e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.383" (0.71px) → diameter=2.14px (radius=1.07px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.4092
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.4092
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1950/2601 (75.0%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_1.fits: flux=1349.474±36.817 μJy (0.001349±0.000037 Jy) at λ=2.931 μm, mag_AB=16.075±0.030
Processing observations:  81%|████████  | 87/108 [00:04<00:01, 19.58files/s]2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0553_2.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_2: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (1.481494e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.403" (0.72px) → diameter=2.15px (radius=1.07px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3020/3600 (83.9%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2080
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2080
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2249/2601 (86.5%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_2.fits: flux=878.668±42.619 μJy (0.000879±0.000043 Jy) at λ=0.904 μm, mag_AB=16.540±0.053
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0553_2.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_2: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (4.931199e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=3.079" (0.50px) → diameter=1.50px (radius=0.75px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2617/3600 (72.7%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3528
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3528
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1946/2601 (74.8%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_2.fits: flux=1015.837±30.529 μJy (0.001016±0.000031 Jy) at λ=3.011 μm, mag_AB=16.383±0.033
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0553_3.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_3: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 7 pixels with NaN variance using median variance (4.747215e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=3.080" (0.50px) → diameter=1.50px (radius=0.75px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2624/3600 (72.9%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3728
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3728
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1951/2601 (75.0%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_3.fits: flux=854.004±40.411 μJy (0.000854±0.000040 Jy) at λ=3.094 μm, mag_AB=16.571±0.051
Processing observations:  83%|████████▎ | 90/108 [00:04<00:00, 19.91files/s]2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0553_3.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_3: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (1.460178e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.399" (0.72px) → diameter=2.15px (radius=1.07px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3019/3600 (83.9%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2154
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2154
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2240/2601 (86.1%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_3.fits: flux=727.004±40.411 μJy (0.000727±0.000040 Jy) at λ=0.925 μm, mag_AB=16.746±0.060
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_1A_0553_4.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_4: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 21 pixels with NaN variance using median variance (4.723504e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.255" (0.85px) → diameter=2.56px (radius=1.28px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2644/3600 (73.4%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3956
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3956
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1976/2601 (76.0%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_4.fits: flux=1609.867±40.756 μJy (0.001610±0.000041 Jy) at λ=3.178 μm, mag_AB=15.883±0.027
Processing observations:  85%|████████▌ | 92/108 [00:04<00:00, 19.85files/s]2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_1A_0553_4.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_1A_0553_4: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 22 pixels with NaN variance using median variance (1.457800e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.449" (0.72px) → diameter=2.17px (radius=1.09px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3007/3600 (83.5%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2347
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2347
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2224/2601 (85.5%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_1A_0553_4.fits: flux=819.873±41.351 μJy (0.000820±0.000041 Jy) at λ=0.948 μm, mag_AB=16.616±0.055
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0026_1.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_1: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 14 pixels with NaN variance using median variance (4.935230e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.284" (0.86px) → diameter=2.57px (radius=1.29px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2647/3600 (73.5%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.4528
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.4528
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1974/2601 (75.9%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_1.fits: flux=1771.316±42.095 μJy (0.001771±0.000042 Jy) at λ=3.265 μm, mag_AB=15.779±0.026
Processing observations:  87%|████████▋ | 94/108 [00:04<00:00, 19.71files/s]2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0026_1.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_1: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 11 pixels with NaN variance using median variance (1.411780e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.573" (0.74px) → diameter=2.23px (radius=1.12px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3027/3600 (84.1%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1951
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1951
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2248/2601 (86.4%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_1.fits: flux=898.901±42.105 μJy (0.000899±0.000042 Jy) at λ=0.970 μm, mag_AB=16.516±0.051
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0026_2.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_2: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (1.393711e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.576" (0.74px) → diameter=2.23px (radius=1.12px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 3032/3600 (84.2%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1769
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1769
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2255/2601 (86.7%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_2.fits: flux=1218.523±45.826 μJy (0.001219±0.000046 Jy) at λ=0.993 μm, mag_AB=16.185±0.041
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0026_2.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_2: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 20 pixels with NaN variance using median variance (4.739665e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.277" (0.86px) → diameter=2.57px (radius=1.29px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2645/3600 (73.5%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3908
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3908
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1974/2601 (75.9%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_2.fits: flux=1762.516±41.424 μJy (0.001763±0.000041 Jy) at λ=3.354 μm, mag_AB=15.785±0.026
Processing observations:  90%|████████▉ | 97/108 [00:05<00:00, 19.88files/s]2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0026_3.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_3: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 10 pixels with NaN variance using median variance (4.657418e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.495" (0.89px) → diameter=2.68px (radius=1.34px)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 2643/3600 (73.4%) pixels available
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3628
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3628
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Background mask: 1970/2601 (75.7%) pixels available
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_3.fits: flux=1649.648±41.213 μJy (0.001650±0.000041 Jy) at λ=3.445 μm, mag_AB=15.857±0.027
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0026_3.fits
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:09 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_3: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:09 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (1.373315e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.521" (0.74px) → diameter=2.21px (radius=1.11px)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3041/3600 (84.5%) pixels available
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1554
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1554
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2260/2601 (86.9%) pixels available
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_3.fits: flux=885.334±40.874 μJy (0.000885±0.000041 Jy) at λ=1.017 μm, mag_AB=16.532±0.050
Processing observations:  92%|█████████▏| 99/108 [00:05<00:00, 19.86files/s]2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0026_4.fits
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_4: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (4.719877e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.836" (0.95px) → diameter=2.84px (radius=1.42px)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2665/3600 (74.0%) pixels available
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3709
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3709
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 1989/2601 (76.5%) pixels available
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_4.fits: flux=1971.830±43.879 μJy (0.001972±0.000044 Jy) at λ=3.538 μm, mag_AB=15.663±0.024
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0026_4.fits
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0026_4: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Repaired 15 pixels with NaN variance using median variance (1.343486e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.542" (0.74px) → diameter=2.21px (radius=1.11px)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3003/3600 (83.4%) pixels available
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1348
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1348
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2222/2601 (85.4%) pixels available
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0026_4.fits: flux=938.222±41.548 μJy (0.000938±0.000042 Jy) at λ=1.041 μm, mag_AB=16.469±0.048
Processing observations:  94%|█████████▎| 101/108 [00:05<00:00, 19.11files/s]2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0142_1.fits
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_1: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Repaired 19 pixels with NaN variance using median variance (5.108546e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.832" (0.95px) → diameter=2.84px (radius=1.42px)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2626/3600 (72.9%) pixels available
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.4118
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.4118
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 1964/2601 (75.5%) pixels available
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_1.fits: flux=1844.657±43.295 μJy (0.001845±0.000043 Jy) at λ=3.634 μm, mag_AB=15.735±0.025
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0142_1.fits
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_1: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Repaired 12 pixels with NaN variance using median variance (1.690161e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=4.949" (0.80px) → diameter=2.41px (radius=1.21px)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3012/3600 (83.7%) pixels available
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.4808
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.4808
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2232/2601 (85.8%) pixels available
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_1.fits: flux=1012.836±46.497 μJy (0.001013±0.000046 Jy) at λ=1.065 μm, mag_AB=16.386±0.050
Processing observations:  95%|█████████▌| 103/108 [00:05<00:00, 19.21files/s]2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0142_2.fits
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_2: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Repaired 13 pixels with NaN variance using median variance (3.226726e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.055" (0.82px) → diameter=2.46px (radius=1.23px)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 3017/3600 (83.8%) pixels available
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 2.6388
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 2.6388
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2231/2601 (85.8%) pixels available
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_2.fits: flux=1045.197±57.026 μJy (0.001045±0.000057 Jy) at λ=1.091 μm, mag_AB=16.352±0.059
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0142_2.fits
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_2: detector 4, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Repaired 18 pixels with NaN variance using median variance (5.286015e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.639" (0.92px) → diameter=2.75px (radius=1.37px)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2637/3600 (73.2%) pixels available
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.3300
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.3300
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 1969/2601 (75.7%) pixels available
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_2.fits: flux=1889.274±43.481 μJy (0.001889±0.000043 Jy) at λ=3.731 μm, mag_AB=15.709±0.025
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D1/2025W26_2A_0142_3.fits
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_3: detector 1, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Repaired 16 pixels with NaN variance using median variance (1.359724e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.054" (0.82px) → diameter=2.46px (radius=1.23px)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2997/3600 (83.2%) pixels available
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1747
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1747
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2211/2601 (85.0%) pixels available
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_3.fits: flux=1160.069±45.452 μJy (0.001160±0.000045 Jy) at λ=1.116 μm, mag_AB=16.239±0.043
Processing observations:  98%|█████████▊| 106/108 [00:05<00:00, 19.38files/s]2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D4/2025W26_2A_0142_3.fits
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W26_2A_0142_3: detector 4, shape (54, 60), units μJy/arcsec²
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Repaired 6 pixels with NaN variance using median variance (5.430989e-02). All repaired pixels have non-zero flags.
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.641" (0.92px) → diameter=2.75px (radius=1.37px)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2415/3240 (74.5%) pixels available
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.2421
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.2421
2025-11-13 00:34:10 - spxquery.processing.background - WARNING - Background window [4:55, -2:49] exceeds image boundaries, clipped to [4:55, 0:49]
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 1910/2499 (76.4%) pixels available
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W26_2A_0142_3.fits: flux=2550.316±48.841 μJy (0.002550±0.000049 Jy) at λ=3.832 μm, mag_AB=15.384±0.021
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Reading SPHEREx MEF: demo_data/cloverleaf/data/D3/2025W29_2A_0482_1.fits
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Converted units: MJy/sr → μJy/arcsec² (factor: 2.350443e+01)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Loaded 2025W29_2A_0482_1: detector 3, shape (60, 60), units μJy/arcsec²
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Repaired 9 pixels with NaN variance using median variance (1.133680e-01). All repaired pixels have non-zero flags.
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - FWHM-based aperture: FWHM=5.018" (0.82px) → diameter=2.45px (radius=1.22px)
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 2693/3600 (74.8%) pixels available
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Zodiacal scaling factor: 1.1333
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Subtracted zodiacal background with scaling factor 1.1333
2025-11-13 00:34:10 - spxquery.utils.spherex_mef - INFO - Background mask: 1964/2601 (75.5%) pixels available
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Extracted photometry from 2025W29_2A_0482_1.fits: flux=1138.217±42.638 μJy (0.001138±0.000043 Jy) at λ=1.940 μm, mag_AB=16.259±0.041
Processing observations: 100%|██████████| 108/108 [00:05<00:00, 19.35files/s]
2025-11-13 00:34:10 - spxquery.processing.photometry - INFO - Successfully processed 108 observations
2025-11-13 00:34:10 - spxquery.processing.lightcurve - INFO - Generated light curve with 108 measurements
2025-11-13 00:34:10 - spxquery.processing.lightcurve - INFO - Saved light curve to demo_data/cloverleaf/results/lightcurve.csv
2025-11-13 00:34:10 - spxquery.core.pipeline - INFO - Marked stage 'processing' as complete
2025-11-13 00:34:10 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=visualization, completed=['query', 'download', 'processing']
2025-11-13 00:34:10 - spxquery.core.pipeline - INFO - Running visualization stage
2025-11-13 00:34:10 - spxquery.visualization.plots - INFO - Quality filtering: 108 total points (103 good, 5 rejected - shown as crosses)
2025-11-13 00:34:10 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)
2025-11-13 00:34:10 - spxquery.visualization.plots - INFO - Sigma clipping: 108 -> 107 measurements (1 outliers removed)

============================================================
Light Curve Summary
============================================================
Total observations: 108
Time span: 33.1 days
MJD range: 60842.27 - 60875.36
Wavelength range: 0.75 - 4.97 μm
Number of bands: 6
Upper limits: 0
Mean SNR: 27.2

Observations per band:
  D1: 18
  D2: 18
  D3: 18
  D4: 18
  D5: 18
  D6: 18
============================================================

2025-11-13 00:34:10 - spxquery.visualization.plots - INFO - Saved combined plot to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:34:10 - spxquery.core.pipeline - INFO - Marked stage 'visualization' as complete
2025-11-13 00:34:10 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:34:10 - spxquery.core.pipeline - INFO - Visualization saved to demo_data/cloverleaf/results/combined_plot.png
2025-11-13 00:34:10 - spxquery.core.pipeline - INFO - Saved pipeline state: stage=complete, completed=['query', 'download', 'processing', 'visualization']
2025-11-13 00:34:10 - spxquery.core.pipeline - INFO - Pipeline execution complete
FWHM-based aperture configuration ready.
  Aperture = FWHM × 3.0 (adaptive per observation)
  Fallback diameter: 3.0 pixels
Uncomment the code above to run the pipeline.
../_images/tutorials_quickstart_demo_35_8.png
[22]:
# Compare flux measurements
fig, axes = plt.subplots(1, 2, figsize=(12, 4))

# Plot 1: Flux comparison
axes[0].scatter(df_fixed["flux"], df_fwhm["flux"], alpha=0.6)
axes[0].plot([0, max(df_fixed["flux"])], [0, max(df_fwhm["flux"])], "k--", alpha=0.3)
axes[0].set_xlabel("Fixed Aperture Flux (MJy/sr)")
axes[0].set_ylabel("PSF FWHM-based Flux (MJy/sr)")
axes[0].set_title("Flux Comparison")

# Plot 2: Difference
flux_diff = (df_fwhm["flux"] - df_fixed["flux"]) / df_fixed["flux"] * 100
axes[1].hist(flux_diff, bins=20, alpha=0.7)
axes[1].set_xlabel("Relative Difference (%)")
axes[1].set_ylabel("Count")
axes[1].set_title("Flux Difference Distribution")
axes[1].axvline(0, color="k", linestyle="--", alpha=0.3)

plt.tight_layout()
plt.show()

print(f"Mean flux difference: {flux_diff.mean():.2f}%")
print(f"Std flux difference: {flux_diff.std():.2f}%")

/var/folders/z5/qygyj_xj7dq109c9rzqq2wv40000gn/T/ipykernel_78266/2193692466.py:19: UserWarning: The figure layout has changed to tight
  plt.tight_layout()
../_images/tutorials_quickstart_demo_36_1.png
Mean flux difference: -9.35%
Std flux difference: 14.48%
[23]:
irsa = pd.read_csv(output_dir / "cloverleaf_irsa.csv")
fig, ax = plt.subplots(1, 1, figsize=(8, 6))
ax.errorbar(
    df_fixed["wavelength"],
    df_fixed["flux"],
    yerr=df_fixed["flux_error"],
    xerr=df_fixed["bandwidth"] / 2,
    fmt="o",
    alpha=0.7,
    markersize=4,
    label="Fixed Aperture",
)

ax.errorbar(
    irsa["lambda"],
    irsa["flux"],
    yerr=irsa["flux_err"],
    xerr=irsa["lambda_width"] / 2,
    fmt="o",
    alpha=0.7,
    markersize=4,
    label="IRSA PSF Model",
)

ax.set_xlabel("Wavelength (μm)")
ax.set_ylabel("Flux (uJy)")
ax.set_title("Fixed Aperture vs. IRSA PSF Model SED")
ax.legend(ncol=6, fontsize=8)
ax.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()

# # Create spectral comparison plot with shared y-axis limits
# fig, axes = plt.subplots(2, 1, figsize=(10, 8), sharex=True, sharey=True)

# # Calculate shared y-axis limits based on both datasets
# all_flux = pd.concat([df_fixed["flux"], df_fwhm["flux"]])
# all_flux_err = pd.concat([df_fixed["flux_error"], df_fwhm["flux_error"]])
# ymin = (all_flux - all_flux_err).min() * 0.9
# ymax = (all_flux + all_flux_err).max() * 1.1

# # Plot 1: Fixed aperture SED
# axes[0].errorbar(
#     df_fixed["wavelength"],
#     df_fixed["flux"],
#     yerr=df_fixed["flux_error"],
#     xerr=df_fixed["bandwidth"] / 2,
#     fmt="o",
#     alpha=0.7,
#     markersize=4,
# )
# axes[0].set_ylabel("Flux (uJy)")
# axes[0].set_title("Fixed Aperture SED")
# axes[0].legend(ncol=6, fontsize=8)
# axes[0].grid(True, alpha=0.3)

# # Plot 2: FWHM-based aperture SED
# irsa = pd.read_csv(output_dir / "cloverleaf_irsa.csv")
# axes[1].errorbar(
#     irsa["lambda"],
#     irsa["flux"],
#     yerr=irsa["flux_err"],
#     xerr=irsa["lambda_width"] / 2,
#     fmt="o",
#     alpha=0.7,
#     markersize=4,
# )
# axes[1].set_xlabel("Wavelength (μm)")
# axes[1].set_ylabel("Flux (uJy)")
# axes[1].set_title("FWHM-based Aperture SED")
# axes[1].legend(ncol=6, fontsize=8)
# axes[1].grid(True, alpha=0.3)

# plt.tight_layout()
# plt.show()

# print(f"Shared y-axis range: [{ymin:.2f}, {ymax:.2f}] MJy/sr")
/var/folders/z5/qygyj_xj7dq109c9rzqq2wv40000gn/T/ipykernel_78266/3065869908.py:30: UserWarning: The figure layout has changed to tight
  plt.tight_layout()
../_images/tutorials_quickstart_demo_37_1.png
[ ]: