def gendata(sarplat, targets): Sr, ta, tr = iprs.tgs2rawdata(sarplat, targets, verbose=True) # visualize iprs.show_amplitude_phase(Sr) # do RD imaging # img, ta, tr = imcls.RangeDoppler(Sr, sarplat) # vis.show_img(img) img, ta, tr = iprs.omega_k(Sr, sarplat, verbose=True) sardata = iprs.SarData() sardata.rawdata = Sr sardata.image = img sardata.name = " " return sardata
sarplat.printsp() SC = sarplat.acquisition['SceneCenter'] Xc = SC[0] Yc = SC[1] targets = [ [100, 100, 0, 0, 0, 0, 1], [-150, -50, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 1], [200, 0, 0, 0, 0, 0, 1], ] print(targets) Sr, ta, tr = iprs.tgs2rawdata(sarplat, targets, verbose=True) # visualize iprs.show_amplitude_phase(Sr) # do RD imaging Sr_img, ta, tr = iprs.range_doppler(Sr, sarplat, verbose=False) # axismod = 'Image' # axismod = 'SceneAbsolute' axismod = 'SceneRelative' title = 'Reconstructed Image using RD' # title = 'Reconstructed Image using omega-k' iprs.show_sarimage( Sr_img, sarplat, axismod=axismod, title=title, aspect=None)
# @Date : 2018-02-18 03:14:12 # @Author : Yan Liu & Zhi Liu ([email protected]) # @Link : http://iridescent.ink # @Version : $1.0$ import iprs sensor_name = 'DIY' acquis_name = 'DIY3' sarplat = iprs.SarPlat() sarplat.name = "sensor=" + sensor_name + "_acquisition=" + acquis_name sarplat.sensor = iprs.SENSORS[sensor_name] sarplat.acquisition = iprs.ACQUISITION[acquis_name] sarplat.params = None sarplat.printsp() targets = [ [100, 100, 0, 0, 0, 0, 0.3], [0, 0, 0, 0, 0, 0, 0.9], [150, 100, 0, 0, 0, 0, 0.5], [200, 100, 0, 0, 0, 0, 0.6], ] Sr, ta, tr = iprs.tgs2rawdata(sarplat, targets) print(Sr) # visualize iprs.show_amplitude_phase(Sr)