I would like to report a path-handling issue in getanc.
When running getanc with an output path that contains a relative directory, for example:
getanc L1B/PACE_OCI.20240913T030441.L1B.V3.nc \
-o anc/PACE_OCI.20240913T030441.anc
getanc fails with:
FileNotFoundError: [Errno 2] No such file or directory:
'/home/.../anc/anc/PACE_OCI.20240913T030441.anc.server'
I expected getanc to write to:
anc/PACE_OCI.20240913T030441.anc
But instead the tool creates a wrong doubled directory:
anc/anc/...
If -o contains only a filename (no directory), it works correctly.
If -o uses an absolute path, the problem does not occur.
OCSSW V2025.5
Ubuntu 20.04 / WSL2
getanc produces incorrect doubled relative output path (eg. anc/anc/) when using -o with relative directories
-
OB.DAAC - SeanBailey
- User Services

- Posts: 66
- Joined: Mon Dec 16, 2024 8:43 am America/New_York
- Endorsed: 5 times
Re: getanc produces incorrect doubled relative output path (eg. anc/anc/) when using -o with relative directories
Thanks for the report. We'll get a fix for this in an upcoming release.
Regards,
Sean
Regards,
Sean