def get_base_url(self, force_http=False):
        """ Creates base URL path

        :param force_http: `True` if HTTP base URL should be used and `False` otherwise
        :type force_http: str
        :return: base url string
        :rtype: str
        """
        base_url = SHConfig().aws_metadata_url.rstrip('/') if force_http else 's3:/'
        aws_bucket = SHConfig().aws_s3_l1c_bucket if self.data_source is DataSource.SENTINEL2_L1C else \
            SHConfig().aws_s3_l2a_bucket

        return '{}/{}/'.format(base_url, aws_bucket)
def get_base_url ( self , force_http = False ) : base_url = SHConfig ( ) . aws_metadata_url . rstrip ( '/' ) if force_http else 's3:/' aws_bucket = SHConfig ( ) . aws_s3_l1c_bucket if self . data_source is DataSource . SENTINEL2_L1C else SHConfig ( ) . aws_s3_l2a_bucket return '{}/{}/' . format ( base_url , aws_bucket )
Creates base URL path

        :param force_http: `True` if HTTP base URL should be used and `False` otherwise
        :type force_http: str
        :return: base url string
        :rtype: str