pysiral.sentinel3.iotools
Classes
Class for the construction of a list of Sentinel-3 SRAL L2 files |
|
Class to retrieve Sentinel-3 SRAL files from the Copernicus Online Data Archive |
|
Class to retrieve Sentinel-3 SRAL files from the Copernicus Online Data Archive |
|
Deciphering the Sentinel-3 filenaming convention |
Functions
|
Returns a list with measurement.nc files for given month |
|
Returns the corresponding sral l1 file to a given l2 filename |
Module Contents
- class pysiral.sentinel3.iotools.Sentinel3FileList
Bases:
pysiral.core.legacy_classes.DefaultLoggingClassClass for the construction of a list of Sentinel-3 SRAL L2 files sorted by acquisition time XXX: Based on the file and directory structure of the early access data
- folder = None
- time_range = None
- target = 'enhanced_measurement.nc'
- _sorted_list = []
- search(time_range)
Find all files falling in a defined time range
- property sorted_list
- _get_file_listing()
List all files in time range
- _get_toplevel_search_folder(year, month)
- class pysiral.sentinel3.iotools.CodaL2SralFileDiscovery(cfg)
Bases:
pysiral.core.legacy_classes.DefaultLoggingClassClass to retrieve Sentinel-3 SRAL files from the Copernicus Online Data Archive
- error
- cfg
- get_file_for_period(period)
Query for Sentinel Level-2 files for a specific period. :param period: dateperiods.DatePeriod :return: sorted list of filenames
- _query(period)
Searches for files in the given period and stores result in property _sorted_list :param period: dateperiods.DatePeriod :return: None
- _get_toplevel_search_folder(year, month)
Get the folder for the file search
- _reset_file_list()
Resets the result of previous file searches
- property sorted_list
Return the search result
- class pysiral.sentinel3.iotools.L2SeaIceFileDiscovery(cfg)
Bases:
objectClass to retrieve Sentinel-3 SRAL files from the Copernicus Online Data Archive
- cfg
- catalogue
- _get_dataset_catalogue() pandas.DataFrame
Create a catalogues of file properties for all Sentinel-3 files in the lookup directory
- Returns:
catalogue as pandas DataFrame
- get_file_for_period(period)
Query for Sentinel Level-2 files for a specific period.
- Parameters:
period – dateperiods.DatePeriod
- Returns:
sorted list of filenames
- _query(period: dateperiods.DatePeriod) None
Searches for files in the given period and stores result in property _sorted_list :param period: dateperiods.DatePeriod :return: None
- _reset_file_list()
Resets the result of previous file searches
- property sorted_list
Return the search result
- property n_catalogue_files: int
Return the number of files in the file catalogue :return:
- pysiral.sentinel3.iotools.get_sentinel3_l1b_filelist(folder, target_nc_filename)
Returns a list with measurement.nc files for given month
- pysiral.sentinel3.iotools.get_sentinel3_sral_l1_from_l2(l2_filename, target='enhanced_measurement.nc')
Returns the corresponding sral l1 file to a given l2 filename
- class pysiral.sentinel3.iotools.S3FileNaming
Deciphering the Sentinel-3 filenaming convention (source: Sentinel 3 PDGS File Naming Convention (EUM/LEO-SEN3/SPE/10/0070, v1D, 24 June 2016)
- filepath: pathlib.Path
- is_valid_file: bool
- file_id: str
- mission_id: str
- data_source: str
- processing_level: str
- data_type_id: str
- time_coverage_start: datetime.datetime
- time_coverage_end: datetime.datetime
- creation_time: datetime.datetime
- instance_id: str
- product_generation_center: str
- product_platform: str
- timeliness: str
- baseline: str
- extension: str
- __post_init__()