12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

global REFLEX # Variable for file name# Open the file, save old one as .bak and write headerdef reflex_beg ’{if ("$1" == "0") {if (REFLEX == "")REFLEX = "reflex"REFLEX = getval("Reflections file", REFLEX)} elseREFLEX = "$1"}’if (open(REFLEX))exitclose(REFLEX)if (file_info(REFLEX, "-s"))unix(sprintf("mv %s %s.bak", REFLEX, REFLEX))fprintf(REFLEX,"# %s\n\n_begUB\n\n",date())The reflex macro adds lines to the file that contain the (H, K, L )and (2θ , θ , χ , φ )ofeach reflection:# Add reflection to the filedef reflex ’if ($# != 3) {print "Usage: reflex H K L"exit}if (REFLEX == "") {REFLEX = getval("Reflections file", "reflex")if (REFLEX == "")exit}waitmove; get_angles; calcHKLfprintf(REFLEX,"H = %g; K = %g; L = %g\n",$1,$2,$3){local i’for (i=0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!