#!/bin/bash

#!/bin/bash

find ERA5_WITHMSA -type f -name "wrf*" | while read -r file; do
    echo "Compressing: $file"
    zstd -19 "$file" -o "${file}.zst" && rm "$file"
done

echo "Compression completed!"

