class documentation
class egmsdownloader: (source)
Constructor: egmsdownloader(listL2a, listL2alink, listL2b, listL2blink, ...)
egmsdownloader class.
| Method | __init__ |
egmsdownloader initialisation. |
| Method | checkparameter |
Check the parameter |
| Method | clean |
Clean the unused files (based on the list(s)) |
| Method | download |
Download the EGMS files |
| Method | print |
Print the class attributes |
| Method | printlist |
Print the list(s) of EGMS files |
| Method | unzipfile |
Unzip the EGMS files |
| Method | updatelist |
Update the list of of EGMS files |
| Instance Variable | list |
Storage of available data [Default: empty] |
| Instance Variable | list |
Storage of available data [Default: empty] |
| Instance Variable | list |
Storage of available data [Default: empty] |
| Instance Variable | list |
Storage of available data [Default: empty] |
| Instance Variable | list |
Storage of available data [Default: empty] |
| Instance Variable | list |
Storage of available data [Default: empty] |
| Instance Variable | list |
Storage of available data [Default: empty] |
| Instance Variable | list |
Storage of available data [Default: empty] |
| Instance Variable | log |
Loggin mode [Default: None] |
| Instance Variable | token |
User token [Default: 'XXXXXXX--XXXXXXX'] |
| Instance Variable | verbose |
Verbose [Default: True] |
def __init__(self, listL2a:
Optional[ any] = [], listL2alink: Optional[ any] = [], listL2b: Optional[ any] = [], listL2blink: Optional[ any] = [], listL3UD: Optional[ any] = [], listL3UDlink: Optional[ any] = [], listL3EW: Optional[ any] = [], listL3EWlink: Optional[ any] = [], token: Optional[ str] = 'XXXXXXX--XXXXXXX', verbose: Optional[ bool] = True, log: Optional[ Union[ str, None]] = None):
(source)
¶
egmsdownloader initialisation.
Return egmsdownloader class
| Parameters | |
listlist, Optional | Storage of available data [Default: empty] |
listlist, Optional | Storage of available data [Default: empty] |
listlist, Optional | Storage of available data [Default: empty] |
listlist, Optional | Storage of available data [Default: empty] |
listlist, Optional | Storage of available data [Default: empty] |
listlist, Optional | Storage of available data [Default: empty] |
listlist, Optional | Storage of available data [Default: empty] |
listlist, Optional | Storage of available data [Default: empty] |
token:str, Optional | User token [Default: 'XXXXXXX--XXXXXXX'] |
verbose:bool, Optional | Verbose [Default: True] |
log:str or None, Optional | Loggin mode [Default: None] |
def download(self, outputdir:
Optional[ str] = '.%sOutput'%os.sep, unzipmode: Optional[ bool] = False, cleanmode: Optional[ bool] = False, force: Optional[ bool] = True, verbose: Optional[ Union[ bool, None]] = None):
(source)
¶
Download the EGMS files
Return
egmsdownloader class
| Parameters | |
outputdir:str, Optional | Path of the output directory [Default: './Output'] |
unzipmode:bool, Optional | Unzip the file [Default: False] |
cleanmode:bool, Optional | Delete the file after unzipping [Default: False] |
force:bool, Optional | Replace the stored file [Default: True] |
verbose:bool or None, Optional | Verbose if None, use the verbose mode of the job [Default: None] |
def unzipfile(self, outputdir:
Optional[ str] = '.%sOutput'%os.sep, unzipmode: Optional[ bool] = True, nbworker: Optional[ int] = 1, cleanmode: Optional[ bool] = False, verbose: Optional[ Union[ bool, None]] = None):
(source)
¶
Unzip the EGMS files
Return
egmsdownloader class
| Parameters | |
outputdir:str, Optional | Path of the output directory [Default: './Output'] |
unzipmode:bool, Optional | Unzip the file [Default: True] |
nbworker:int, Optional | Number of workers for unzipping [Default: 1] |
cleanmode:bool, Optional | Delete the file after unzipping [Default: False] |
verbose:bool or None, Optional | Verbose if None, use the verbose mode of the job [Default: None] |
Update the list of of EGMS files
Return
egmsdownloader class
| Parameters | |
| info | S1ROIparameter class |
verbose:bool or None, Optional | Verbose if None, use the verbose mode of the job [Default: None] |