src/pys5p/s5p_geoplot.py
def draw_geo_subsat(self, lons, lats, *,
                        title=None, sub_title=None, fig_info=None):
        """
        Display sub-satellite coordinates projected with TransverseMercator

        Parameters
        ----------
        lats :  ndarray
           Latitude coordinates
        lons :  ndarray
           Longitude coordinates
        title :  string, optional
           Title of the figure. Default is None
           Suggestion: use attribute "title" of data-product
        sub_title :  string, optional
           Sub-title of the figure. Default is None
           Suggestion: use attribute "comment" of data-product
        fig_info :  FIGinfo, optional
           OrderedDict holding meta-data to be displayed in the figure

        The information provided in the parameter 'fig_info' will be displayed
        in a small box.
        """
        if fig_info is None:
            fig_info = FIGinfo()

        # determine central longitude
        if lons.max() - lons.min() > 180:
            if np.sum(lons > 0) > np.sum(lons < 0):
                lons[lons < 0] += 360
            else:
                lons[lons > 0] -= 360
        lon_0 = np.around(np.mean(lons), decimals=-1)

        # inititalize figure
        fig = plt.figure(figsize=(12.5, 9))
        if title is not None:
            ypos = 1 - 0.35 / fig.get_figheight()
            fig.suptitle(title, fontsize='x-large',
                         position=(0.5, ypos), horizontalalignment='center')

        # draw worldmap
        axx = plt.axes(projection=BetterTransverseMercator(
            central_longitude=lon_0, globe=ccrs.Globe(ellipse='sphere')))
        if sub_title is not None:
            axx.set_title(sub_title, fontsize='large')
        self.__draw_worldmap(axx, whole_globe=True)

        # draw sub-satellite spot(s)
        axx.scatter(lons, lats, 4, transform=ccrs.PlateCarree(),
                    marker='o', color=self.cset['s5p'])

        self.__add_copyright(axx)
        fig_info.add('lon0', lon_0)
        self.__add_fig_box(fig, fig_info)
        self.__close_this_page(fig)

        Display sub-satellite coordinates projected with TransverseMercator

        Parameters
        ----------
        lats :  ndarray
           Latitude coordinates
        lons :  ndarray
           Longitude coordinates
        title :  string, optional
           Title of the figure. Default is None
           Suggestion: use attribute "title" of data-product
        sub_title :  string, optional
           Sub-title of the figure. Default is None
           Suggestion: use attribute "comment" of data-product
        fig_info :  FIGinfo, optional
           OrderedDict holding meta-data to be displayed in the figure

        The information provided in the parameter 'fig_info' will be displayed
        in a small box.
        
Display sub-satellite coordinates projected with TransverseMercator
Parameters

lats :  ndarray
Latitude coordinates
lons :  ndarray
Longitude coordinates
title :  string, optional
Title of the figure. Default is None
Suggestion: use attribute "title" of data-product
sub_title :  string, optional
Sub-title of the figure. Default is None
Suggestion: use attribute "comment" of data-product
fig_info :  FIGinfo, optional
OrderedDict holding meta-data to be displayed in the figure

The information provided in the parameter 'fig_info' will be displayed
in a small box.
Display sub - satellite coordinates projected with TransverseMercator Parameters lats : ndarray Latitude coordinates lons : ndarray Longitude coordinates title : string optional Title of the figure . Default is None Suggestion : use attribute " title " of data - product sub_title : string optional Sub - title of the figure . Default is None Suggestion : use attribute " comment " of data - product fig_info : FIGinfo optional OrderedDict holding meta - data to be displayed in the figure The information provided in the parameter ' fig_info ' will be displayed in a small box .
def draw_geo_subsat(self, lons, lats, *,
                        title=None, sub_title=None, fig_info=None):
        if fig_info is None:
            fig_info = FIGinfo()
        if lons.max() - lons.min() > 180:
            if np.sum(lons > 0) > np.sum(lons < 0):
                lons[lons < 0] += 360
            else:
                lons[lons > 0] -= 360
        lon_0 = np.around(np.mean(lons), decimals=-1)
        fig = plt.figure(figsize=(12.5, 9))
        if title is not None:
            ypos = 1 - 0.35 / fig.get_figheight()
            fig.suptitle(title, fontsize='x-large',
                         position=(0.5, ypos), horizontalalignment='center')
        axx = plt.axes(projection=BetterTransverseMercator(
            central_longitude=lon_0, globe=ccrs.Globe(ellipse='sphere')))
        if sub_title is not None:
            axx.set_title(sub_title, fontsize='large')
        self.__draw_worldmap(axx, whole_globe=True)
        axx.scatter(lons, lats, 4, transform=ccrs.PlateCarree(),
                    marker='o', color=self.cset['s5p'])
        self.__add_copyright(axx)
        fig_info.add('lon0', lon_0)
        self.__add_fig_box(fig, fig_info)
        self.__close_this_page(fig)
def draw_geo_subsat ( self , lons , lats , * , title = None , sub_title = None , fig_info = None ) : if fig_info is None : fig_info = FIGinfo ( ) if lons . max ( ) - lons . min ( ) > 180 : if np . sum ( lons > 0 ) > np . sum ( lons < 0 ) : lons [ lons < 0 ] += 360 else : lons [ lons > 0 ] -= 360 lon_0 = np . around ( np . mean ( lons ) , decimals = - 1 ) fig = plt . figure ( figsize = ( 12.5 , 9 ) ) if title is not None : ypos = 1 - 0.35 / fig . get_figheight ( ) fig . suptitle ( title , fontsize = 'x-large' , position = ( 0.5 , ypos ) , horizontalalignment = 'center' ) axx = plt . axes ( projection = BetterTransverseMercator ( central_longitude = lon_0 , globe = ccrs . Globe ( ellipse = 'sphere' ) ) ) if sub_title is not None : axx . set_title ( sub_title , fontsize = 'large' ) self . __draw_worldmap ( axx , whole_globe = True ) axx . scatter ( lons , lats , 4 , transform = ccrs . PlateCarree ( ) , marker = 'o' , color = self . cset [ 's5p' ] ) self . __add_copyright ( axx ) fig_info . add ( 'lon0' , lon_0 ) self . __add_fig_box ( fig , fig_info ) self . __close_this_page ( fig )
Display sub-satellite coordinates projected with TransverseMercator
Parameters
Display sub - satellite coordinates projected with TransverseMercator Parameters
"""
        Display sub-satellite coordinates projected with TransverseMercator

        Parameters
        ----------
        lats :  ndarray
           Latitude coordinates
        lons :  ndarray
           Longitude coordinates
        title :  string, optional
           Title of the figure. Default is None
           Suggestion: use attribute "title" of data-product
        sub_title :  string, optional
           Sub-title of the figure. Default is None
           Suggestion: use attribute "comment" of data-product
        fig_info :  FIGinfo, optional
           OrderedDict holding meta-data to be displayed in the figure

        The information provided in the parameter 'fig_info' will be displayed
        in a small box.
        """ # determine central longitude # inititalize figure # draw worldmap # draw sub-satellite spot(s)
self
lons
lats
title
sub_title
fig_info