for file in *.nc; do
    if ncdump -h "$file" | grep -q "UNLIMITED" || [ $(ncdump -h "$file" | grep -E "(float|double|int|short)" | wc -l) -gt 0 ]; then
        echo "ARCHIVO VÁLIDO: $file"
    else
        echo "ARCHIVO VACÍO/SIN DATOS: $file"
        # rm "$file"
    fi
done
