xpdAcq / mission-control

Releases, Installers, Specs, and more!
0 stars 4 forks source link

save tiff data file to local disc from the central storage #133

Open jmbai2000 opened 6 years ago

jmbai2000 commented 6 years ago

How to save the data file from the central storage to local disc after the experiment

From a remote computer, with help of CJ, I can search and save individual file with the following steps;

1, from shell: conda activate /home/xf28id2/conda_envs/collection-2018-2.1-XPD 2, ipython 3, In [1]: from databroker import Broker 4, db = Broker.named('xpd') 5,In [3]: hdrs = db(text_search= 'Ceria_std_28')

6, In [4]: hdr1 = list(hdrs) 7, docs = hdr1[0].documents(fill = True) 8, In [11]: from xpdan.pipelines.save_tiff import raw_source 9, from xpdan.pipelines.save_tiff import save_kwargs 10, In [14]: for nd in docs: ...: raw_source.emit(nd) ...:

This will save the 1st tiff file and yml file in the folder ceria_std_28: saving file at /home/jmbai/xpdUser/tiff_base/Ceria_std_28/meta/Ceria_std_28_a8f498.yaml START ANALYSIS ON a8f498f8-9940-4feb-b6b9-c4c13cf8a115 saving file at /home/jmbai/xpdUser/tiff_base/Ceria_std_28/dark_sub/Ceria_std_28_20180719-111737_a8f498_0001.tiff FINISH ANALYSIS ON a8f498f8-9940-4feb-b6b9-c4c13cf8a115

I wonder if we can combine 1,2,3,4,8,9 into one command (like setup_analysis) , and I would like to know how to save multiple files in a folder with a single command.

CJ-Wright commented 6 years ago

@jmbai2000 thank you for reporting!

sbillinge commented 5 years ago

I think this will largely be solved by the lightweight save-tiff pipeline that is part of 2019-cycle 1