# holding the input gridded file open until the process exits
forfingridded_files:
add_gglm_attrs(f,glm_filenames)
# (optionally) do tiling
ifargs.create_tiles:
sector=get_goes_position(glm_filenames)
ifsector=="east":
sector_id="GOES_EAST"
...
...
@@ -397,7 +397,7 @@ if __name__ == '__main__':
sector_id="GOES_WEST"
else:
raiseRuntimeError("could not determine sector_id")
fromsatpyimportScene
forgridded_fileingridded_files:
log.info("TILING: {}".format(gridded_files))
...
...
@@ -408,7 +408,7 @@ if __name__ == '__main__':
'minimum_flash_area',
'total_energy',
])
scn.save_datasets(writer='awips_tiled',
template='glm_l2_radf',
sector_id=sector_id,# sector_id becomes an attribute in the output files and may be another legacy kind of thing. I'm not sure how much is is actually used here.
...
...
@@ -418,7 +418,7 @@ if __name__ == '__main__':
check_categories=False,# check_categories is there because of that issue I mentioned where DQF is all valid all the time so there is no way to detect empty tiles unless we ignore the "category" products