stilt.flux.sample_flux#

stilt.flux.sample_flux(flux, x, y, times=None)[source]#

Flux at the cell nearest each (x, y[, time]) point; 0 outside the field.

x / y are longitudes / latitudes for a lat / lon field. When flux has a time dimension, times is required and the nearest time slice is used (held at the ends outside the field’s span).

Return type:

ndarray

Parameters: