The downloade list creators searches the OBPG site and creates a list of files to download based on the arguments passed to the Docker container.
Top-level Generate repo: https://github.com/podaac/generate
None.
docker build --tag download_list_creator:0.1 .
Arguemnts:
- search_pattern
- output_directory
- processing_type
- processing_level
- state_file_name
- num_days_back
- granule_start_date
- granule_end_date
- naming_pattern_indicator
MODIS A:
docker run --rm --name dlc -v /dlc/data:/data download_list_creator:0.1 'AQUA_MODIS.*L2.SST4.|AQUA_MODIS.*L2.OC.|AQUA_MODIS.*L2.SST.' /data/output MODIS_A L2 /data/state_file/modis_a_state.txt 1 'dummy' 'dummy' GHRSST_OBPG_USE_2019_NAMING_PATTERN_TRUE
MODIS T:
docker run --rm --name dlc -v /dlc/data:/data download_list_creator:0.1 'TERRA_MODIS.*L2.SST4.|TERRA_MODIS.*L2.OC.|TERRA_MODIS.*L2.SST.' /data/output MODIS_T L2 /data/state_file/modis_t_state.txt 1 'dummy' 'dummy' GHRSST_OBPG_USE_2019_NAMING_PATTERN_TRUE
VIIRS:
docker run --rm --name dlc -v /dlc/data:/data download_list_creator:0.1 'SNPP_VIIRS.*SST.|SNPP_VIIRS.*SST3.' /data/output VIIRS L2 /data/state_file/viirs_state.txt 1 'dummy' 'dummy' GHRSST_OBPG_USE_2019_NAMING_PATTERN_TRUE
NOTES
- In order for the commands to execute the
/dlc/
directories will need to point to actual directories on the system.
The download list creators includes the following AWS services:
- AWS Lambda function.
- AWS S3 bucket to hold output text files.
- AWS SQS queue to allow the publication of the list of text files.
Deploys AWS infrastructure and stores state in an S3 backend using a DynamoDB table for locking.
To deploy:
- Edit
terraform.tfvars
for environment to deploy to. - Edit
terraform_conf/backed-{prefix}.conf
for environment deploy. - Initialize terraform:
terraform init -backend-config=terraform_conf/backend-{prefix}.conf
- Plan terraform modifications:
terraform plan -out=tfplan
- Apply terraform modifications:
terraform apply tfplan
{prefix}
is the account or environment name.