Skip to content

save_bursts

Seongsu Jeong edited this page Feb 20, 2023 · 2 revisions

Definition: save_bursts = cfg.groups.product_group.save_bursts

Relevant References:

flag_bursts_files_are_temporary = (not save_bursts or
                                   save_imagery_as_hdf5)
if not save_bursts:
            # burst files are saved in scratch dir
            bursts_output_dir = scratch_path
        else:
            # burst files (individual or HDF5) are saved in burst_id dir
            bursts_output_dir = output_dir
            os.makedirs(bursts_output_dir, exist_ok=True)
if flag_call_radar_grid and save_bursts:

            if save_incidence_angle:
                radar_grid_file_dict['incidenceAngle'] =\
                    os.path.join(output_dir,
                                f'{product_prefix}_incidence_angle.', imagery_extension)
            if save_local_inc_angle:
                radar_grid_file_dict['localIncidenceAngle'] =\
                    os.path.join(output_dir,
                                f'{product_prefix}_local_incidence_angle.', imagery_extension)
            if save_projection_angle:
                radar_grid_file_dict['projectionAngle'] =\
                    os.path.join(output_dir,
                                f'{product_prefix}_projection_angle.', imagery_extension)
            if save_rtc_anf_psi:
                radar_grid_file_dict['areaNormalizationFactorPsi'] =\
                    os.path.join(output_dir,
                                f'{product_prefix}_rtc_anf_psi.', imagery_extension)
            if save_range_slope:
                radar_grid_file_dict['rangeSlope'] =\
                    os.path.join(output_dir,
                                f'{product_prefix}_range_slope.', imagery_extension)
            if save_dem:
                radar_grid_file_dict['interpolatedDem'] =\
                    os.path.join(output_dir,
                                f'{product_prefix}_interpolated_dem.', imagery_extension)

            if flag_bursts_secondary_files_are_temporary:
                # files are temporary
                temp_files_list += list(radar_grid_file_dict.values())
            else:
                output_file_list += list(radar_grid_file_dict.values())

See:

Clone this wiki locally