I have two arrays of temperature with different times!
x = array(['1999-03-06T12:00:00.000000000', '1999-03-07T12:00:00.000000000',
'1999-03-08T12:00:00.000000000', ..., '2021-10-09T12:00:00.000000000',
'2021-10-10T12:00:00.000000000', '2021-10-11T12:00:00.000000000'],
dtype='datetime64[ns]')
This one is daily from 1999 to 2021
y = array(['2002-07-22T09:03:54.000000000', '2004-11-03T12:36:57.000000000',
'2004-11-04T05:19:08.000000000', '2004-12-13T11:50:36.000000000',
'2005-06-07T13:16:41.000000000', '2006-07-12T12:31:53.000000000',
'2006-07-22T11:43:24.000000000', '2006-09-10T14:08:57.000000000',...]
This one is random from 2002 to 2021
I would like to know how can I select in x (daily) just the dates that contain in y (So x and y will have the same dates)