Skip to content

Add Apple Silicon build support and update AWS radar access#3

Open
Rafnuss wants to merge 19 commits into
darkecology:masterfrom
Rafnuss:master
Open

Add Apple Silicon build support and update AWS radar access#3
Rafnuss wants to merge 19 commits into
darkecology:masterfrom
Rafnuss:master

Conversation

@Rafnuss

@Rafnuss Rafnuss commented Jun 23, 2026

Copy link
Copy Markdown

Summary

This PR improves wsrlib support for modern MATLAB installations on Apple Silicon and updates access to public NEXRAD data through the AWS CLI.

Changes

  • Add MATLAB maca64 architecture support to MatConvNet:
    • use Quartz for image handling
    • configure ARM-compatible compiler flags and object files
    • avoid x86 intrinsics on non-x86 targets
    • explicitly disable unsupported CUDA builds
  • Improve native build setup:
    • respect the CC and CXX environment variables
    • otherwise detect Clang on macOS or GCC on other platforms
    • quote build paths when invoking make
  • Update AWS NEXRAD access:
    • use unsigned requests for public S3 data
    • disable AWS CLI paging
    • return JSON from object listings
    • add parsed MATLAB datetime values
  • Replace deprecated histc usage with histcounts.
  • Expand and correct MATLAB function documentation.
  • Add MATLAB and binary-file Git attributes and ignore patterns.
  • Apply formatting cleanup across examples and source files.

Add a function similar to `mistnet_polar()` but which compute the prediction on the exact same grid than `radar.dz.sweeps()` rather than the ELEV, R and AZ arguments.
Similar function than `aws_list()` but allows datetime type as input
Add explicit handling for a new 'maca64' architecture in vl_compilenn.m (image library selection, object extension, file lists, and compiler flags), disable GPU builds on 'maca64', and guard CUDA mex compilation on opts.enableGpu. Restrict inclusion of x86 intrinsics in normalize_cpu.cpp to actual x86 targets to avoid non-x86 build issues. Improve wsrlib_make.m by using CC/CXX environment variables or auto-detecting system compilers (clang on mac, gcc on other OSes), validating their presence, and quoting paths when invoking make.
Replace hardcoded '/usr/local/bin/aws' with 'aws' (relying on PATH) across AWS helper scripts and example to improve portability. Updated commands include s3 ls, s3 cp, and s3api list-objects (AWS_PAGER usage preserved). Files changed: examples/aws/demo1_s3.m, src/aws/aws_get_scan.m, src/aws/aws_list.m, src/radar/rsl2mat_s3.m.
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