Discussion List Archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Imgcif-l] Creating cbf images with pycbf

Dear Herbert,

Many thanks for the quick response with this - I think it will probably take a little longer for me to digest!

This does at first glance appear to be what I was after though, thankyou!

Graeme

-----Original Message-----
From: Herbert J. Bernstein [mailto:yayahjb@gmail.com] 
Sent: 11 November 2012 04:17
To: yayahjb
Cc: The Crystallographic Binary File and its imgCIF application to image data; Winter, Graeme (DLSLtd,RAL,DIA)
Subject: Re: [Imgcif-l] Creating cbf images with pycbf

Dear Graeme,

   I have made a new example that uses setters and writes a byte-offset compressed image.  Testing revealed some bugs in the wrapper for some of the setters, so I have also updated the release kit.  The whole thing is  available on the  CBFlib_bleeding_edge svn on sourceforge as well  as as a release kit

   http://downloads.sf.net/cbflib/CBFlib-0.9.2.6.tar.gz

Please give it a try and take a look at pycbf/pycbf_test4.py for an example of writing a byte-offset CBF.  Let me know if it does what you need.  If not, tell me what is missing or wrong and I'll be happy to fix things and add more pycbf examples to the kit.

   Regards,
     Herbert

P.S.  This was a very useful question because it relate to testing the HDF5 changes.


On 11/8/12 1:23 PM, yayahjb wrote:
> Dear Graeme,
>
>   Right now the pycbf code includes an example of reading a CIF image, 
> (pycbf_test1.py), but not examples of constructing one from scratch 
> and writing it out.  Unless one of the others has an example handy 
> already, I'll try
> to  cobble one together and send  you an update next week.   This is 
> mainly
> a matter of adding a lot of setters to make_pycbf.w.
>
>  The base for the changes with be the 0.9.2.5 kit.
>
>   Regards,
>     Herbert
>
>
> On 11/8/12 4:59 AM, Graeme.Winter@Diamond.ac.uk wrote:
>> Hi Folks,
>>
>> Let's just say I had some header text for a CIF image and an array of 
>> values, is there a way of making a cbf image with byte offset 
>> compression using pycbf?
>>
>> Does anyone have an example of this?
>>
>> Thanks,
>>
>> Graeme
>>
>> Dr. Graeme Winter
>> Senior Software Scientist
>> Diamond Light Source
>>
>> +44 1235 778091 (work)
>> +44 7786 662784 (work mobile)
>>
>>
>>
>>
>>
>
>

_______________________________________________
imgcif-l mailing list
imgcif-l@iucr.org
http://mailman.iucr.org/mailman/listinfo/imgcif-l

Reply to: [list | sender only]
International Union of Crystallography

Scientific Union Member of the International Science Council (admitted 1947). Member of CODATA, the ISC Committee on Data. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

International Science Council Scientific Freedom Policy

The IUCr observes the basic policy of non-discrimination and affirms the right and freedom of scientists to associate in international scientific activity without regard to such factors as ethnic origin, religion, citizenship, language, political stance, gender, sex or age, in accordance with the Statutes of the International Council for Science.