azcam_ds9/ds9display.py
def save_image(self, filename="display.png"):
        """
        Save displayed image as a PNG snapshot.

        :param str filename: filename of image to be saved.
        :return None:
        """

        # many kluges here, XPA seems buggy on this.

        # problem with paths so use only filename
        # fullname=os.path.abspath(filename)
        # filename=os.path.basename(filename)
        # folder=os.path.dirname(fullname)
        fullname = filename

        f = fullname.lstrip("C:")

        # save image
        cmd = "saveimage png " + f
        self.xpaset(cmd)

        return None

        Save displayed image as a PNG snapshot.

        :param str filename: filename of image to be saved.
        :return None:
        
Save displayed image as a PNG snapshot.
Save displayed image as a PNG snapshot .
def save_image(self, filename="display.png"):
        fullname = filename
        f = fullname.lstrip("C:")
        cmd = "saveimage png " + f
        self.xpaset(cmd)
        return None
def save_image ( self , filename = "display.png" ) : fullname = filename f = fullname . lstrip ( "C:" ) cmd = "saveimage png " + f self . xpaset ( cmd ) return None
Save displayed image as a PNG snapshot.
Save displayed image as a PNG snapshot .
"""
        Save displayed image as a PNG snapshot.

        :param str filename: filename of image to be saved.
        :return None:
        """ # many kluges here, XPA seems buggy on this. # problem with paths so use only filename # fullname=os.path.abspath(filename) # filename=os.path.basename(filename) # folder=os.path.dirname(fullname) # save image
None
None
self
filename
filename of image to be saved.
filename of image to be saved .