File: copynx.rst

package info (click to toggle)
python-nxtomomill 1.1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,588 kB
  • sloc: python: 15,974; makefile: 13; sh: 3
file content (49 lines) | stat: -rw-r--r-- 1,435 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.. _copynxtutorial:

copy-nx tutorial
================

.. article-info::
    :read-time: 5 min read
    :class-container: sd-p-2 sd-outline-muted sd-rounded-1

the `copy-nx` command can be used to copy one or several NXtomo contained in a file to another location.

Examples
--------

copy a single file (with potentially several NXtomo)
````````````````````````````````````````````````````

.. code-block:: bash

    nxtomomill nx-copy /path/to/nxomofile.nx .
    nxtomomill nx-copy /path/to/nxomofile.nx new.nx


copy a single NXtomo (potentially contained in a file with several NXtomo)
``````````````````````````````````````````````````````````````````````````

.. code-block:: bash

    nxtomomill nx-copy /path/to/nxomofile.nx --entry entry0000  .
    nxtomomill nx-copy /path/to/nxomofile.nx --entries entry0000,entry0001  .


copy a set of file
``````````````````

.. code-block:: bash

    for file in *.nx
    do
        nxtomomill nx-copy "$file" /new/path/"$file"
    done


Virtual dataset behavior
------------------------

If the source file contains HDF5 virtual dataset then the virtual source will be updated to fix relative links.

You can also use the 'remove-vds' option. In this case the HDF5 - virtual dataset will be replaced by a standard HDF5 dataset (getting rid of the virtual link). But be aware that with this option full dataaset must be able to fill in memory in order to modify it (at least for now).