Usage¶
PhenoFetch provides a straightforward command-line interface for downloading and analyzing PhenoCam data. This page covers the basic usage patterns and common workflows.
Command Structure¶
All PhenoFetch commands follow this basic structure:
The main commands are:
sites- List all available PhenoCam sitesstats- Display statistics for a siteestimate- Estimate download size for a date rangedownload- Download data for a specific site and date range
Getting Help¶
To see all available commands and options:
For help with a specific command:
Common Arguments¶
Many commands share common arguments:
--site- NEON site code (e.g., ABBY, BART)--product- NEON product ID (e.g., DP1.00033)--start-date- Start date in YYYY-MM-DD format--end-date- End date in YYYY-MM-DD format
Basic Workflow¶
A typical workflow with PhenoFetch might look like this:
-
Discover available sites:
-
Check site statistics to understand data availability:
-
Estimate download size before committing to a large download:
-
Download the data:
Understanding Download Output¶
When downloading data, PhenoFetch will create a directory structure that preserves the organization of the files:
output_dir/
├── full_res/
│ ├── image1.jpg
│ ├── image2.jpg
│ └── ...
├── thumbnails/
│ ├── thumb1.jpg
│ ├── thumb2.jpg
│ └── ...
└── meta/
├── metadata1.meta
├── metadata2.meta
└── ...
full_res/- Contains full-resolution imagesthumbnails/- Contains thumbnail imagesmeta/- Contains metadata files
Managing Downloads¶
PhenoFetch provides several options to manage downloads effectively:
-
Batch size: Control how many files are processed in each batch
-
Concurrency: Set maximum number of concurrent downloads (by default, this is auto-determined based on your system resources)
-
Timeout: Set connection timeout in seconds
Preview Mode¶
To see what files would be downloaded without actually downloading them:
Note that omitting the --download flag will only show a summary of available files.