[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: [Imgcif-l] Reading CBF files from Python
- To: The Crystallographic Binary File and its imgCIF application to image data <imgcif-l@iucr.org>
- Subject: Re: [Imgcif-l] Reading CBF files from Python
- From: Jon Wright <wright@esrf.fr>
- Date: Mon, 21 Jun 2010 11:05:32 +0200
- In-Reply-To: <4854F2500EA8C4478A508D2D92973E5206D6B5F9@EXCHANGE25.fed.cclrc.ac.uk>
- References: <4854F2500EA8C4478A508D2D92973E5206D6B5F9@EXCHANGE25.fed.cclrc.ac.uk>
Hi Graeme, There is a swig based python binding included with CBFlib in the pycbf subfolder. It should work for reading files (see pycbf_test1.py). Further work was needed for writing. Let me know if you run into problems. Improvements are most welcome. Best Jon Graeme.Winter@Diamond.ac.uk wrote: > Hi Folks, > > Does anyone know if CBF images can be read from Python? I coded up > something in Python to do this but it's a spot slow to say the least. My > interest is partly in reading the cbf "image" files calculated by XDS to > explain what it has been up to. I could code something up in 'c' or a > bridge to CBFlib but that would be hardish to maintain, so a solution > using existing Python libraries would suit me better. > > I looked quickly at PyCIFrw but this appears to be mostly about the CIF > side of things rather than the MIME encoded chunks. Please correct me if > I am wrong. I also tried iotbx.detectors.cbf.CBFImage but hit an > exception which probably relates to this being more of a picture than a > diffraction image. > > Thanks, > > Graeme > > Dr. Graeme Winter > Software and MX Support Scientist > Diamond Light Source > > +44 1235 778091 (work) > +44 7786 662784 (work mobile) > > > > > _______________________________________________ imgcif-l mailing list imgcif-l@iucr.org http://scripts.iucr.org/mailman/listinfo/imgcif-l
Reply to: [list | sender only]
- Follow-Ups:
- Re: [Imgcif-l] Reading CBF files from Python (Graeme.Winter)
- References:
- [Imgcif-l] Reading CBF files from Python (Graeme.Winter)
- Prev by Date: [Imgcif-l] Reading CBF files from Python
- Next by Date: Re: [Imgcif-l] Reading CBF files from Python
- Prev by thread: [Imgcif-l] Reading CBF files from Python
- Next by thread: Re: [Imgcif-l] Reading CBF files from Python
- Index(es):