Copinicoos
Copinicoos is a Copernicus satellite image download manager.
Copinicoos can ...
- Automate the download of all results in a search query.
- Download in parallel processes, for faster downloads.
- Manage polling for offline products.
- Stop and resume downloads, anytime!
Install
pip install copinicoos
Usage
Interactive Mode
To launch,
py -m copinicoos
And then follow on-screen prompt:
-
Enter Download Directory. Where products will be downloaded to. Entering nothing will default to current directory.
-
Enter number of Corpernicus accounts. Each account will initialise 2 parallel download processes.
-
Authenticate accounts by entering login credentials.
-
Enter query. This can be obtained from Copernicus Open Hub
Request Done: ( ... ). Just copy that whole string. -
Enter Polling Interval. Entering nothing will use default.
-
Enter offline product download retries. Entering nothing will use default.
Resume download
Again, launch
py -m copinicoos
And then follow on-screen prompt:
-
Enter download directory containing
copinicoos_logs. Or, if current working directory hascopinicoos_logs, entering nothing will resume download from current working directory's savepoint. Savepoints are stored insidecopinicoos_logs. -
Agree to resume download
-
Enter Polling Interval. Entering nothing will use default.
-
Enter offline product download retries. Entering nothing will use default.
Argparse Mode
This mode is so that copinicoos can be called from a script.
All options:
py -m copinicoos <subcommand> -d <download-location> -r <offline-retries> -p <polling-interval>
Subcommand:
-
resume
-
fresh
resume
py -m copinicoos resume
Resume download from savepoint in current working directory.
py -m copinicoos resume -d <download directory>
Resume download from savepoint in <download directory>.
fresh
py -m copinicoos fresh <query> <credentials>
Start a fresh download.
Input can be read from a text file by affixing @ to file name eg.
py -m copinicoos fresh @query.txt @secrets.json
eg. Inside query.txt
( footprint:"Intersects(POLYGON((91.45532862800384 22.42016942838278,91.34620270146559 22.43895934481047,91.32598614177974 22.336847270362682,91.4350291249018 22.31804599405974,91.45532862800384 22.42016942838278)))" ) AND ( (platformname:Sentinel-1 AND producttype:GRD))
eg. Inside secrets.json
{
"u1":"username1",
"p1":"password1",
"u2":"username2",
"p2":"password2"
}
Note: " has to be escaped, ie \", if parsing directly to the cmd.
For more details:
py -m copinicoos --help
Logs
Logs can be found in a folder named copinicoos_logs in the same directory where products are downloaded to. Manually deleting copinicoos_logs will restart the download.
A summary of finished downloads can be found in copinicoos_logs\WorkerManager.log. Resume points are saved in <InstanceName>_progress.txt
Metadata
Release files for copinicoos 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| copinicoos-0.0.2.tar.gz | 16.1 kB | Without provenance | Details for copinicoos-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| copinicoos-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for copinicoos-0.0.2-py3-none-any.whl |
Total release size: 34.4 kB
Release files / copinicoos-0.0.2.tar.gz
| Download URL | copinicoos-0.0.2.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7611ef6e100870fd4407c032b5ccf07f5c62f93bdd7b98243a1de13d3f687ec
|
|
BLAKE2b-256 checksum How to use checksums |
a55aefdd38b7b7e5a52d436eeb28bedf538aeadbe441ef6c3ce4b57e8c63e463
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
|
Release files / copinicoos-0.0.2-py3-none-any.whl
| Download URL | copinicoos-0.0.2-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
638283be9e678e6d70b8a644c56896ff4b6766821786fe3d237818d81bbb97e6
|
|
BLAKE2b-256 checksum How to use checksums |
458548da4afb5436a00319eee9e6d39d839ecdb3079b276ca63e2ad09f67272e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
|
Security for copinicoos 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.