; Copyright (c) 1998-2011 A.P. Hitchcock  All rights reserved
;+
;NAME:
;		INIT_SD.PRO
;
;LAST CHANGED: ----------------------------------- 	31-Jul-11
;
; PURPOSE:
;	This procedure sets up the entries of the SD structure
; which contains all the parameters used by the NSLS1 X1A STXM (old data formats - *.nc)
;
; CATEGORY:
;	Utility
;
; CALLING SEQUENCE:
; for procedures:
;	INIT_SD, SD
;
; INPUTS: none
;
; KEYWORDS: none
;
; OUTPUTS:  SD strcuture
;
; COMMON BLOCKS: none
;
; MODIFICATION HISTORY:
; (18-may-97 aph)  adapted from init_sd (nsls)
; (31-Jul-11 aph) AXIS standard header added
;-

pro init_sd, sd

sd = {stxm_sd, $
version_number: long(0), $
scan_driver_mode: long(0), $
scan_width: long(0), $
scan_height: long(0), $
i0_mode: long(0), $
clock_frequency: long(0), $
x_start: float(0.), $
x_stop: float(0.), $
y_start: float(0.), $
y_stop: float(0.), $
x_step_size: float(0.), $
y_step_size: float(0.), $
focus_position: float(0.), $
dwell_time: float(0.), $
x_prescan_distance: float(0.), $
y_prescan_distance: float(0.), $
x_postscan_distance: float(0.), $
y_postscan_distance: float(0.), $
flyback_velocity: float(0.), $
entrance_slit: float(0.), $
exit_slit: float(0.), $
wavelength: float(0.), $
date_time: bytarr(24), $
operator: bytarr(80), $
sample: bytarr(80), $
zone_plate: bytarr(80), $
comment1: bytarr(80), $
comment2: bytarr(80), $
file_name: bytarr(256), $
ring_current: float(0.), $
undulator_gap: float(0.), $
idling_time: float(0.), $
auto_shutter: long(0), $
x_center: float(0.), $
y_center: float(0.), $
z_center: float(0.), $
z_start: float(0.), $
z_stop:  float(0.), $
z_step_size: float(0.), $
x_pzt_offset: float(0.), $
y_pzt_offset: float(0.), $
initial_lambda: float(0.), $
final_lambda: float(0.), $
sgm_step_size: float(0.), $
dx_dl: float(0.), $
dy_dl: float(0.), $
dz_de: float(0.) }

end
