Skip to content

CNES/fcollections

 
 

Repository files navigation

Files Collections

Linting Tests Documentation License

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

Installation

conda install files_collections -c conda-forge

Use

from 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']

Documentation

📘 Full documentation: https://cnes.github.io/fcollections/index.html

Key pages:

Project status

⚠️ This project is still subject to breaking changes. Versioning will reflects the breaking changes using SemVer convention

License

Apache 2.0 — see LICENSE

About

Select and open data from Files collections

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.5%
  • Other 0.5%