Adxv: Difference between revisions

834 bytes added ,  17 June 2009
No edit summary
Line 5: Line 5:
This is Fortran code for generating these files in the same directory where the frames are (i.e. you need write permission in that directory!):
This is Fortran code for generating these files in the same directory where the frames are (i.e. you need write permission in that directory!):


  ! generate .adx files from existing XDS.INP and XDS_ASCII.HKL
  ! Task: generate .adx files from existing XDS.INP and XDS_ASCII.HKL
!      to be able to visualize where XDS finds/expects reflections
! The latest beta versions of ADXV (from http://www.scripps.edu/~arvai/adxv/)
! can read these .adx files and display them together with the frames.
! Compilation: save this code as "generate_adx.f90" and compile with e.g.
! gfortran -O -C generate_adx.f90 -o generate_adx
! Then move the resulting binary to /usr/local/bin or ~/bin
! Usage: go to the directory which has XDS_ASCII.HKL and run generate_adx
! - the resulting files will be written to the directory where the frames are
! - which means you need write permission for that directory
! - which also means that the program might overwrite your frames if something goes wrong
! If you don't want this then just change the NAME_TEMPLATE_OF_DATA_FRAMES= line.
! Kay Diederichs 6/2009
!
       implicit none
       implicit none
       integer :: hkl(3),iframe,j=-10000,mini=huge(mini),maxi=-huge(maxi),&
       integer :: hkl(3),iframe,j=-10000,mini=huge(mini),maxi=-huge(maxi),&
2,652

edits