raiseRuntimeError("could not determine sector_id")
fromsatpyimportScene
fromsatpyimportScene
forgridded_fileingridded_files:
forgridded_fileingridded_files:
log.info("TILING: {}".format(gridded_files))
log.info("TILING: {}".format(gridded_files))
...
@@ -315,19 +368,20 @@ if __name__ == '__main__':
...
@@ -315,19 +368,20 @@ if __name__ == '__main__':
scn.save_datasets(writer='awips_tiled',
scn.save_datasets(writer='awips_tiled',
template='glm_l2_radf',
template='glm_l2_radf',
sector_id="GOES_EAST",# 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.
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.
source_name="",# You could probably make source_name an empty string. I think it is required by the writer for legacy reasons but isn't actually used for the glm output
source_name="",# You could probably make source_name an empty string. I think it is required by the writer for legacy reasons but isn't actually used for the glm output
base_dir=tempdir_path,# base_dir is the output directory. I think blank is the same as current directory.
base_dir=tempdir_path,# base_dir is the output directory. I think blank is the same as current directory.
tile_size=(506,904),# tile_size is set to the size of the GLMF sample tiles we were given and should match the full disk ABI tiles which is what they wanted
tile_size=(506,904),# tile_size is set to the size of the GLMF sample tiles we were given and should match the full disk ABI tiles which is what they wanted
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
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