Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified version for download of CT images #1

Open
pmffromspace opened this issue Feb 10, 2025 · 0 comments
Open

Modified version for download of CT images #1

pmffromspace opened this issue Feb 10, 2025 · 0 comments

Comments

@pmffromspace
Copy link

Just wanted to share my approach to download additiional head images for 3d reconstruction of dental related CT / DICOMs

#!/bin/bash

counter=0
while [ $counter -le 463 ]
do
    # Format the counter to always have 3 digits
    padded_counter=$(printf "%03d" "$counter")

    url="https://data.lhncbc.nlm.nih.gov/public/Visible-Human/Additional-Head-Images/MR_CT_DICOM/CAT/J.${padded_counter}.gz"
    echo "Downloading: $url"

    # Download the file
    wget "$url" || echo "Failed to download J.$padded_counter.gz" && sleep 2

    ((counter++))
done

echo All done
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

No branches or pull requests

1 participant