def _calc_horizontal_wind(self): """Calculates magnitude of horizontal wind. Returns: ndarray: Horizontal wind (m s-1). """ u_wind, v_wind = p_tools.interpolate_model(self.cat_file, ['uwind', 'vwind']) return utils.l2norm(u_wind, v_wind)
def _calc_horizontal_wind(self): """Calculates magnitude of horizontal wind. Returns: ndarray: Horizontal wind (m s-1). """ atmosphere = product_tools.interpolate_model(self.cat_file, ["uwind", "vwind"]) u_wind = atmosphere["uwind"] v_wind = atmosphere["vwind"] return utils.l2norm(u_wind, v_wind)
def _get_temperature(categorize_file: str) -> np.ndarray: """Returns interpolated temperatures in Celsius.""" atmosphere = product_tools.interpolate_model(categorize_file, "temperature") return atmos.k2c(atmosphere["temperature"])
def _get_temperature_field(cat_file): """Returns interpolated temperatures in Celsius.""" temperature = p_tools.interpolate_model(cat_file, 'temperature') return atmos.k2c(temperature)
def _get_atmosphere(categorize_file): fields = ['temperature', 'pressure'] return p_tools.interpolate_model(categorize_file, fields)
def _get_atmosphere(categorize_file: str) -> Tuple[np.ndarray, np.ndarray]: fields = ["temperature", "pressure"] atmosphere = p_tools.interpolate_model(categorize_file, fields) return atmosphere["temperature"], atmosphere["pressure"]
def _get_atmosphere(categorize_file: str) -> Tuple[np.ndarray, np.ndarray]: fields = ['temperature', 'pressure'] return p_tools.interpolate_model(categorize_file, fields)