~ubuntu-branches/ubuntu/utopic/clipper/utopic

« back to all changes in this revision

Viewing changes to examples/ciftophs.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Morten Kjeldgaard
  • Date: 2010-11-22 11:11:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20101122111153-dotvmo302k1ns9h2
Tags: 2.1+20100511-0ubuntu1
* New upstream version
* Use source package format 3.0 (quilt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Clipper test application
2
 
/* (C) 2003 Kevin Cowtan */
3
 
 
4
 
 
5
 
#include <clipper/clipper.h>
6
 
#include <clipper/clipper-phs.h>
7
 
#include <clipper/clipper-cif.h>
8
 
 
9
 
 
10
 
using clipper::data32::F_sigF;
11
 
 
12
 
 
13
 
int main(int argc, char** argv)
14
 
{
15
 
  clipper::CIFfile ciffile;
16
 
  clipper::PHSfile phsfile;
17
 
 
18
 
  // make data objects
19
 
  clipper::HKL_info wrk_hkl;
20
 
  clipper::HKL_data<F_sigF> wrk_fo( wrk_hkl );
21
 
 
22
 
  // read data
23
 
  ciffile.open_read( argv[1] );
24
 
  ciffile.import_hkl_info( wrk_hkl );
25
 
  ciffile.import_hkl_data( wrk_fo );
26
 
  ciffile.close_read();
27
 
 
28
 
  // write data
29
 
  phsfile.open_write( argv[2] );
30
 
  phsfile.export_hkl_info( wrk_hkl );
31
 
  phsfile.import_hkl_data( wrk_fo );
32
 
  phsfile.close_read();
33
 
}