예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
 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"])
예제 #4
0
 def _get_temperature_field(cat_file):
     """Returns interpolated temperatures in Celsius."""
     temperature = p_tools.interpolate_model(cat_file, 'temperature')
     return atmos.k2c(temperature)
예제 #5
0
 def _get_atmosphere(categorize_file):
     fields = ['temperature', 'pressure']
     return p_tools.interpolate_model(categorize_file, fields)
예제 #6
0
 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"]
예제 #7
0
 def _get_atmosphere(categorize_file: str) -> Tuple[np.ndarray, np.ndarray]:
     fields = ['temperature', 'pressure']
     return p_tools.interpolate_model(categorize_file, fields)