# This dataset was taken on id16A with a Siemens star target, courtesy of Peter Cloetens & Dmitry Karpov
# The two datasets where taken with different trajectories for the sample to ensure they are independent

# 1) analyse it using the near field command-line script:

pynx-id16a-nfpty.py data=Siemens_100nm_newmacro_run1_cp0_NFP10000.h5 meta=ihls3260-SiemensLH-Siemens_100nm_newmacro_run1_cp0_NFP1.h5 dark=dark_0000.h5:/entry_0000/measurement/data scan=0 algorithm=ML**200,DM**200,prnbprobe=1,probe=1 ptychomotors=spy,spz,-x*1e-6,y*1e-6 saveplot=object_phase liveplot


# 2) You can look at the results of the analysis using:

eog ResultsScan*/lat*.png

or:
 silx view ResultsScan*/latest.cxi
(with silx, use the 'image' viewer and see the amplitude, phase or mixed phase/amplitude view)


# 3) Use multiscan_reuse_ptycho to analyse a series of scan, with a shorter algorithm after the first scan (using the previous object and probe to go faster)

pynx-id16a-nfpty.py data=Siemens_100nm_newmacro_run1_cp0_NFP10000.h5 meta=ihls3260-SiemensLH-Siemens_100nm_newmacro_run1_cp0_NFP1.h5 dark=dark_0000.h5:/entry_0000/measurement/data scan=0 algorithm=ML**200,DM**200,probe=1 ptychomotors=spy,spz,-x*1e-6,y*1e-6 saveplot=object_phase scan=0,1 multiscan_reuse_ptycho=ML**40,probe=1 liveplot
