LAPS Cloud Downscaling Algorithm

1. Algorithm Overview

The LAPS (Local Analysis and Prediction System) cloud downscaling algorithm converts coarse-resolution cloud data into high-resolution fields using stability-aware Perlin/Worley noise blending. The algorithm combines trilinear interpolation with physics-based noise generation applied at global fine grid coordinates to create realistic fine-scale cloud structures without grid artifacts.

Current Design (December 2025): The implementation uses atmospheric stability and temperature to dynamically blend between Worley noise (cellular cumulus patterns) and Perlin noise (smooth stratus/cirrus patterns). Warm, unstable air triggers cumulus-appropriate Worley cellular structures with vertically elongated turrets, while cold or stable air produces smooth Perlin patterns with anisotropic stretching for cirrus. All transitions are continuous to prevent artifacts. Anti-mottling provides density-dependent smoothing in dense cloud regions while preserving natural texture in lighter areas.

1.1 Key Characteristics

Figure 1: Cloud Downscaling Algorithm Flowchart

Cloud Downscaling Algorithm Flowchart

2. Core Algorithm Steps

2.1 Trilinear Interpolation

Standard trilinear spatial interpolation creates the initial fine-grid field from coarse-grid data, providing smooth base values across the domain while preserving the input data structure.

2.2 Direct Pattern Generation + Modulation Reduction

Core Innovation: Generate Perlin/Worley patterns directly at global fine grid coordinates during final processing. For each fine grid point, call atmospheric turbulence generation using global position coordinates, then apply density-dependent modulation reduction smoothing.

call get_global_coordinates_from_fine(i, j, k, pos_x_m, pos_y_m, pos_z_m) call generate_atmospheric_turbulence_3d(pos_x_m, pos_y_m, pos_z_m, ...) pattern_enhancement = 1.0 + pattern_amplitude * (pattern_3d_combined - 4.0) anti_mottle_enhancement = pattern_enhancement + actual_blend * (1.0 - pattern_enhancement) fine(i,j,k) = fine(i,j,k) * anti_mottle_enhancement

2.3 Tunable Parameters

pattern_amplitude: Controls clearing intensity (default 1.0, reduce to ~0.9 for smaller clearings).
blend_strength: Controls modulation reduction intensity (0.7 = 70% smoothing in dense areas).
density_center/width: Controls density thresholds for modulation reduction transitions.

3. Current Implementation (December 2025)

3.1 Instability-Aware Perlin/Worley Noise Blending

The current implementation uses instability-aware Perlin/Worley noise blending that adapts to atmospheric conditions. This approach generates appropriate patterns for different cloud types: cellular Worley patterns for unstable cumulus, smooth Perlin for stable stratus, and anisotropically-stretched Perlin for cold cirrus with Richardson number-based patchiness for jet stream cirrus.

Instability Factor Calculation (updated Jan 2026)

Warm Cloud Factor

Effective Instability & Worley Blending

Dynamic Vertical Correlation

3.2 Cirrus Richardson Number Physics

For cirrus clouds, the Richardson number (Ri) determines turbulence from both thermal instability and wind shear. This enables realistic jet stream cirrus with patchy structure while maintaining smooth cirrostratus for stable frontal conditions.

Richardson Number Background

Shear Factor (Thermal Wind Proxy)

Combined Cirrus Patchiness

Cirrus Type Classification

Pattern Amplitude Temperature Scaling

3.3 Density-Dependent Modulation Reduction

Achieves realistic cloud texture across the full density spectrum while preserving coordinate-based clearings and fine-scale cellular patterns in light clouds.

Scale Mixing

Enhancement Blending

3.4 Stability-Based Amplitude Reduction

Reduces pattern amplitude for stable stratiform clouds to achieve smoother, more realistic texture while preserving original behavior for unstable/neutral conditions.

Local Stability Calculation

Amplitude Reduction for Stable Conditions

Smoothing Boost for Stable Conditions

Spectral Shape Distinction

Figure 2: Amplitude and Spectral Response by Temperature

Amplitude and Spectral Response

Figure 2: Three temperature slices (0°C, -20°C, -40°C) showing effective amplitude (left column) and fine-scale retention (right column). Key insight: fine-scale behavior reverses with temperature—warm clouds have fine scales REDUCED in dense areas (scattering physics), while cold cirrus has fine scales ENHANCED in dense areas (ice crystal optical properties favor sharper edges). The -20°C row shows transitional behavior.

Figure 3: Texture Magnitude Response

Texture Magnitude Response

Figure 3: Total texture magnitude integrated over all scales. Shows how much texture survives stability and density effects, but not the spectral distribution (shown in Figure 2 Fine-Scale Retention panels). Assumes warm cloud conditions (0°C); conceptual visualization (amplitude × (1 - smoothing)).

Figure 4: Scale-Dependent Amplitude with Cirrus Reversal

Scale-Dependent Amplitude

Figure 4: Left: Coarse-scale amplitude varies primarily with temperature, with slight density reduction. Right: Fine-scale amplitude shows temperature-dependent reversal—warm dense clouds have suppressed fine scales (smoother appearance), while cold dense cirrus has ENHANCED fine scales (sharper ice crystal edges). This matches observed cloud physics where ice crystals produce more distinct boundaries than water droplets.

Figure 5: Cirrus Richardson Number Physics

Cirrus Shear vs Stability

Figure 5: Richardson number-based patchiness for cirrus clouds. Left: Cirrus patchiness emerges when shear factor overcomes stability smoothing—jet stream cirrus (high shear, any stability) and cirrus uncinus (unstable + shear) show clear patches between generating heads at larger scales. Right: Amplitude boost up to 50% in patchy regions creates more pronounced clearings. Cirrostratus (stable, low shear) remains smooth.

3.5 Multi-Octave Noise Configuration

Both Perlin and Worley noise use a 6-octave fractal summation with cloud-type-dependent persistence to create appropriate texture at multiple scales.

Octave Parameters

Persistence (Amplitude Decay)

Perlin/Worley Blending Per Octave

Scale-Dependent Stretching

3.6 Additional Processing Components

3.7 Bypassed Legacy Systems

The following were bypassed to prevent level-dependent correlation issues:

3.8 Thin Cirrus Gossamer Boost (January 2026)

Investigation of thin cold cirrus revealed that while anisotropic stretching (5:1) was correctly applied, the visual striations were invisible due to pattern amplitude being capped at 0.20. This enhancement boosts amplitude for thin cold cirrus to create visible gossamer texture.

Problem Analysis

Solution: Density-Aware Amplitude Boost

For cold cirrus (temp_factor > 0.5) with low density (density_factor < 0.3), boost the pattern amplitude:

! Thin cirrus gossamer boost: cold clouds with low density get more texture thin_cirrus_boost = 1.0 if (temp_factor > 0.5 .and. density_factor < 0.3) then thin_cirrus_boost = 1.0 + (0.3 - density_factor) * 6.0 ! Up to ~2.8x for very thin pattern_amplitude = min(0.55, pattern_amplitude * thin_cirrus_boost) ! Cap at 0.55 end if

Effect

Spatial Structure Improvements

Camera comparison revealed the initial patterns were too "blobby" - lacking the fine, linear character of real cirrus striations. Two adjustments improve spatial structure:

Interaction with Existing Cirrus Mechanisms

4. Ongoing and Potential Enhancements

4.1 Validation and Parameter Tuning

4.2 Performance Optimization

5. Methodological Approaches and Future Directions

5.1 Comparison of High-Resolution Cloud Modeling Methods

Several methodological approaches exist for generating high-resolution cloud fields, each with distinct characteristics suited to different applications:

Large Eddy Simulation (LES)

Machine Learning / Camera-Based (e.g., Cloud4D)

Procedural Physics-Based (Current LAPS Approach)

5.2 Future Direction: Camera-Informed Hybrid Approach

Inspired by Cloud4D methodology, a future enhancement combines all-sky camera observations with the existing satellite-derived 3D cloud analysis to achieve 50m resolution downscaling:

Conceptual Framework

Cloud-Type Stratification

Quality Control Requirements

Implementation Phases

Graceful Degradation

The system maintains robustness by falling back to procedural generation when camera data is unavailable or fails QC—ensuring output is never worse than the current operational approach.

6. Applications

7. All-Sky Camera Case Studies

Side-by-side comparisons of SWIm (Simulated Weather Imagery) renderings with all-sky camera observations are used to validate cloud structure and tune algorithm parameters. These case studies document specific investigations and the resulting parameter adjustments.

7.1 Thin Cold Cirrus Gossamer Investigation (January 2026)

Case: allsky.log.260222235 — Thin cold cirrus at 233K (-40°C)

Initial Observation

Diagnostic Log Analysis

Parameter Value Interpretation
Temperature 233.1K (-40°C) Very cold, full cirrus regime
temp_factor 0.996 Maximum cirrus treatment
density_factor 0.11-0.20 Low — texture preserved (anti-mottling minimal)
h_aspect (stretch) 4.98 5:1 anisotropic stretch IS applied correctly
pattern_amplitude 0.180 Capped at cirrus floor — BOTTLENECK
anti_mottle range 0.78-0.91 Only 13% variation — too subtle to see

Comparison with Working Case

Reference: combined_260182200_v4.png — Visible striations in 262K altostratus

Good case: 262K altostratus with visible striations

Figure 7.1: SWIm rendering (left) vs all-sky camera (right) — 262K altostratus showing visible texture variation with pattern_amplitude = 0.80

Metric Bad Case (233K cirrus) Good Case (262K altostratus)
temp_factor 0.996 0.0
pattern_amplitude 0.18 0.80
anti_mottle range 0.78-0.91 (13%) 0.19-0.87 (68%)
Final output ratios 1.7-2.1 (all enhancement) 0.12-0.78 (real clearings)

Root Cause & Resolution