pysecs.SECS.fac_density#
- SECS.fac_density(cell_area: float | ndarray, return_var: bool = False) ndarray | tuple[ndarray, ndarray]#
Calculate the field-aligned current (FAC) density.
Each curl-free SEC carries its amplitude as a line current into the shell at its pole, returned by a uniform outward current over the whole shell. Spreading the line current over the grid cell around its pole gives the FAC density at each curl-free SEC. The radial component of
predict_J()only contains the uniform return current, so use this method for FAC densities.- Parameters:
cell_area (float or ndarray (ncf,)) – Area (m^2) of the grid cell around each curl-free SEC pole. For a regular latitude/longitude grid with spacings
dlatanddlon(radians) this isr**2 * dlat * dlon * cos(lat).return_var (bool) – Whether to also return the variance of the FAC densities. Default: False
- Returns:
Downward (into the shell) FAC density in A/m^2 at each curl-free SEC location
sec_cf_loc. If return_var is True, a tuple of (densities, variances) with identical shapes is returned.- Return type:
ndarray (ntimes, ncf)