Skip to content

FIX: Fix CAPPI to account for atmospheric refraction#1830

Merged
zssherman merged 5 commits intoARM-DOE:mainfrom
syedhamidali:main
Mar 5, 2026
Merged

FIX: Fix CAPPI to account for atmospheric refraction#1830
zssherman merged 5 commits intoARM-DOE:mainfrom
syedhamidali:main

Conversation

@syedhamidali
Copy link
Contributor

@syedhamidali syedhamidali commented Feb 7, 2026

Updated CAPPI to honor radar geometry and the standard refractivity model. The routine now pulls gate heights from radar.gate_z (which already includes the 4/3 Earth-radius/curvature effect), aligns them to a common azimuth grid per sweep, and selects the nearest gates via that geometry. Field data interpolation now stays aligned with these refractivity-aware heights after Nyquist filtering, replacing the previous flat-Earth R*sin(elevation) approximation.

@syedhamidali
Copy link
Contributor Author

Kindly confirm @scollis, @tsbiscaro

@zssherman
Copy link
Collaborator

@RBhupi Whenever you have time, if you can give a review of this as well

@zssherman zssherman requested a review from RBhupi February 9, 2026 16:43
@syedhamidali
Copy link
Contributor Author

I’m seeing a rotation issue when creating a CAPPI. Using the sample file = DATASETS.fetch("RAW_NA_000_125_20080411190016") everything looks correct, image but with
KSGF20180612_083109_V06.nc the plot is rotated -180º. Not sure whether this is a projection or azimuth ordering problem, any pointers would be appreciated.
image

cc @kmuehlbauer @aladinor @mgrover1 @dopplerchase

@RBhupi
Copy link
Collaborator

RBhupi commented Mar 2, 2026

Nice to reconnect with you @syedhamidali !

Adding height tolerance is a good decision.
Metadata for return object is better (refined) than older version .

I could not understand why the rotation issues caused only in Nexrad file. Wht fixed it?

@zssherman zssherman merged commit cf2a317 into ARM-DOE:main Mar 5, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create_cappi does not consider refractivity or Earth radius

3 participants