pyrfu.mms.feeps_remove_sunlit_sectors module#
- pyrfu.mms.feeps_remove_sunlit_sectors.feeps_remove_sunlit_sectors(feeps_eyes, outliers_q=0.99)[source]#
Remove sunlit sectors for each eye in the all eyes FEEPS data product. This is needed because the FEEPS contaminated sectors csv files are not updated often enough and there is visible spintone contamination in the data at times between updates.
The function removes sunlit sectors from the all FEEPS eyes data product by identifying the sectors that are sunlit and replacing them with NaN. The idea is to make tables of 24 eyes x 64 sectors, similar to the ones used in the FEEPS contaminated sectors csv files.
The function calculates the average observed flux for each eye-sector pair and places it in a 24x64 array. Then replaces with NaN the eye-sector pairs that have a value greater than the outliers_q percentile of the data.
- Parameters:
feeps_eyes (xarray.Dataset) – The all FEEPS eyes data product.
outliers_q (float, optional) – The quantile to use for outlier rejection. The default is 0.99.
- Returns:
feeps_eyes_new – The all FEEPS eyes data product with sunlit sectors removed.
- Return type: