Skip to content

ADD: Integration tests for radar preprocessing with baseline image comparison#20

Merged
rcjackson merged 1 commit intoARM-Development:mainfrom
rcjackson:img_processing
Apr 23, 2026
Merged

ADD: Integration tests for radar preprocessing with baseline image comparison#20
rcjackson merged 1 commit intoARM-Development:mainfrom
rcjackson:img_processing

Conversation

@rcjackson
Copy link
Copy Markdown
Collaborator

  • Fix issue with plot markers being in radar image
  • Fix sweep_mode parsing to handle CF/Radial 'azimuth_surveillance' mode (null-byte-delimited string) alongside 'ppi' and 'sector'
  • Fix ref_min/ref_max computation to use np.nanmin/nanmax and a local variable instead of reassigning the min_ref parameter (which caused NaN)
  • Add numpy import to radar_preprocessing.py
  • Add open-radar-data to dev dependencies
  • Add tests/integration/ with conftest that removes unit-test mocks so real xradar/cmweather are used
  • Add baseline PNGs in tests/data/baseline/preprocessing/ for the three GUC XPRECIP CMAC PPI files from open-radar-data

…mparison

- Fix sweep_mode parsing to handle CF/Radial 'azimuth_surveillance' mode
  (null-byte-delimited string) alongside 'ppi' and 'sector'
- Fix ref_min/ref_max computation to use np.nanmin/nanmax and a local
  variable instead of reassigning the min_ref parameter (which caused NaN)
- Add numpy import to radar_preprocessing.py
- Add open-radar-data to dev dependencies
- Add tests/integration/ with conftest that removes unit-test mocks so
  real xradar/cmweather are used
- Add baseline PNGs in tests/data/baseline/preprocessing/ for the three
  GUC XPRECIP CMAC PPI files from open-radar-data

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rcjackson rcjackson merged commit cba1a2d into ARM-Development:main Apr 23, 2026
4 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.

1 participant