pysiral.ers.iotools

Classes

ERSFileList

Class for the construction of a list of Envisat N1 files

ERSCycleBasedSGDR

Template for default pysiral class with logging/error handling capabilities

Module Contents

class pysiral.ers.iotools.ERSFileList

Bases: pysiral.core.legacy_classes.DefaultLoggingClass

Class for the construction of a list of Envisat N1 files sorted by acquisition time XXX: Currently only support order by month/date and not cycle

folder = None
year = None
month = None
time_range = None
day_list = []
pattern = '.NC'
_list
_sorted_list = []
search(time_range)
property sorted_list
_get_file_listing()

Look for files :return:

_get_toplevel_search_folder()
class pysiral.ers.iotools.ERSCycleBasedSGDR(cfg)

Bases: pysiral.core.legacy_classes.DefaultLoggingClass

Template for default pysiral class with logging/error handling capabilities

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

_create_date_lookup_table()

Get a lookup table based on the folder names for each cycle. The content will be stored in self._date_lookup_table :return: None

_reset_file_list()

Resets the result of previous file searches

_query(period)

Searches for files in the given period and stores result in property _sorted_list :param period: dateperiods.DatePeriod :return: None

_get_cycle_folders_from_lookup_table(datestr)

Return a list of cycle folders that contain a date. Should be between 0 and 2 :param datestr: :return:

property sorted_list