1+ from typing import Literal
2+
13RESOLUTION_NESZ = {
24 'ERS1' : {
35 'IMP' : {
249251}
250252
251253
252- def get_resolution_nesz (sensor , mode , swath_id , date ):
254+ def get_resolution_nesz (
255+ sensor : Literal ['ERS1' , 'ERS2' , 'ASAR' ],
256+ mode : Literal ['APP' , 'APS' , 'IMP' , 'IMS' , 'WSM' , 'WSS' ],
257+ swath_id : Literal ['IS1' , 'IS2' , 'IS3' , 'IS4' , 'IS5' , 'IS6' , 'IS7' , 'WS' ],
258+ date : str
259+ ) -> tuple [int | float | None , int | float | None , int | float | None , int | float | None ]:
253260 """
254261 Get acquisition characteristics not contained in the product metadata:
255262
@@ -260,18 +267,17 @@ def get_resolution_nesz(sensor, mode, swath_id, date):
260267
261268 Parameters
262269 ----------
263- sensor: {ERS1, ERS2, ASAR}
270+ sensor:
264271 the satellite sensor
265- mode: {APP, APS, IMP, IMS, WSM}
272+ mode:
266273 the sensor acquisition mode
267- swath_id: {IS1, IS2, IS3, IS4, IS5, IS6, IS7, WS}
274+ swath_id:
268275 the sensor swath ID
269- date: str
276+ date:
270277 the acquisition date formatted as YYYYmmdd/YYYYmmddTHHMMSS
271278
272279 Returns
273280 -------
274- tuple[float]
275281 the attributes listed above
276282 """
277283 suffix = '_new' if mode == 'APP' and date > '20090528' else ''
0 commit comments