arte/atmo/cn2_profile.py
def from_r0s(cls,
                 layersR0,
                 layersL0,
                 layersAltitude,
                 layersWindSpeed,
                 layersWindDirection):
        """
        Cn2 profile constructor from r0 values of each layer

        Parameters
        ----------
            layersR0: :class:`~numpy:numpy.ndarray`
                      array of layers r0 in meters at 500nm
            layersL0: :class:`~numpy:numpy.ndarray`
                      array of layers outer-scale L0 in meters
            layersAltitude: :class:`~numpy:numpy.ndarray`
                      array of layers altitude at Zenith in meters
            layersWindSpeed: :class:`~numpy:numpy.ndarray`
                      array of layers wind speed in meters per second
            layersWindDirection: :class:`~numpy:numpy.ndarray`
                      array of layers wind direction in degrees, clockwise
                      from North


        Every array must be 1D and have the same size, defining the number of
        layers of the profile

        All parameters must be defined at zenith
        """
        layersR0 = cls._quantitiesToValue(layersR0)
        layersL0 = cls._quantitiesToValue(layersL0)
        layersAltitude = cls._quantitiesToValue(layersAltitude)
        layersWindSpeed = cls._quantitiesToValue(layersWindSpeed)
        layersWindDirection = cls._quantitiesToValue(
            np.deg2rad(layersWindDirection))
        js = cls._r02js(layersR0, cls.DEFAULT_AIRMASS, cls.DEFAULT_LAMBDA)
        return Cn2Profile(js,
                          layersL0,
                          layersAltitude,
                          layersWindSpeed,
                          layersWindDirection)

        Cn2 profile constructor from r0 values of each layer

        Parameters
        ----------
            layersR0: :class:`~numpy:numpy.ndarray`
                      array of layers r0 in meters at 500nm
            layersL0: :class:`~numpy:numpy.ndarray`
                      array of layers outer-scale L0 in meters
            layersAltitude: :class:`~numpy:numpy.ndarray`
                      array of layers altitude at Zenith in meters
            layersWindSpeed: :class:`~numpy:numpy.ndarray`
                      array of layers wind speed in meters per second
            layersWindDirection: :class:`~numpy:numpy.ndarray`
                      array of layers wind direction in degrees, clockwise
                      from North


        Every array must be 1D and have the same size, defining the number of
        layers of the profile

        All parameters must be defined at zenith
        
Cn2 profile constructor from r0 values of each layer
Parameters



Every array must be 1D and have the same size, defining the number of
layers of the profile

All parameters must be defined at zenith
Cn2 profile constructor from r0 values of each layer Parameters Every array must be 1D and have the same size defining the number of layers of the profile All parameters must be defined at zenith
def from_r0s(cls,
                 layersR0,
                 layersL0,
                 layersAltitude,
                 layersWindSpeed,
                 layersWindDirection):
        layersR0 = cls._quantitiesToValue(layersR0)
        layersL0 = cls._quantitiesToValue(layersL0)
        layersAltitude = cls._quantitiesToValue(layersAltitude)
        layersWindSpeed = cls._quantitiesToValue(layersWindSpeed)
        layersWindDirection = cls._quantitiesToValue(
            np.deg2rad(layersWindDirection))
        js = cls._r02js(layersR0, cls.DEFAULT_AIRMASS, cls.DEFAULT_LAMBDA)
        return Cn2Profile(js,
                          layersL0,
                          layersAltitude,
                          layersWindSpeed,
                          layersWindDirection)
def from_r0s ( cls , layersR0 , layersL0 , layersAltitude , layersWindSpeed , layersWindDirection ) : layersR0 = cls . _quantitiesToValue ( layersR0 ) layersL0 = cls . _quantitiesToValue ( layersL0 ) layersAltitude = cls . _quantitiesToValue ( layersAltitude ) layersWindSpeed = cls . _quantitiesToValue ( layersWindSpeed ) layersWindDirection = cls . _quantitiesToValue ( np . deg2rad ( layersWindDirection ) ) js = cls . _r02js ( layersR0 , cls . DEFAULT_AIRMASS , cls . DEFAULT_LAMBDA ) return Cn2Profile ( js , layersL0 , layersAltitude , layersWindSpeed , layersWindDirection )
Cn2 profile constructor from r0 values of each layer
Parameters
Cn2 profile constructor from r0 values of each layer Parameters
"""
        Cn2 profile constructor from r0 values of each layer

        Parameters
        ----------
            layersR0: :class:`~numpy:numpy.ndarray`
                      array of layers r0 in meters at 500nm
            layersL0: :class:`~numpy:numpy.ndarray`
                      array of layers outer-scale L0 in meters
            layersAltitude: :class:`~numpy:numpy.ndarray`
                      array of layers altitude at Zenith in meters
            layersWindSpeed: :class:`~numpy:numpy.ndarray`
                      array of layers wind speed in meters per second
            layersWindDirection: :class:`~numpy:numpy.ndarray`
                      array of layers wind direction in degrees, clockwise
                      from North


        Every array must be 1D and have the same size, defining the number of
        layers of the profile

        All parameters must be defined at zenith
        """
cls
layersR0
layersL0
layersAltitude
layersWindSpeed
layersWindDirection