ACCESS-Cloud-Based-InSAR / DockerizedTopsApp

Apache License 2.0
21 stars 2 forks source link

Update Logging for Hyp3 #15

Closed cmarshak closed 2 years ago

cmarshak commented 2 years ago

Include logs to both standard err and to log directory for logging.

Specifically, these lines: https://github.com/ACCESS-cloud-based-InSAR/DockerizedTopsApp/blob/dev/isce2_topsapp/topsapp_proc.py#L81-L84

cmarshak commented 2 years ago

Per @jhkennedy suggestion:

docker run -ti -v $PWD:/home/ops/topsapp_data topsapp_img \
               --reference-scenes S1B_IW_SLC__1SDV_20210723T014947_20210723T015014_027915_0354B4_B3A9 \
               --secondary-scenes S1B_IW_SLC__1SDV_20210711T014922_20210711T014949_027740_034F80_859D \
                                    S1B_IW_SLC__1SDV_20210711T014947_20210711T015013_027740_034F80_D404 \
                                    S1B_IW_SLC__1SDV_20210711T015011_20210711T015038_027740_034F80_376C \
               --username <username> --password <password> > >(tee -a topsapp_img.out) 2> >(tee -a topsapp_img.err >&2)

or > topsapp_img.out 2> topsapp_img.err.