group inputs by minute and process accordingly
Compare changes
+ 114
− 63
@@ -118,6 +118,11 @@ def get_goes_position(filenames):
@@ -118,6 +118,11 @@ def get_goes_position(filenames):
@@ -187,7 +192,7 @@ def get_outpath_base(args):
@@ -187,7 +192,7 @@ def get_outpath_base(args):
@@ -216,10 +221,10 @@ def grid_setup(args, work_dir=os.getcwd()):
@@ -216,10 +221,10 @@ def grid_setup(args, work_dir=os.getcwd()):
@@ -227,7 +232,7 @@ def grid_setup(args, work_dir=os.getcwd()):
@@ -227,7 +232,7 @@ def grid_setup(args, work_dir=os.getcwd()):
outputpath = os.path.join(work_dir, get_outpath_base(args)) # GLMTools expects a template in addition to the path
@@ -296,7 +301,7 @@ def grid_setup(args, work_dir=os.getcwd()):
@@ -296,7 +301,7 @@ def grid_setup(args, work_dir=os.getcwd()):
@@ -338,6 +343,33 @@ if __name__ == '__main__':
@@ -338,6 +343,33 @@ if __name__ == '__main__':
@@ -347,63 +379,82 @@ if __name__ == '__main__':
@@ -347,63 +379,82 @@ if __name__ == '__main__':
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
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
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
tiled_path = os.path.join(tempdir_path, '{}_GLM-L2-GLM*-M?_G??_T??_*.nc'.format(args.system_environment_prefix_tiles))
\ No newline at end of file