def create_from_position(cls, skydir, config, **kwargs):
        """Create an ROIModel instance centered on a sky direction.

        Parameters
        ----------

        skydir : `~astropy.coordinates.SkyCoord` 
            Sky direction on which the ROI will be centered.

        config : dict
            Model configuration dictionary.
        """

        coordsys = kwargs.pop('coordsys', 'CEL')
        roi = cls(config, skydir=skydir, coordsys=coordsys, **kwargs)
        return roi
def create_from_position ( cls , skydir , config , ** kwargs ) : coordsys = kwargs . pop ( 'coordsys' , 'CEL' ) roi = cls ( config , skydir = skydir , coordsys = coordsys , ** kwargs ) return roi
Create an ROIModel instance centered on a sky direction.

        Parameters
        ----------

        skydir : `~astropy.coordinates.SkyCoord` 
            Sky direction on which the ROI will be centered.

        config : dict
            Model configuration dictionary.