File: mpb-data.1

package info (click to toggle)
mpb 1.5-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 3,724 kB
  • ctags: 1,181
  • sloc: ansic: 12,655; sh: 11,323; makefile: 185; lisp: 44
file content (152 lines) | stat: -rw-r--r-- 5,754 bytes parent folder | download | duplicates (3)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
.\" Copyright (C) 1999-2014 Massachusetts Institute of Technology.
.\"
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program; if not, write to the Free Software
.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
.\"
.TH MPB-DATA 1 "January 27, 2000" "MPB" "MIT Photonic-Bands Package"
.SH NAME
mpb-data \- transformations of HDF5 files output by MPB
.SH SYNOPSIS
.B mpb-data
[\fIOPTION\fR]... [\fIHDF5FILE\fR]...
.SH DESCRIPTION
.PP
.\" Add any additional description here
mpb-data is a utility to perform additional processing and
transformations of HDF5 files output by MPB, the MIT Photonic-Bands
program.  In particular, it is designed to make the output more
amenable to visualization by reformatting it into a rectangular grid,
extending it to multiple periods, and rescaling the data.
.PP
MIT Photonic Bands (MPB) is a free program to compute the band
structures (dispersion relations) and electromagnetic modes of
periodic dielectric structures.
.PP
HDF5 is a free, portable binary format and supporting library developed
by the National Center for Supercomputing Applications at the University
of Illinois in Urbana-Champaign.  A single
.I h5
file can contain multiple data sets; by default,
.I mpb-data
operates on all of the MPB-produced datasets in the file, but this can
be changed via the
.B -d
option, or by using the syntax \fIHDF5FILE:DATASET\fR.
.PP
.I mpb-data
writes its output datasets as additional datasets in the input file(s), with "\-new" appended to the dataset names.  Alternatively, it can write its output to a separate file, specified by the
.B -o
option.
.PP
Note also that, by default, the output datasets are identical to the
input datasets; you must use one or more of the options below to
specify a transformation (e.g. the \fB\-r\fR/\fB\-e\fR and
.B -n
options are very useful).
.SH OPTIONS
.TP
.B -h
Display help on the command-line options and usage.
.TP
.B -V
Print the version number and copyright info for mpb-data.
.TP
.B -v
Verbose output.
.TP
\fB\-o\fR \fIfile\fR
Write output datasets to
.I file
(for the first input file only) rather than as additional datasets in
the input file(s) (the default).
.TP
.B -r
Output a rectangular cell with the same volume as the cell of the
input data.  This option is particularly useful for visualizing data
from non-orthogonal unit cells (e.g. a triangular lattice), as
otherwise the data will appear skewed or warped in most graphics
programs.  This option should almost always be accompanied by the
\fB\-n\fR option to ensure a uniform resolution.
.TP
\fB\-e\fR \fIx,y,z\fR
As the \fB\-r\fR option, but also make the first axis of the output along
the \fIx,y,z\fR direction (in Cartesian coordinates) instead of along
the first lattice vector as for \fB\-r\fR.
.TP
\fB\-P\fR \fIphaseangle\fR
For complex-valued datasets, this option causes the output values to
be rotated by \fIphaseangle\fR degrees in the complex plane.  That is,
they are multiplied by exp(2 pi i \fIphaseangle\fR / 360).
.TP
\fB\-n\fR \fIn\fR
Output
.I n
grid points per lattice unit ("a").  This is useful not only for interpolating
to finer (or coarser) resolutions, but also to ensure that the resolution
is uniform in each direction (to prevent the data from looking distorted
when you visualize it).
.TP
\fB\-x\fR \fImx\fR, \fB\-y\fR \fImy\fR, \fB\-z\fR \fImz\fR
This tells
.I mpb-data
to output multiple periods in the corresponding lattice directions.
to use a particular slice of a two- or three-dimensional dataset.  e.g.
.B -x 3.2
causes the output of 3.2 periods in the first lattice direction.  The
default is to output only a single period.
.TP
\fB\-m\fR \fIs\fR
Output
.I s
periods in each lattice direction; equivalent to:
\fB\-x\fR \fIs\fR \fB\-y\fR \fIs\fR \fB\-z\fR \fIs\fR.
.TP
.B -T
The output has the first two dimensions (x and y) transposed.  This
is useful in conjunction with the parallel (MPI) version of MPB,
which for performance reasons outputs all arrays with the first two
dimensions transposed.
.B -T
can undo this transposition.
.TP
.B -p
Pixellized output.  Normally, the input data is linearly interpolated to
the output grid, but the
.B -p
option causes it to instead use the nearest grid point in the input data.
This is useful, for example, if you want to study the discretization of the
dielectric-function representation.
.TP
\fB\-d\fR \fIname\fR
Use dataset
.I name
from the input files; otherwise, the first dataset from each file is used.
Alternatively, use the syntax \fIHDF5FILE:DATASET\fR, which allows you
to specify a different dataset for each file.
You can use the
.I h5ls
command (included with hdf5) to find the names of datasets within a file.

Note that this option is generally unnecessary, since mpb-data can
already find the relevant dataset(s) for files created by MPB.  Also,
note that mpb-data treats the dataset specified by this option as a
real scalar dataset and does not include the exp(ikx) factors when
extending the dataset to multiple periods.
.SH BUGS
Send bug reports to S. G. Johnson, stevenj@alum.mit.edu.
.SH AUTHORS
Written by Steven G. Johnson.  Copyright (c) 1999-2012 by
the Massachusetts Institute of Technology.
.SH "SEE ALSO"
mpb(1)