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

Download instructions for BALTRAD #2

Open
peterdesmet opened this issue Jul 29, 2022 · 0 comments
Open

Download instructions for BALTRAD #2

peterdesmet opened this issue Jul 29, 2022 · 0 comments
Assignees

Comments

@peterdesmet
Copy link
Member

Here are download instructions I wrote for BALTRAD. Should be integrated in the website

Data can be downloaded using the following methods.

bioRad

Amazon S3 command line interface

Data are stored in the Amazon S3 bucket enram-vp, which is publicly accessible. The Amazon S3 Command Line Interface (AWS S3 CLI) provides functionalities to efficiently list and download files.

Installation:

python -m pip install awscli

List files for a directory with ls (add --recursive to see the content of subdirectories):

$ aws s3 ls s3://enram-vp/baltrad/hdf5/bejab/
PRE 2018/
PRE 2019/
PRE 2020/
PRE 2021/

Sync/download files to a local directory with sync (add --dryrun to test):

$ aws s3 sync s3://enram-vp/baltrad/hdf5/bejab/ ~/Downloads/baltrad/
download: s3://enram-vp/baltrad/hdf5/bejab/2018/05/22/bejab_vp_20180522T102000Z_0x5.h5 to 2018/05/22/bejab_vp_20180522T102000Z_0x5.h5
download: s3://enram-vp/baltrad/hdf5/bejab/2018/05/22/bejab_vp_20180522T102500Z_0x5.h5 to 2018/05/22/bejab_vp_20180522T102500Z_0x5.h5
download: s3://enram-vp/baltrad/hdf5/bejab/2018/05/22/bejab_vp_20180522T103000Z_0x5.h5 to 2018/05/22/bejab_vp_20180522T103000Z_0x5.h5

Sync is generally more useful than copy (cp), because it will browse subdirectories by default and skip files that are already downloaded. So you can stop the command at any point (Ctrl+c) and it will pick up where it left off if you run it again.

@peterdesmet peterdesmet self-assigned this Jul 29, 2022
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