Loading...
 
ESA > Join & Share > avhrr_software_docker
Print

avhrr_software_docker

The files in this folder are used to dockerize unibern's avh_sip software.
 
To use avh_sip with docker, follow these steps:
 
CREATE THE DOCKER IMAGE:
 - unzip the latest version of the avh_sip software
 - copy this files to the resulting folder (e.g. /opt/avh_sip)
 - cd /opt/avh_sip
 - docker build --tag=avh_sip .
 
TO RUN THE WORKFLOW IN A CONTAINER:
(example for product 0003100331TSN4)
 
set the volumes:
- local_prod_dir=/root/0003100331TSN4/
- container_prod_dir=/0003100331TSN4/
- prod_dir_vol=$local_prod_dir:$container_prod_dir
- local_l1a_dir=/root/l1a/
- container_l1a_dir=/l1a/
- l1a_dir_vol=$local_l1a_dir:$container_l1a_dir
- local_output_dir=/root/tmp/
- container_output_dir=/tmp/
- output_dir_vol=$local_output_dir:$container_output_dir
 
run the steps:
1. docker run -v $prod_dir_vol -v $l1a_dir_vol avh_sip build_l1a_filename_esa $container_prod_dir -d $container_l1a_dir
2. docker run -v $prod_dir_vol -v $l1a_dir_vol -v $output_dir_vol avh_sip at_meta -p TRS $container_l1a_dir/N14_20000310033919.l1a -t -l -c directory $container_output_dir
3. docker run -v $prod_dir_vol -v $l1a_dir_vol -v $output_dir_vol shm-size=1gb avh_sip at_hmf_to_l1b $container_l1a_dir/N14_20000310033919.l1a -s TRS directory $container_output_dir
4. docker run -v $prod_dir_vol -v $l1a_dir_vol -v $local_output_dir/dst/L1B/:$container_output_dir/dst/L1B/ -v $local_output_dir/l1b/2000/03/:$container_output_dir/l1b/2000/03/ shm-size=1gb avh_sip l1b_to_sip $container_output_dir/l1b/2000/03/N14_20000310033919.l1b -s TMS directory $container_output_dir/dst/L1B/
5. docker run -v $output_dir_vol -v $prod_dir_vol -v $l1a_dir_vol -v $local_output_dir/dst/L1A/:$container_output_dir/dst/L1A/ -v $local_output_dir/dst/L1B/:$container_output_dir/dst/L1B/ -v $local_output_dir/l1b/2000/03/:$container_output_dir/l1b/2000/03/ shm-size=1gb avh_sip l1a_to_sip_esa $container_prod_dir, TMS, $container_l1a_dir/N14_20000310033919.l1a, $container_output_dir/l1b/2000/03/N14_20000310033919.l1b, $container_output_dir/dst/L1B/N14_RPRO_AVH_L1B_1P_20000310T033157_20000310T034647_026762_v0100.ZIP directory $container_output_dir/dst/L1A/
 
 


Contributors to this page: .

Page last modified on Wednesday 13 of November 2019 15:42:50 CET by .