![]() |
Finds and reverses the byte order of binary rasters in a directory (i.e. converts "little endian" to "big endian", or visa versa).
This tool is useful for converting binary raster data produced on systems with different processor architectures. For example, you might use this tool to convert data produced by a Sun SPARC processor, which uses "big endian" byte ordering, to the byte order needed by an Intel x86 processor, which uses "little endian" byte ordering.
| Expression | Explanation |
|---|---|
| <inputDirectory> | Directory to search. |
| <outputDirectory> | Directory to receive the byte-swapped binary rasters. These byte-swapped files will contain the same data as the input files, but have the opposite byte ordering. |
| <2 | 4 | 8> | Width in bytes of the data type stored in the input binary raster. Integers are usually 2 bytes (often called "short" or "int", depending on the platform), 4 bytes (often called "int" or "long"), or 8 bytes (sometimes called "longlong" or "qword"). Floating-point numbers are usually 4 bytes (often called "float" or "single") or 8 bytes (usually called "double"). |
| {wildcard} | UNIX-style "glob" wildcard expression specifying the pathnames to find. The glob syntax supports the following patterns:
seq is one or more characters, such as abc. You may specify character ranges using a dash. For example, a-z0-9 specifies all of the characters in the English alphabet and the decimal digits 0 through 9. You may specify subdirectories in the glob expression. For example, the expression cruise*/sst* will find all paths beginning with sst that are contained in directories beginning with cruise. The operating system determines whether / or \ is used as the directory separator. On Windows, both will work. On most flavors of UNIX, / must be used. The operating system determines if matching is case sensitive. On Windows, matching is case-insensitive. On most flavors of UNIX, matching is case-sensitive. |
| {searchTree} | If True, subdirectories will be searched. |
| {minSize} | Minimum size, in bytes, of files to find. If provided, only files that are this size or larger will be found. |
| {maxSize} | Maximum size, in bytes, of files to find. If provided, only files that are this size or smaller will be found. |
| {minDateCreated} | Minimum creation date, in the local time zone, of the files to find, as reported by the operating system. If provided, only files that were created on or after this date will be found. You may provide a date with or without a time. If you do not provide a time, it is assumed to be midnight. |
| {maxDateCreated} | Maximum creation date, in the local time zone, of the files to find, as reported by the operating system. If provided, only files that were created on or before this date will be found. You may provide a date with or without a time. If you do not provide a time, it is assumed to be midnight. |
| {minDateModified} | Minimum modification date, in the local time zone, of the files to find, as reported by the operating system. If provided, only files that were modified on or after this date will be found. You may provide a date with or without a time. If you do not provide a time, it is assumed to be midnight. |
| {maxDateModified} | Maximum modification date, in the local time zone, of the files to find, as reported by the operating system. If provided, only files that were modified on or before this date will be found. You may provide a date with or without a time. If you do not provide a time, it is assumed to be midnight. |
| {outputFilePythonExpression} | Python expression used to calculate the absolute path of an output binary raster. The expression may be any Python statement appropriate for passing to the eval function and must return a Unicode string. The expression may reference the following variables:
The default expression:
stores the output file in the output directory at the same relative location that the input file appears in the directory to search. The output path is calculated by stripping the directory to search from the input file path and replacing it with the output directory. For more information on Python syntax, please see the Python documentation. |
| {modulesToImport;modulesToImport...} | Python modules to import prior to evaluating the expression. If you need to access Python functions or classes that are provided by a module rather than being built-in to the interpreter, list the module here. For example, to be able to use the datetime class in your expression, list the datetime module here. In your expression, you must refer to the class using its fully-qualified name, datetime.datetime. |
| {skipExisting} | If True, processing will be skipped for ArcInfo ASCII Grid files that already exist. |
| Expression | Explanation |
|---|---|
| Directory to search (Required) | Directory to search. |
| Output directory (Required) | Directory to receive the byte-swapped binary rasters. These byte-swapped files will contain the same data as the input files, but have the opposite byte ordering. |
| Data type width (Required) | Width in bytes of the data type stored in the input binary raster. Integers are usually 2 bytes (often called "short" or "int", depending on the platform), 4 bytes (often called "int" or "long"), or 8 bytes (sometimes called "longlong" or "qword"). Floating-point numbers are usually 4 bytes (often called "float" or "single") or 8 bytes (usually called "double"). |
| Wildcard expression (Optional) | UNIX-style "glob" wildcard expression specifying the pathnames to find. The glob syntax supports the following patterns:
seq is one or more characters, such as abc. You may specify character ranges using a dash. For example, a-z0-9 specifies all of the characters in the English alphabet and the decimal digits 0 through 9. You may specify subdirectories in the glob expression. For example, the expression cruise*/sst* will find all paths beginning with sst that are contained in directories beginning with cruise. The operating system determines whether / or \ is used as the directory separator. On Windows, both will work. On most flavors of UNIX, / must be used. The operating system determines if matching is case sensitive. On Windows, matching is case-insensitive. On most flavors of UNIX, matching is case-sensitive. |
| Search directory tree (Optional) | If True, subdirectories will be searched. |
| Minimum size (Optional) | Minimum size, in bytes, of files to find. If provided, only files that are this size or larger will be found. |
| Maximum size (Optional) | Maximum size, in bytes, of files to find. If provided, only files that are this size or smaller will be found. |
| Minimum creation date (Optional) | Minimum creation date, in the local time zone, of the files to find, as reported by the operating system. If provided, only files that were created on or after this date will be found. You may provide a date with or without a time. If you do not provide a time, it is assumed to be midnight. |
| Maximum creation date (Optional) | Maximum creation date, in the local time zone, of the files to find, as reported by the operating system. If provided, only files that were created on or before this date will be found. You may provide a date with or without a time. If you do not provide a time, it is assumed to be midnight. |
| Minimum modification date (Optional) | Minimum modification date, in the local time zone, of the files to find, as reported by the operating system. If provided, only files that were modified on or after this date will be found. You may provide a date with or without a time. If you do not provide a time, it is assumed to be midnight. |
| Maximum modification date (Optional) | Maximum modification date, in the local time zone, of the files to find, as reported by the operating system. If provided, only files that were modified on or before this date will be found. You may provide a date with or without a time. If you do not provide a time, it is assumed to be midnight. |
| Output binary raster Python expression (Optional) | Python expression used to calculate the absolute path of an output binary raster. The expression may be any Python statement appropriate for passing to the eval function and must return a Unicode string. The expression may reference the following variables:
The default expression:
stores the output file in the output directory at the same relative location that the input file appears in the directory to search. The output path is calculated by stripping the directory to search from the input file path and replacing it with the output directory. For more information on Python syntax, please see the Python documentation. |
| Python modules to import (Optional) | Python modules to import prior to evaluating the expression. If you need to access Python functions or classes that are provided by a module rather than being built-in to the interpreter, list the module here. For example, to be able to use the datetime class in your expression, list the datetime module here. In your expression, you must refer to the class using its fully-qualified name, datetime.datetime. |
| Skip existing outputs (Optional) | If True, processing will be skipped for ArcInfo ASCII Grid files that already exist. |
