how i can get data from masked data with some array, for example i have data like this :
x = np.random.normal(90,120,[100,1])
y = np.random.normal(-11,21,[100,1])
and i have 2 array for the frame like this :
x1 = np.array([50,0,150,200,50])
y1 = np.array([10,-50,-60,0,10])
I want to get a file from the area of the 2 arrays that have been created before
btw, my full script look like this :
import numpy as np
import matplotlib.pyplot as plt
x = np.random.normal(90,120,[100,1])
y = np.random.normal(-11,21,[100,1])
x1 = np.array([50,0,150,200,50])
y1 = np.array([10,-50,-60,0,10])
area = (20*np.random.rand(100))**2
r = np.sqrt(x*x+y*y)
rb = np.sqrt(x1*x1+y1*y1)
area1 = np.ma.masked_where(r<rb,area)
area2 = np.ma.masked_where(r>=rb,area)