defair-data 0.4.0rc2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- defair_data-0.4.0rc2/LICENSE +175 -0
- defair_data-0.4.0rc2/PKG-INFO +63 -0
- defair_data-0.4.0rc2/README.md +1 -0
- defair_data-0.4.0rc2/pyproject.toml +185 -0
- defair_data-0.4.0rc2/src/defair_data/__init__.py +113 -0
- defair_data-0.4.0rc2/src/defair_data/_grid_split.py +457 -0
- defair_data-0.4.0rc2/src/defair_data/_logging_defaults.py +63 -0
- defair_data-0.4.0rc2/src/defair_data/_path_utils.py +54 -0
- defair_data-0.4.0rc2/src/defair_data/_types.py +75 -0
- defair_data-0.4.0rc2/src/defair_data/cdm.py +1404 -0
- defair_data-0.4.0rc2/src/defair_data/cf_flags.py +459 -0
- defair_data-0.4.0rc2/src/defair_data/constants.py +19 -0
- defair_data-0.4.0rc2/src/defair_data/core.py +3025 -0
- defair_data-0.4.0rc2/src/defair_data/dask_manager.py +1343 -0
- defair_data-0.4.0rc2/src/defair_data/data_reader_plugin.py +545 -0
- defair_data-0.4.0rc2/src/defair_data/data_source_plugin.py +334 -0
- defair_data-0.4.0rc2/src/defair_data/data_writer_plugin.py +186 -0
- defair_data-0.4.0rc2/src/defair_data/logging.py +34 -0
- defair_data-0.4.0rc2/src/defair_data/py.typed +0 -0
- defair_data-0.4.0rc2/src/defair_data/readers/__init__.py +102 -0
- defair_data-0.4.0rc2/src/defair_data/readers/_metop_products.py +310 -0
- defair_data-0.4.0rc2/src/defair_data/readers/_mtg_chunk_naming.py +41 -0
- defair_data-0.4.0rc2/src/defair_data/readers/_reader_metadata.py +420 -0
- defair_data-0.4.0rc2/src/defair_data/readers/_time_utils.py +93 -0
- defair_data-0.4.0rc2/src/defair_data/readers/era5_grib/__init__.py +21 -0
- defair_data-0.4.0rc2/src/defair_data/readers/era5_grib/era5_grib_reader_plugin.py +901 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/__init__.py +163 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_eps_native_base_reader.py +911 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_eps_parser.py +1636 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_gome2_parser.py +1259 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_iasi_snd_parser.py +1591 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_iasi_utils.py +65 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_metop_base_reader.py +904 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_metop_coordinate_utils.py +251 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_metop_metadata.py +2555 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_metop_netcdf_gridded_base.py +298 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_metop_netcdf_swath_base.py +376 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/_netcdf_engine.py +116 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_amsul1_reader_plugin.py +268 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_ascszf1b_reader_plugin.py +567 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_ascszfr02_reader_plugin.py +70 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_ascszo1b_reader_plugin.py +544 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_ascszor02_reader_plugin.py +270 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_ascszr1b_reader_plugin.py +660 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_ascszrr02_reader_plugin.py +410 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_avhrr_amv_reader_plugin.py +392 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_avhrrl1_reader_plugin.py +1116 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_edlst_reader_plugin.py +747 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_glbsst_reader_plugin.py +100 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_gomel1_reader_plugin.py +1402 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_gomel1r03_reader_plugin.py +84 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_hirs_fdr_reader_plugin.py +494 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_hirsl1_reader_plugin.py +280 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_iasil1c_all_reader_plugin.py +537 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_iasisnd02_reader_plugin.py +1109 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_iasthr011_reader_plugin.py +714 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_mhsl1_reader_plugin.py +163 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_osi104_reader_plugin.py +239 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_osi150a_reader_plugin.py +90 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_osi150b_reader_plugin.py +95 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_somo12_reader_plugin.py +353 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/metop_somo25_reader_plugin.py +347 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/AMSAL1/band_to_record.yaml +279 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/AMSAL1/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/AMSAL1/giadr_2_3.csv +86 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/AMSAL1/mdr_2_3.csv +131 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZF/band_to_record.yaml +102 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZF/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZF/mdr_3_3.csv +21 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZF/mdr_3_4.csv +25 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZF/mdr_3_5.csv +25 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZF/viadr_4_2.csv +9 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZF/viadr_6_2.csv +15 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZO/band_to_record.yaml +561 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZO/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZO/mdr_2_2.csv +27 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZO/mdr_2_3.csv +30 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZO/mdr_2_4.csv +26 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZO/viadr_4_2.csv +9 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZO/viadr_6_2.csv +15 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZR/band_to_record.yaml +628 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZR/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZR/mdr_1_2.csv +27 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZR/mdr_1_3.csv +30 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZR/mdr_1_4.csv +26 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZR/viadr_4_2.csv +9 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL1SZR/viadr_6_2.csv +15 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMO/band_to_record.yaml +282 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMO/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMO/mdr_5_0.csv +40 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMO/mdr_5_1.csv +51 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMO/mdr_5_2.csv +51 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMO/viadr_7_2.csv +30 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMR/band_to_record.yaml +271 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMR/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMR/mdr_4_0.csv +40 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMR/mdr_4_1.csv +51 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMR/mdr_4_2.csv +55 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/ASCATL2SMR/viadr_7_2.csv +30 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/AVHRRL1/band_to_record.yaml +198 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/AVHRRL1/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/AVHRRL1/giadr_1_3.csv +50 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/AVHRRL1/giadr_2_2.csv +114 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/AVHRRL1/mdr_2_4.csv +85 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/AVHRRL1/mdr_2_5.csv +85 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/giadr_4.csv +10 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/giadr_5.csv +10 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/giadr_6.csv +5 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/giadr_7.csv +7 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_6_5.csv +102 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_6_6.csv +105 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_7_fmv12.csv +38 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_7_fmv13.csv +39 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_8_fmv12.csv +40 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_8_fmv13.csv +41 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_9_fmv12.csv +44 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_9_fmv13.csv +45 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_band_m.csv +4 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_band_p.csv +5 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_geo_earth_actual.csv +10 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_polss.csv +6 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/mdr_polv.csv +4 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/sphr_1.csv +99 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME2L1/viadr_5.csv +16 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_AOP/band_to_record.yaml +328 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_AOP/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_AOP/giadr_1_1.csv +21 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_AOP/giadr_2_1.csv +17 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_AOP/giadr_3_1.csv +5 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_AOP/mdr_1_2.csv +59 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_AOP/viadr_1_1.csv +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_COP/band_to_record.yaml +229 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_COP/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_COP/giadr_1_1.csv +21 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_COP/giadr_2_1.csv +17 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_COP/giadr_3_1.csv +5 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_COP/mdr_1_2.csv +59 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/GOME_PMA_COP/viadr_1_1.csv +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/HIRSL1/band_to_record.yaml +326 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/HIRSL1/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/HIRSL1/giadr_1_2.csv +13 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/HIRSL1/giadr_2_2.csv +21 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/HIRSL1/mdr_2_2.csv +39 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/IASIL1/band_to_record.yaml +217 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/IASIL1/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/IASIL1/giadr_0_2.csv +16 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/IASIL1/mdr_2_5.csv +65 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/IASISND02/band_to_record.yaml +790 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/IASISND02/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/IASISND02/giadr_1_3.csv +12 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/IASISND02/giadr_1_4.csv +26 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/IASISND02/mdr_1_3.csv +76 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/IASISND02/mdr_1_4.csv +94 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/MHSL1/band_to_record.yaml +169 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/MHSL1/general_metadata.yaml +11 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/MHSL1/giadr_1_3.csv +14 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/MHSL1/giadr_2_3.csv +81 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/MHSL1/giadr_3_1.csv +35 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/MHSL1/mdr_2_3.csv +101 -0
- defair_data-0.4.0rc2/src/defair_data/readers/metop/resources/eps_native_format/mphr_0_2.csv +75 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/__init__.py +21 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/_coordinate_cache.py +276 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/_dt_msg.py +239 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/_dt_msg_15_native_reader.py +849 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/_msg15_xarray_backend.py +911 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/_msg_aux_metadata.py +184 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/_seviri_bt_coeffs.py +111 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/_seviri_refl_coeffs.py +89 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/msg15_native_reader_plugin.py +2364 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/resources/msg_native_format/records/15_header.csv +9 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/resources/msg_native_format/records/15_trailer.csv +7 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/resources/msg_native_format/sections/15_header.csv +14681 -0
- defair_data-0.4.0rc2/src/defair_data/readers/msg15/resources/msg_native_format/sections/15_trailer.csv +3930 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/__init__.py +35 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/_fci_aux_metadata.py +189 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/_fci_bt_coeffs.py +96 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/_fci_coordinate_cache.py +251 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/_fci_metadata.py +114 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/_fci_refl_coeffs.py +74 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/_mtg_l2_flag_metadata.py +289 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/_mtg_projection_gridded_base.py +844 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/_mtg_segment_product_base.py +685 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/mtg_fci_l1c_nc_reader_plugin.py +3590 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/mtg_l2_amv_reader_plugin.py +429 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/mtg_l2_asr_reader_plugin.py +735 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/mtg_l2_clm_reader_plugin.py +104 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/mtg_l2_gii_reader_plugin.py +127 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/mtg_l2_oca_reader_plugin.py +154 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_fci/mtg_l2_olr_reader_plugin.py +89 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/__init__.py +58 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/_li_base_reader.py +1187 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/_li_coordinate_cache.py +252 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/_li_metadata.py +124 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/_li_point_base_reader.py +1281 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/_li_point_metadata.py +123 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/_li_sparse_reconstruction.py +579 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/mtg_li_af_reader_plugin.py +72 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/mtg_li_afa_reader_plugin.py +72 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/mtg_li_afr_reader_plugin.py +72 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/mtg_li_lef_reader_plugin.py +58 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/mtg_li_lfl_reader_plugin.py +63 -0
- defair_data-0.4.0rc2/src/defair_data/readers/mtg_li/mtg_li_lgr_reader_plugin.py +61 -0
- defair_data-0.4.0rc2/src/defair_data/readers/planck.py +193 -0
- defair_data-0.4.0rc2/src/defair_data/readers/reflectance.py +120 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/__init__.py +92 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/_olci_base.py +435 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/_olci_l1_base.py +292 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/_olci_l2_water_base.py +342 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/_safe_netcdf_merge.py +104 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/_safe_package.py +587 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/_sentinel3_base.py +883 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/_slstr_base.py +111 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/_sral_base.py +251 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_aod_reader_plugin.py +341 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_frp_reader_plugin.py +607 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_ol_1_efr_reader_plugin.py +55 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_ol_1_err_reader_plugin.py +51 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_ol_2_wfr_reader_plugin.py +69 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_ol_2_wrr_reader_plugin.py +42 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_sl_1_rbt_reader_plugin.py +625 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_sr1_sra_a_reader_plugin.py +397 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_sr1_sra_bs_reader_plugin.py +465 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_sr1_sra_reader_plugin.py +504 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_sr2_wat_reader_plugin.py +462 -0
- defair_data-0.4.0rc2/src/defair_data/readers/sentinel3/sentinel3_wst_reader_plugin.py +310 -0
- defair_data-0.4.0rc2/src/defair_data/sources/__init__.py +95 -0
- defair_data-0.4.0rc2/src/defair_data/sources/_zip_resolver.py +374 -0
- defair_data-0.4.0rc2/src/defair_data/sources/hda/__init__.py +21 -0
- defair_data-0.4.0rc2/src/defair_data/sources/hda/hda_stac_plugin.py +775 -0
- defair_data-0.4.0rc2/src/defair_data/sources/local/__init__.py +21 -0
- defair_data-0.4.0rc2/src/defair_data/sources/local/local_filesystem_plugin.py +573 -0
- defair_data-0.4.0rc2/src/defair_data/sources/s3/__init__.py +22 -0
- defair_data-0.4.0rc2/src/defair_data/sources/s3/_s3_kwargs.py +87 -0
- defair_data-0.4.0rc2/src/defair_data/sources/s3/s3_base.py +409 -0
- defair_data-0.4.0rc2/src/defair_data/sources/s3/s3_boto3_plugin.py +718 -0
- defair_data-0.4.0rc2/src/defair_data/sources/s3/s3_fsspec_plugin.py +488 -0
- defair_data-0.4.0rc2/src/defair_data/writers/__init__.py +82 -0
- defair_data-0.4.0rc2/src/defair_data/writers/_common/__init__.py +16 -0
- defair_data-0.4.0rc2/src/defair_data/writers/_common/column_writer.py +554 -0
- defair_data-0.4.0rc2/src/defair_data/writers/_common/columnar.py +709 -0
- defair_data-0.4.0rc2/src/defair_data/writers/_common/columnar_geometry.py +324 -0
- defair_data-0.4.0rc2/src/defair_data/writers/_common/columnar_metadata.py +493 -0
- defair_data-0.4.0rc2/src/defair_data/writers/_common/image_utils.py +133 -0
- defair_data-0.4.0rc2/src/defair_data/writers/_common/image_writer.py +353 -0
- defair_data-0.4.0rc2/src/defair_data/writers/_common/path_layout.py +145 -0
- defair_data-0.4.0rc2/src/defair_data/writers/_common/raster_geometry.py +253 -0
- defair_data-0.4.0rc2/src/defair_data/writers/_common/variable_filter.py +80 -0
- defair_data-0.4.0rc2/src/defair_data/writers/csv/__init__.py +20 -0
- defair_data-0.4.0rc2/src/defair_data/writers/csv/csv_writer.py +321 -0
- defair_data-0.4.0rc2/src/defair_data/writers/geotiff/geotiff_writer.py +62 -0
- defair_data-0.4.0rc2/src/defair_data/writers/hdf5/hdf5_writer.py +179 -0
- defair_data-0.4.0rc2/src/defair_data/writers/jpeg/jpeg_writer.py +56 -0
- defair_data-0.4.0rc2/src/defair_data/writers/netcdf4/netcdf4_writer.py +486 -0
- defair_data-0.4.0rc2/src/defair_data/writers/parquet/__init__.py +20 -0
- defair_data-0.4.0rc2/src/defair_data/writers/parquet/parquet_writer.py +321 -0
- defair_data-0.4.0rc2/src/defair_data/writers/png/png_writer.py +43 -0
- defair_data-0.4.0rc2/src/defair_data/writers/zarr/__init__.py +20 -0
- defair_data-0.4.0rc2/src/defair_data/writers/zarr/zarr_writer.py +1866 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: defair-data
|
|
3
|
+
Version: 0.4.0rc2
|
|
4
|
+
Summary: Destination Earth Framework for preparing AI-Ready data
|
|
5
|
+
Keywords: eumetsat,defair,destine,destination earth,machine learning,earth observation
|
|
6
|
+
Author: Dusan Figala, Erwan Fassot
|
|
7
|
+
Author-email: Dusan Figala <dusan@oxidian.com>, Erwan Fassot <erwan@oxidian.com>
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Intended Audience :: Education
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
17
|
+
Classifier: Topic :: Software Development
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Requires-Dist: defair
|
|
26
|
+
Requires-Dist: defair-ops
|
|
27
|
+
Requires-Dist: fsspec>=2025.9.0
|
|
28
|
+
Requires-Dist: xarray>=2025.6.1
|
|
29
|
+
Requires-Dist: loguru>=0.7.3
|
|
30
|
+
Requires-Dist: numpy>=1.24.0
|
|
31
|
+
Requires-Dist: pandas>=2.0.0,<=3.0.3
|
|
32
|
+
Requires-Dist: dask[distributed]>=2023.8.0,<=2025.3.0
|
|
33
|
+
Requires-Dist: pyproj>=3.0.0
|
|
34
|
+
Requires-Dist: rioxarray>=0.15.0
|
|
35
|
+
Requires-Dist: rasterio>=1.3.0
|
|
36
|
+
Requires-Dist: typing-extensions>=4.15.0
|
|
37
|
+
Requires-Dist: numcodecs>=0.12.0
|
|
38
|
+
Requires-Dist: zarr>=2.18.0
|
|
39
|
+
Requires-Dist: earthkit-data>=0.17.0,<1
|
|
40
|
+
Requires-Dist: earthkit-utils>=0.1.1,<0.2
|
|
41
|
+
Requires-Dist: h5netcdf>=1.7.3
|
|
42
|
+
Requires-Dist: boto3>=1.34.0
|
|
43
|
+
Requires-Dist: s3fs>=2025.9.0
|
|
44
|
+
Requires-Dist: cf-xarray>=0.9.0
|
|
45
|
+
Requires-Dist: psutil>=7.1.1
|
|
46
|
+
Requires-Dist: scipy>=1.15.3
|
|
47
|
+
Requires-Dist: gribscan>=0.0.14
|
|
48
|
+
Requires-Dist: python-dotenv>=1.2.1
|
|
49
|
+
Requires-Dist: h5py>=3.16
|
|
50
|
+
Requires-Dist: eccodes>=2.38.0
|
|
51
|
+
Requires-Dist: eccodeslib>=2.38.0
|
|
52
|
+
Requires-Dist: cfgrib>=0.9.14
|
|
53
|
+
Requires-Dist: pystac>=1.14.3
|
|
54
|
+
Requires-Dist: destinelab>=1.14
|
|
55
|
+
Requires-Dist: aiohttp>=3.10.0
|
|
56
|
+
Requires-Dist: tenacity>=9.0.0
|
|
57
|
+
Requires-Dist: filelock>=3.20.0
|
|
58
|
+
Requires-Dist: hdf5plugin>=6.0.0
|
|
59
|
+
Requires-Dist: pyarrow>=18.0.0
|
|
60
|
+
Requires-Python: >=3.10
|
|
61
|
+
Description-Content-Type: text/markdown
|
|
62
|
+
|
|
63
|
+
# Defair Data
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Defair Data
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# Copyright 2025 EUMETSAT
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
[project]
|
|
16
|
+
name = "defair-data"
|
|
17
|
+
version = "0.4.0rc2"
|
|
18
|
+
description = "Destination Earth Framework for preparing AI-Ready data"
|
|
19
|
+
readme = "README.md"
|
|
20
|
+
authors = [
|
|
21
|
+
{ name = "Dusan Figala", email = "dusan@oxidian.com" },
|
|
22
|
+
{ name = "Erwan Fassot", email = "erwan@oxidian.com" }
|
|
23
|
+
]
|
|
24
|
+
classifiers = [
|
|
25
|
+
"Development Status :: 3 - Alpha",
|
|
26
|
+
"Intended Audience :: Developers",
|
|
27
|
+
"License :: OSI Approved :: Apache Software License",
|
|
28
|
+
"Intended Audience :: Education",
|
|
29
|
+
"Intended Audience :: Science/Research",
|
|
30
|
+
"Topic :: Scientific/Engineering",
|
|
31
|
+
"Topic :: Scientific/Engineering :: GIS",
|
|
32
|
+
"Topic :: Software Development",
|
|
33
|
+
"Topic :: Software Development :: Libraries",
|
|
34
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
35
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
36
|
+
"Programming Language :: Python :: 3.10",
|
|
37
|
+
"Programming Language :: Python :: 3.11",
|
|
38
|
+
"Programming Language :: Python :: 3.12",
|
|
39
|
+
"Programming Language :: Python :: 3.13",
|
|
40
|
+
]
|
|
41
|
+
keywords = ["eumetsat", "defair", "destine", "destination earth", "machine learning", "earth observation"]
|
|
42
|
+
license = "Apache-2.0"
|
|
43
|
+
license-files = ["LICENSE"]
|
|
44
|
+
requires-python = ">=3.10"
|
|
45
|
+
dependencies = [
|
|
46
|
+
"defair",
|
|
47
|
+
"defair-ops",
|
|
48
|
+
"fsspec>=2025.9.0",
|
|
49
|
+
"xarray>=2025.6.1",
|
|
50
|
+
"loguru>=0.7.3",
|
|
51
|
+
"numpy>=1.24.0",
|
|
52
|
+
"pandas>=2.0.0,<=3.0.3",
|
|
53
|
+
"dask[distributed]>=2023.8.0,<=2025.3.0",
|
|
54
|
+
"pyproj>=3.0.0",
|
|
55
|
+
"rioxarray>=0.15.0",
|
|
56
|
+
"rasterio>=1.3.0",
|
|
57
|
+
"typing-extensions>=4.15.0",
|
|
58
|
+
"numcodecs>=0.12.0",
|
|
59
|
+
"zarr>=2.18.0",
|
|
60
|
+
# earthkit-data <1 imports array_to_numpy, which earthkit-utils removed after
|
|
61
|
+
# 0.1.x, and declares no upper bound on it; pin both until the coordinated
|
|
62
|
+
# earthkit 1.0 upgrade (data + meteo + utils together).
|
|
63
|
+
"earthkit-data>=0.17.0,<1",
|
|
64
|
+
"earthkit-utils>=0.1.1,<0.2",
|
|
65
|
+
"h5netcdf>=1.7.3",
|
|
66
|
+
"boto3>=1.34.0",
|
|
67
|
+
"s3fs>=2025.9.0",
|
|
68
|
+
"cf-xarray>=0.9.0",
|
|
69
|
+
"psutil>=7.1.1",
|
|
70
|
+
"scipy>=1.15.3",
|
|
71
|
+
"gribscan>=0.0.14",
|
|
72
|
+
"python-dotenv>=1.2.1",
|
|
73
|
+
# h5py 3.15.1 shares a libhdf5_hl soname with netCDF4 wheels, breaking HDF5 readers (DEFAIR-548)
|
|
74
|
+
"h5py>=3.16",
|
|
75
|
+
"eccodes>=2.38.0",
|
|
76
|
+
"eccodeslib>=2.38.0",
|
|
77
|
+
"cfgrib>=0.9.14",
|
|
78
|
+
"pystac>=1.14.3",
|
|
79
|
+
"destinelab>=1.14",
|
|
80
|
+
"aiohttp>=3.10.0",
|
|
81
|
+
"tenacity>=9.0.0",
|
|
82
|
+
"filelock>=3.20.0",
|
|
83
|
+
"hdf5plugin>=6.0.0",
|
|
84
|
+
# Column output (Parquet/GeoParquet/CSV). Floor 18 rather than dask's
|
|
85
|
+
# 14.0.1 because 18 is the first release with wheels across the full
|
|
86
|
+
# Python 3.10-3.13 range this package supports.
|
|
87
|
+
"pyarrow>=18.0.0",
|
|
88
|
+
]
|
|
89
|
+
|
|
90
|
+
[build-system]
|
|
91
|
+
requires = ["uv_build>=0.8.11,<0.9.0"]
|
|
92
|
+
build-backend = "uv_build"
|
|
93
|
+
|
|
94
|
+
[project.entry-points."defair_data.sources"]
|
|
95
|
+
local = "defair_data.sources.local.local_filesystem_plugin:LocalFilesystemPlugin"
|
|
96
|
+
s3 = "defair_data.sources.s3.s3_fsspec_plugin:S3FsspecPlugin"
|
|
97
|
+
s3boto = "defair_data.sources.s3.s3_boto3_plugin:S3Boto3Plugin"
|
|
98
|
+
hda = "defair_data.sources.hda.hda_stac_plugin:HdaStacPlugin"
|
|
99
|
+
|
|
100
|
+
[project.entry-points."defair_data.readers"]
|
|
101
|
+
msg15nat = "defair_data.readers.msg15.msg15_native_reader_plugin:MSG15NativeReaderPlugin"
|
|
102
|
+
era5grib = "defair_data.readers.era5_grib.era5_grib_reader_plugin:ERA5GribReaderPlugin"
|
|
103
|
+
mtg_fci_l1c_nc = "defair_data.readers.mtg_fci.mtg_fci_l1c_nc_reader_plugin:MTGFCIL1cNCReaderPlugin"
|
|
104
|
+
mtg_l2_clm = "defair_data.readers.mtg_fci.mtg_l2_clm_reader_plugin:MTGL2CLMReaderPlugin"
|
|
105
|
+
mtg_l2_oca = "defair_data.readers.mtg_fci.mtg_l2_oca_reader_plugin:MTGL2OCAReaderPlugin"
|
|
106
|
+
mtg_l2_olr = "defair_data.readers.mtg_fci.mtg_l2_olr_reader_plugin:MTGL2OLRReaderPlugin"
|
|
107
|
+
mtg_fci_l2_amv = "defair_data.readers.mtg_fci.mtg_l2_amv_reader_plugin:MTGFCIAMVReaderPlugin"
|
|
108
|
+
mtg_l2_gii = "defair_data.readers.mtg_fci.mtg_l2_gii_reader_plugin:MTGL2GIIReaderPlugin"
|
|
109
|
+
mtg_l2_asr = "defair_data.readers.mtg_fci.mtg_l2_asr_reader_plugin:MTGL2ASRReaderPlugin"
|
|
110
|
+
mtg_li_af = "defair_data.readers.mtg_li.mtg_li_af_reader_plugin:MTGLIAFReaderPlugin"
|
|
111
|
+
mtg_li_afa = "defair_data.readers.mtg_li.mtg_li_afa_reader_plugin:MTGLIAFAReaderPlugin"
|
|
112
|
+
mtg_li_afr = "defair_data.readers.mtg_li.mtg_li_afr_reader_plugin:MTGLIAFRReaderPlugin"
|
|
113
|
+
mtg_li_lef = "defair_data.readers.mtg_li.mtg_li_lef_reader_plugin:MTGLILEFReaderPlugin"
|
|
114
|
+
mtg_li_lfl = "defair_data.readers.mtg_li.mtg_li_lfl_reader_plugin:MTGLILFLReaderPlugin"
|
|
115
|
+
mtg_li_lgr = "defair_data.readers.mtg_li.mtg_li_lgr_reader_plugin:MTGLILGRReaderPlugin"
|
|
116
|
+
metop_osi150a = "defair_data.readers.metop.metop_osi150a_reader_plugin:MetopOSI150AReaderPlugin"
|
|
117
|
+
metop_osi150b = "defair_data.readers.metop.metop_osi150b_reader_plugin:MetopOSI150BReaderPlugin"
|
|
118
|
+
metop_osi104 = "defair_data.readers.metop.metop_osi104_reader_plugin:MetopOSI104ReaderPlugin"
|
|
119
|
+
metop_hirs_fdr = "defair_data.readers.metop.metop_hirs_fdr_reader_plugin:MetopHIRSFDRReaderPlugin"
|
|
120
|
+
metop_glbsst = "defair_data.readers.metop.metop_glbsst_reader_plugin:MetopGLBSSTReaderPlugin"
|
|
121
|
+
metop_avhrr_amv = "defair_data.readers.metop.metop_avhrr_amv_reader_plugin:MetopAVHRRAMVReaderPlugin"
|
|
122
|
+
metop_ascszfr02 = "defair_data.readers.metop.metop_ascszfr02_reader_plugin:MetopASCSZFR02ReaderPlugin"
|
|
123
|
+
metop_ascszrr02 = "defair_data.readers.metop.metop_ascszrr02_reader_plugin:MetopASCSZRR02ReaderPlugin"
|
|
124
|
+
metop_ascszf1b = "defair_data.readers.metop.metop_ascszf1b_reader_plugin:MetopASCSZF1BReaderPlugin"
|
|
125
|
+
metop_amsul1 = "defair_data.readers.metop.metop_amsul1_reader_plugin:MetopAMSUL1ReaderPlugin"
|
|
126
|
+
metop_ascszo1b = "defair_data.readers.metop.metop_ascszo1b_reader_plugin:MetopASCSZO1BReaderPlugin"
|
|
127
|
+
metop_ascszor02 = "defair_data.readers.metop.metop_ascszor02_reader_plugin:MetopASCSZOR02ReaderPlugin"
|
|
128
|
+
metop_ascszr1b = "defair_data.readers.metop.metop_ascszr1b_reader_plugin:MetopASCSZR1BReaderPlugin"
|
|
129
|
+
metop_mhsl1 = "defair_data.readers.metop.metop_mhsl1_reader_plugin:MetopMHSL1ReaderPlugin"
|
|
130
|
+
metop_hirsl1 = "defair_data.readers.metop.metop_hirsl1_reader_plugin:MetopHIRSL1ReaderPlugin"
|
|
131
|
+
metop_somo25 = "defair_data.readers.metop.metop_somo25_reader_plugin:MetopSOMO25ReaderPlugin"
|
|
132
|
+
metop_somo12 = "defair_data.readers.metop.metop_somo12_reader_plugin:MetopSOMO12ReaderPlugin"
|
|
133
|
+
metop_gomel1 = "defair_data.readers.metop.metop_gomel1_reader_plugin:MetopGOMEL1ReaderPlugin"
|
|
134
|
+
metop_gomel1r03 = "defair_data.readers.metop.metop_gomel1r03_reader_plugin:MetopGOMEL1R03ReaderPlugin"
|
|
135
|
+
metop_avhrrl1 = "defair_data.readers.metop.metop_avhrrl1_reader_plugin:MetopAVHRRL1ReaderPlugin"
|
|
136
|
+
metop_edlst = "defair_data.readers.metop.metop_edlst_reader_plugin:MetopEDLSTReaderPlugin"
|
|
137
|
+
metop_iasil1c_all = "defair_data.readers.metop.metop_iasil1c_all_reader_plugin:MetopIASIL1CAllReaderPlugin"
|
|
138
|
+
metop_iasisnd02 = "defair_data.readers.metop.metop_iasisnd02_reader_plugin:MetopIASISND02ReaderPlugin"
|
|
139
|
+
metop_iasthr011 = "defair_data.readers.metop.metop_iasthr011_reader_plugin:MetopIASTHR011ReaderPlugin"
|
|
140
|
+
# Sentinel-3 SLSTR
|
|
141
|
+
sentinel3_aod = "defair_data.readers.sentinel3.sentinel3_aod_reader_plugin:Sentinel3AODReaderPlugin"
|
|
142
|
+
sentinel3_frp = "defair_data.readers.sentinel3.sentinel3_frp_reader_plugin:Sentinel3FRPReaderPlugin"
|
|
143
|
+
sentinel3_sl_1_rbt = "defair_data.readers.sentinel3.sentinel3_sl_1_rbt_reader_plugin:Sentinel3SL1RBTReaderPlugin"
|
|
144
|
+
sentinel3_wst = "defair_data.readers.sentinel3.sentinel3_wst_reader_plugin:Sentinel3WSTReaderPlugin"
|
|
145
|
+
# Sentinel-3 OLCI
|
|
146
|
+
sentinel3_ol_1_efr = "defair_data.readers.sentinel3.sentinel3_ol_1_efr_reader_plugin:Sentinel3OL1EFRReaderPlugin"
|
|
147
|
+
sentinel3_ol_1_err = "defair_data.readers.sentinel3.sentinel3_ol_1_err_reader_plugin:Sentinel3OL1ERRReaderPlugin"
|
|
148
|
+
sentinel3_ol_2_wfr = "defair_data.readers.sentinel3.sentinel3_ol_2_wfr_reader_plugin:Sentinel3OL2WFRReaderPlugin"
|
|
149
|
+
sentinel3_ol_2_wrr = "defair_data.readers.sentinel3.sentinel3_ol_2_wrr_reader_plugin:Sentinel3OL2WRRReaderPlugin"
|
|
150
|
+
# Sentinel-3 SRAL
|
|
151
|
+
sentinel3_sr1_sra_a = "defair_data.readers.sentinel3.sentinel3_sr1_sra_a_reader_plugin:Sentinel3SR1SRAAReaderPlugin"
|
|
152
|
+
sentinel3_sr1_sra = "defair_data.readers.sentinel3.sentinel3_sr1_sra_reader_plugin:Sentinel3SR1SRAReaderPlugin"
|
|
153
|
+
sentinel3_sr1_sra_bs = "defair_data.readers.sentinel3.sentinel3_sr1_sra_bs_reader_plugin:Sentinel3SR1SRABSReaderPlugin"
|
|
154
|
+
sentinel3_sr2_wat = "defair_data.readers.sentinel3.sentinel3_sr2_wat_reader_plugin:Sentinel3SR2WATReaderPlugin"
|
|
155
|
+
|
|
156
|
+
[project.entry-points."defair_data.writers"]
|
|
157
|
+
netcdf4 = "defair_data.writers.netcdf4.netcdf4_writer:NetCDF4Writer"
|
|
158
|
+
hdf5 = "defair_data.writers.hdf5.hdf5_writer:HDF5Writer"
|
|
159
|
+
zarrv2 = "defair_data.writers.zarr.zarr_writer:ZarrV2Writer"
|
|
160
|
+
zarrv3 = "defair_data.writers.zarr.zarr_writer:ZarrV3Writer"
|
|
161
|
+
geotiff = "defair_data.writers.geotiff.geotiff_writer:GeoTIFFWriter"
|
|
162
|
+
png = "defair_data.writers.png.png_writer:PNGWriter"
|
|
163
|
+
jpeg = "defair_data.writers.jpeg.jpeg_writer:JPEGWriter"
|
|
164
|
+
parquet = "defair_data.writers.parquet.parquet_writer:ParquetWriter"
|
|
165
|
+
# Claims no extension, so it never competes with parquet for auto-detection.
|
|
166
|
+
geoparquet = "defair_data.writers.parquet.parquet_writer:GeoParquetWriter"
|
|
167
|
+
csv = "defair_data.writers.csv.csv_writer:CSVWriter"
|
|
168
|
+
|
|
169
|
+
[project.entry-points."xarray.backends"]
|
|
170
|
+
msg15 = "defair_data.readers.msg15._msg15_xarray_backend:MSG15BackendEntrypoint"
|
|
171
|
+
|
|
172
|
+
[tool.pytest.ini_options]
|
|
173
|
+
markers = [
|
|
174
|
+
"real_s3: Tests requiring S3 access and credentials",
|
|
175
|
+
]
|
|
176
|
+
|
|
177
|
+
[tool.uv.sources]
|
|
178
|
+
defair = { workspace = true }
|
|
179
|
+
defair-ops = { workspace = true }
|
|
180
|
+
|
|
181
|
+
[dependency-groups]
|
|
182
|
+
dev = [
|
|
183
|
+
"moto[s3]>=5.0.0",
|
|
184
|
+
"pytest-asyncio>=0.23.0",
|
|
185
|
+
]
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Copyright 2026 EUMETSAT
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
|
|
17
|
+
import atexit
|
|
18
|
+
import os
|
|
19
|
+
import sys
|
|
20
|
+
|
|
21
|
+
# CRITICAL: Must be set before ANY module imports zarr
|
|
22
|
+
# Zarr checks this at import time, and xarray imports zarr
|
|
23
|
+
os.environ.setdefault("ZARR_V3_EXPERIMENTAL_API", "1")
|
|
24
|
+
|
|
25
|
+
# Silence noisy S3/HTTP dependency loggers BEFORE any defair / defair_data
|
|
26
|
+
# submodule is imported, so the first boto3/botocore record (e.g. credential
|
|
27
|
+
# discovery on Dataset.from_source) never reaches pytest's caplog or any
|
|
28
|
+
# user-attached root handler. Required for consumers that never invoke
|
|
29
|
+
# ``defair.logging.setup_logging`` — e.g. the vendor pytest suite.
|
|
30
|
+
from defair_data import _logging_defaults as _logging_defaults # noqa: I001 side effect: silence noisy loggers
|
|
31
|
+
from importlib.metadata import version
|
|
32
|
+
|
|
33
|
+
from defair.plugin_manager import load_reader
|
|
34
|
+
from defair_data.constants import CF_VERSION
|
|
35
|
+
from defair_data.core import Dataset
|
|
36
|
+
from defair_data.dask_manager import S3CredentialsPlugin, propagate_s3_credentials
|
|
37
|
+
from defair_data.data_reader_plugin import DataReaderPlugin
|
|
38
|
+
from defair_data.logging import get_logger
|
|
39
|
+
from defair_data.readers import (
|
|
40
|
+
ReaderInfo,
|
|
41
|
+
ReaderProduct,
|
|
42
|
+
describe_readers,
|
|
43
|
+
find_reader_for_path,
|
|
44
|
+
get_reader,
|
|
45
|
+
get_reader_info,
|
|
46
|
+
list_readers,
|
|
47
|
+
)
|
|
48
|
+
from defair_data.readers.msg15.msg15_native_reader_plugin import MSG15NativeReaderPlugin
|
|
49
|
+
|
|
50
|
+
__version__ = version("defair-data")
|
|
51
|
+
|
|
52
|
+
logger = get_logger(__name__)
|
|
53
|
+
|
|
54
|
+
# The netCDF4 wheel bundles its own libhdf5 build and h5py bundles a different one. In a
|
|
55
|
+
# single process the library imported first binds the shared symbols, so when netCDF4 wins
|
|
56
|
+
# every HDF5-backed reader here fails with "Unspecified error in H5DSget_num_scales" and the
|
|
57
|
+
# interpreter can dump core at shutdown -- a failure whose message names neither library.
|
|
58
|
+
# defair-data no longer depends on netCDF4, but earthkit-data still installs it, and
|
|
59
|
+
# "import netCDF4" is a common first line in an Earth-observation notebook. Saying so at the
|
|
60
|
+
# only moment the clash is detectable is the whole defence a library has here.
|
|
61
|
+
if sys.modules.get("netCDF4") is not None:
|
|
62
|
+
logger.warning(
|
|
63
|
+
"netCDF4 was imported before defair_data. The two bundle different libhdf5 builds and the "
|
|
64
|
+
"first import wins the shared symbols, so HDF5-backed readers (MTG FCI, MTG LI, Sentinel-3 "
|
|
65
|
+
"and others) may fail with 'Unspecified error in H5DSget_num_scales' and the process may "
|
|
66
|
+
"crash at exit. Import defair_data before netCDF4, or keep netCDF4 out of this process."
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def _close_native_handles_before_teardown() -> None:
|
|
71
|
+
"""Release HDF5 and projection handles while their libraries are still alive.
|
|
72
|
+
|
|
73
|
+
xarray deliberately stops closing cached files at exit, so an h5py handle left in
|
|
74
|
+
a CachingFileManager is finalised during interpreter teardown, after libhdf5 (and,
|
|
75
|
+
in environments where pyproj and fiona each bundle a libproj, after one of those)
|
|
76
|
+
has already been torn down. A plain FCI read then exits with SIGSEGV after printing
|
|
77
|
+
a correct result. Registered here, after xarray and the HDF5 stack were imported,
|
|
78
|
+
this runs before their own exit hooks and leaves nothing for teardown to finalise.
|
|
79
|
+
"""
|
|
80
|
+
import gc # noqa: PLC0415
|
|
81
|
+
|
|
82
|
+
from xarray.backends.file_manager import FILE_CACHE # noqa: PLC0415
|
|
83
|
+
|
|
84
|
+
from defair_data.readers.mtg_fci.mtg_fci_l1c_nc_reader_plugin import release_retired_managers # noqa: PLC0415
|
|
85
|
+
|
|
86
|
+
try:
|
|
87
|
+
release_retired_managers(force=True)
|
|
88
|
+
FILE_CACHE.clear()
|
|
89
|
+
except Exception: # best effort: an exit hook must never raise
|
|
90
|
+
logger.debug("exit cleanup of native handles failed", exc_info=True)
|
|
91
|
+
gc.collect()
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
atexit.register(_close_native_handles_before_teardown)
|
|
95
|
+
|
|
96
|
+
__all__ = [
|
|
97
|
+
"CF_VERSION",
|
|
98
|
+
"DataReaderPlugin",
|
|
99
|
+
"Dataset",
|
|
100
|
+
"MSG15NativeReaderPlugin",
|
|
101
|
+
"ReaderInfo",
|
|
102
|
+
"ReaderProduct",
|
|
103
|
+
"S3CredentialsPlugin",
|
|
104
|
+
"__version__",
|
|
105
|
+
"describe_readers",
|
|
106
|
+
"find_reader_for_path",
|
|
107
|
+
"get_logger",
|
|
108
|
+
"get_reader",
|
|
109
|
+
"get_reader_info",
|
|
110
|
+
"list_readers",
|
|
111
|
+
"load_reader",
|
|
112
|
+
"propagate_s3_credentials",
|
|
113
|
+
]
|