本文整理汇总了Python中handler.Handler.list_files方法的典型用法代码示例。如果您正苦于以下问题:Python Handler.list_files方法的具体用法?Python Handler.list_files怎么用?Python Handler.list_files使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类handler.Handler
的用法示例。
在下文中一共展示了Handler.list_files方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from handler import Handler [as 别名]
# 或者: from handler.Handler import list_files [as 别名]
def main():
#city = argv[1]
city = 'BRU'
if city == 'BRU' or city == 'PPR':
city_name = "BR_PP"
radar_path = "/home/likewise-open/LOCAL/joao.garcia/Workplace/1.INPE/Data/Radar/%s/" % city_name
flash_path = "/home/likewise-open/LOCAL/joao.garcia/Workplace/1.INPE/Data/Lightning/flash.csv"
pulse_path = "/home/likewise-open/LOCAL/joao.garcia/Workplace/1.INPE/Data/Lightning/pulse.csv"
rad = CAPPI(city)
flash = EarthNetworks(city)
#flash.open(flash_path)
pulse = EarthNetworks(city)
#pulse.open(pulse_path)
handler = Handler(radar_path)
handler.list_files()
handler.list_dates()
handler.generate_date_tuples("30m", "450s")
for h in iter(handler):
if h.files:
print(h)
break