Commit 2c63d998 authored by Cresson Remi's avatar Cresson Remi
Browse files

ADD: app to serialize collections of S2 level 2A or 3A

1 merge request!12ENH: S2A and S3A support
Pipeline #33639 passed with stages
in 2 minutes and 9 seconds
Showing with 1 addition and 1 deletion
+1 -1
...@@ -9,7 +9,7 @@ parser.add_argument('--level', default='2A', const='2A', nargs='?', choices=['2A ...@@ -9,7 +9,7 @@ parser.add_argument('--level', default='2A', const='2A', nargs='?', choices=['2A
params = parser.parse_args() params = parser.parse_args()
# Get all scenes in the root_dir # Get all scenes in the root_dir
product_type = sentinel.Sentinel23AScene if params.level == '2A' else sentinel.Sentinel33AScene product_type = sentinel.Sentinel23AScene if params.level == '2A' else sentinel.Sentinel23AScene
archives = utils.find_files_in_all_subdirs(pth=params.root_dir, pattern="*.zip", case_sensitive=False) archives = utils.find_files_in_all_subdirs(pth=params.root_dir, pattern="*.zip", case_sensitive=False)
scenes = [product_type(archive=archive) for archive in archives] scenes = [product_type(archive=archive) for archive in archives]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment