Skip to content

combining data from 2 sweeps #1458

Answered by jlpippitt
jdsorber asked this question in Q&A
Discussion options

You must be logged in to vote

Wrote this code to merge 88D split cuts. This should help.

def merge_split_cuts(self):

'''
Function to merge 88D split cut sweeps and output new radar object.
'''

sweep_table = []
reflectivity = []
velocity = []

# Create a list of elevations
vcp = self.radar.metadata['vcp_pattern']
print('VCP Pattern:  ', vcp)
elist = [x.shape[0] for x in self.radar.iter_elevation()]
n = 0
while n <= len(elist)-1:
    
    vcp_2 = [215, 35, 212, 32, 12, 31]
    vcp_3 = [112]

    if elist[n] == 720 and elist[n+1] == 720:
        sweep_table.append((n, n+1))
        reflectivity.append(n)
        velocity.append(n+1)
        if  vcp in vcp_2:
            n += 2
        elif vcp in vcp_3:
            n +=…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jdsorber
Comment options

Answer selected by jdsorber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants