Opening Astropy FITS file from SFTP server
问题 I have a Python script that ssh into a remote server using Paramiko module. The below is my script import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect("host", username="McMissile") A FITS file on a local machine is usually opened as follows: from astropy.io import fits hdu = fits.open('File.fits') I was wondering how would I open a FITS file from the SFTP server machine and store it under the variable hdu in the local machine. I