Select and read a collection of files
- Information contained in files and folders names are used to create basic selection filters
- Both local and remote file systems (FTP, S3, ...) can be explored
- Multiple implementations for handling different products and their specificities
- Easy building of an implementation for a new product
conda install files_collections -c conda-forgefrom fcollections.implementations import NetcdfFilesDatabaseSwotLRL3
fc = NetcdfFilesDatabaseSwotLRL3("data_dir")
ds = fc.query(subset='Basic', cycle_number=1, pass_number=1)
print(ds.sizes)Output:
Frozen({'num_lines': 9860, 'num_pixels': 69})
print(list(ds.data_vars))Output:
['mdt', 'ssha_filtered', 'ssha_unfiltered', 'cycle_number', 'pass_number']
📘 Full documentation: https://cnes.github.io/fcollections/index.html
Key pages:
Apache 2.0 — see LICENSE