stilt.flux.sample_flux#
- stilt.flux.sample_flux(flux, x, y, times=None)[source]#
Flux at the cell nearest each
(x, y[, time])point;0outside the field.x/yare longitudes / latitudes for alat/lonfield. Whenfluxhas atimedimension,timesis required and the nearest time slice is used (held at the ends outside the field’s span).- Return type:
- Parameters:
flux (DataArray)
x (_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes])
y (_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes])
times (_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | None)