combined_reprojection

nawdex_analysis.io.reproj.combined_reprojection(dset, ind, rparam, vnames='all', apply_mask=True, only_apply_nn=False, Nan=0)

Combine nearest neighbor (nn) and box-average interpolation. If a grid box has no value, the nn value is taken.

Parameters:
  • dset (dict of numpy arrays) – set of fields that should be reprojected
  • ind (numpy array) – interpolation index that maps the field in dset into SEVIRI grid
  • rparam (dict of numpy arrays) – reprojection parameters
  • vnames (string of list of strings, optional, default = 'all') – list of variable names to be interpolated
  • apply_mask (bool, optional, default = True) – switch if masking with domain mask should be applied
  • only_apply_nn (bool, optional, default = False) – switch if only nearest neighbor interpolation is applied
  • Nan (float) – value inserted for positions with mask == False
Returns:

dset_inter – set of fields that have been interpolated onto SEVIRI grid

Return type:

dict of numpy arrays