[AstroPy] AstroPy Digest, Vol 147, Issue 2

salome philippe.salome at obspm.fr
Tue Dec 18 13:10:04 EST 2018


Dear William, 

Indeed, it works ! (I am sorry I did not think of updating ds9 from 7.6 to 8. 
Good to know). Thanks a lot for your prompt reply.

Regards, 
Philippe

> Le 18 déc. 2018 à 18:25, William Joye <wjoye at cfa.harvard.edu> a écrit :
> 
> Philippe
> 
> Please download the latest official release of DS9 version 8.0 at:
> 
> http://ds9.si.edu/site/Download.html
> 
> It contains a fix for this issue.
> 
> In more detail, your server is returning an inappropriate MIME type for a FITS file. That being said, this is a common problem, and not the fault of the user, so DS9 now treats the MIME type “text/plain” as acceptable for a FITS file.
> 
> Regards
> 
> bill joye
> 
> 
>> On Dec 18, 2018, at 12:00 PM, astropy-request at python.org wrote:
>> 
>> Send AstroPy mailing list submissions to
>> 	astropy at python.org
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	https://mail.python.org/mailman/listinfo/astropy
>> or, via email, send a message with subject or body 'help' to
>> 	astropy-request at python.org
>> 
>> You can reach the person managing the list at
>> 	astropy-owner at python.org
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of AstroPy digest..."
>> 
>> 
>> Today's Topics:
>> 
>>  1. astropy.samp (salome)
>> 
>> 
>> ----------------------------------------------------------------------
>> 
>> Message: 1
>> Date: Tue, 18 Dec 2018 16:18:36 +0100
>> From: salome <philippe.salome at obspm.fr>
>> To: astropy at python.org
>> Subject: [AstroPy] astropy.samp
>> Message-ID: <EF744BDF-205A-440A-B99B-4655A0D617A8 at obspm.fr>
>> Content-Type: text/plain; charset="utf-8"
>> 
>> Hi, 
>> 
>> I am new on this list, but I am an astronomer using astropy. I recently noticed a pb when trying to send a FITS file from a serveur to ds9 via SAMP (while it works perfectly well with the same file from the same serveur via SAMP to Aladin, same code, 2 clients open).
>> 
>> I followed the docs here : http://docs.astropy.org/en/stable/samp/example_table_image.html#sending-an-image-to-ds9-and-aladin <http://docs.astropy.org/en/stable/samp/example_table_image.html#sending-an-image-to-ds9-and-aladin>. 
>> 
>> ?> It works well with Aladin 
>> ?> It does not work with ds9 
>> 
>> Does anyone already encountered this pb ? 
>> Thanks ! 
>> 
>> ---
>> Philippe Salom?
>> LERMA, Observatoire de Paris
>> 
>> =================
>> 
>> The pop-up ds9 error message is the following 
>> ? File not Found or Unable to load FITS data MIME type text/plain ?
>> 
>> With :
>> 
>> Python 3.7.0 (default, Jun 28 2018, 07:39:16) 
>> Type 'copyright', 'credits' or 'license' for more information
>> IPython 6.5.0 -- An enhanced Interactive Python. Type '?' for help.
>> 
>> And :
>> 
>> In [3]: astropy.__version__
>> Out[3]: ?3.0.4?
>> 
>> And :
>> 
>> SAO Image Ds9 version 7.6 
>> 
>> The script :
>> 
>> ===
>> from astropy.samp import SAMPHubServer
>> hub = SAMPHubServer()
>> hub.start()
>> 
>> from astropy.samp import SAMPIntegratedClient
>> client = SAMPIntegratedClient()
>> client.connect()
>> 
>> params = {}
>> params["name"] = "My data"
>> params["url"]='http://myserver.fr/~mydirectory/myfile.fits <http://myserver.fr/~mydirectory/myfile.fits>'
>> 
>> message = {}
>> message["samp.mtype"] = 'image.load.fits'
>> message["samp.params"] = params
>> 
>> client.get_registered_clients()
>> client.notify_all(message)
>> client.disconnect()
>> hub.stop()
>> ===
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <http://mail.python.org/pipermail/astropy/attachments/20181218/d6601220/attachment-0001.html>
>> 
>> ------------------------------
>> 
>> Subject: Digest Footer
>> 
>> _______________________________________________
>> AstroPy mailing list
>> AstroPy at python.org
>> https://mail.python.org/mailman/listinfo/astropy
>> 
>> 
>> ------------------------------
>> 
>> End of AstroPy Digest, Vol 147, Issue 2
>> ***************************************
> 



More information about the AstroPy mailing list