from LinInt import BackProjection from Deconvolution import deconvolute from plotRTI import plotRTI from helper_functions import linear_interp_nan import pickle #Converts motion and RADAR data to the right data structures unpack("../Raw_Data/uavsar1flight7") #Loads data from the RADAR motion_data = read_motion_data("../Raw_Data/UAVSAR1Flight7.csv", "UAVSAR1") motion_data = linear_interp_nan(motion_data[1], motion_data[0]) radar_data = read_radar_data("data.pkl", 580, 0.3) #580, 0.30 is probably good #Performs RCS correction radar_data = rcs(radar_data) #Plot RTI for radar_data plotRTI(radar_data) #Set parameters #Take motion_start and motion_end from .tak file video #Estimate radar_start from the plotRTI above, initially comment out code below radar_start = 300 #Initial 500 380 for flight 6 300 for flight 7 motion_start = 3850 #5200 flight 6 3900 flight 7 2411 flight 8 motion_end = 34129 #16400 flight 6 34129 flight 7 29126 flight 8 #Aligns data aligned_data = align_data(radar_data, motion_data, radar_start, motion_start, motion_end, 200, 4600) #100, 3500
from read_files import read_radar_data, read_motion_data from radar_movement import find_point_one_radar, find_i_of_first_motion, find_i_of_last_motion from data_align import align_data from AlignedRangeTimeGraph import AlignedGraph from RangeTimeGraph import rti_graph from rcs import rcs import numpy as np import matplotlib.pyplot as plt #unpack("../Raw_data/uavsar1flight1") #Currently commented out because unused motion_data = read_motion_data("UAVSAR1Flight1.csv","UAVSAR1") radar_data = read_radar_data() #motion_start = find_i_of_first_motion(motion_data) #motion_end = find_i_of_last_motion(motion_data) #radar_start = find_point_one_radar(radar_data) motion_start = 6600 motion_end = 29545 radar_start = 600 #plt.imshow(abs(radar_data[0])) #Aligns data, currently using frames given in function definition aligned_data = align_data(radar_data,motion_data,radar_start,motion_start, motion_end) radar_end = aligned_data[2] rti_graph(radar_data,motion_data,radar_start,motion_start,motion_end,radar_end) rcs = rcs(radar_data) #Plots aligned graph AlignedGraph(aligned_data,rcs) AlignedGraph(aligned_data,radar_data)