Mrc wise files
ValueError — If the byte order indicator is not recognised. This function calls validate for each file name in the given list. Note that False will be returned immediately if a file is found to be invalid. Subsequent files will not be checked. True if all of the files are valid, or False if any of the files do not meet the MRC format specification in any way.
OSError — If one of the files does not exist or cannot be opened. RuntimeWarning — If one of the files is seriously invalid because it has no map ID string, an incorrect machine stamp, an unknown mode number, or is not the same size as expected from the header. Table of Contents: Overview of mrcfile. Docs » Source documentation Edit on GitHub. Parameters: name — The file name to use. The default is None , to create an empty file. Acceptable values are: None the default; for no compression , 'gzip' or 'bzip2'.
If False and a file of the same name already exists, the file is not overwritten and an exception is raised. Returns: An MrcFile object or a subclass of it if compression is specified.
Raises: ValueError — If the file already exists and overwrite is False. ValueError — If the compression format is not recognised. Parameters: name — The file name to open. The default is r. The default is False. Warns: RuntimeWarning — If the file appears to be a valid MRC file but the data block is longer than expected from the dimensions in the header.
Returns: A FutureMrcFile object. Returns: An MrcMemmap object. For example, nz, ny, nx for a new 3D volume, or ny, nx for a new 2D image. If None , the data array will not be filled and its contents are unspecified. Returns: A new MrcMemmap object. ValueError — If the file already exists and overwrite is False. After the file has been opened, it is checked for problems.
Machine stamp: The machine stamp should contain one of 0x44 0x44 0x00 0x00 , 0x44 0x41 0x00 0x00 or 0x11 0x11 0x00 0x MRC mode: the mode field should be one of the supported mode numbers: 0, 1, 2, 4 or 6.
Map and cell dimensions: The header fields nx , ny , nz , mx , my , mz , cella. Axis mapping: Header fields mapc , mapr and maps must contain the values 1, 2, and 3 in any order. Volume stack dimensions: If the spacegroup is in the range —, representing a volume stack, the nz field should be exactly divisible by mz to represent the number of volumes in the stack. Header labels: The nlabl field should be set to indicate the number of labels in use, and the labels in use should appear first in the label array.
Extended header type: If an extended header is present, the exttyp field should be set to indicate the type of extended header. Data statistics: The statistics in the header should be correct for the actual data in the file, or marked as undetermined.
File size: The size of the file on disk should match the expected size calculated from the MRC header. Parameters: name — The file name to open and validate. The default is None , which means output will be printed to sys. Returns: True if the file is valid, or False if the file does not meet the MRC format specification in any way.
Raises: OSError — If the file does not exist or cannot be opened. Warns: RuntimeWarning — If the file is seriously invalid because it has no map ID string, an incorrect machine stamp, an unknown mode number, or is not the same size as expected from the header. MrcFile MrcFile subclass for handling bzip2-compressed files. This function opens files in permissive mode to allow headers of invalid files to be examined.
Parameters: names — A list of file names. If not given or None , the names are taken from the command line arguments. This will normally be mrcfile. Normally a 1-tuple containing the name of the file to open. For internal use only. Parameters: timeout — Time to wait in seconds for the file opening to finish. Returns: An MrcFile object or one of its subclasses. Raises: RuntimeError — If the operation has not finished within the time limit set by timeout.
Note that the type of this exception will change in future if this class is replaced by concurrent. Exception — Any exception raised by the MrcFile opening operation will be re-raised here. Parameters: timeout — Time to wait in seconds for the operation to finish.
Returns: An Exception , if one was raised by the file opening operation, or None if no exception was raised. MrcFile MrcFile subclass for handling gzipped files.
Usage: To create a new MrcFile object, pass a file name and optional mode. The mode number is not recognised. Currently accepted modes are 0, 1, 2, 4 and 6. The file is not large enough for the specified extended header size. The data block is not large enough for the specified data type and dimensions.
The default is None. Raises: ValueError — If the stream is not long enough to contain the extended header indicated by the header and permissive is False. RuntimeWarning — If the stream is not long enough to contain the extended header indicated by the header and permissive is True.
Raises: ValueError — If the stream is not long enough to contain the data indicated by the header and permissive is False. Warns: RuntimeWarning — If the stream is not long enough to contain the data indicated by the header and permissive is True. Returns: A 2-tuple of the bytearray and the number of bytes that were read from the stream.
MrcFile MrcFile subclass that uses a numpy memmap array for the data. Raises: ValueError — If this object is read-only. The new data array is not checked - it must already be valid for use in an MRC file. Parameters: header — An MRC header as a numpy record array. Returns: The numpy dtype object for the data array corresponding to the given header. Raises: ValueError — If there is no corresponding dtype for the given mode.
Returns: The shape tuple for the data array corresponding to the given header. Parameters: dtype — A numpy dtype object. Returns: The MRC mode number. The mode parameter may be given as a Python scalar, numpy scalar or single-item numpy array. Parameters: mode — The MRC mode number. This may be given as any type which can be converted to an int, for example a Python scalar int or float , a numpy scalar or a single-item numpy array. Returns: The numpy dtype object corresponding to the given mode.
Parameters: machst — The machine stamp, as a bytearray or a numpy array of bytes. Raises: ValueError — If the machine stamp is invalid.
Returns: The machine stamp which corresponds to the given byte order, as a bytearray. This will be either 0x44, 0x44, 0, 0 for little-endian or 0x11, 0x11, 0, 0 for big-endian. Exhibit 5, Boxing and Packaging Tips Safe delivery starts with careful preparation.
DMM Advertisement circulars. Adhere to local handling. Merchandise samples. Final Destination. Advertisement Circulars. Return to Bank listed on Deposit Slip. Recycle via Maintenance Dept. Birth Certificates. Atlanta Mail Recovery Center.
Car — Clickers. Handle as per POM Dispose as Waste POM Death Certificates. Drugs — Illegal. Contact Inspection Service. Donate or Dispose POM Exchange Office IMM This method allows you to preview the contents of many files, but probably not in such a structure as a program dedicated to support them.
Home page. Program s that can open the. MRC file. Windows mIRC. Possible problems with the MRC format files The inability to open and operate the MRC file does not necessarily mean that you do not have an appropriate software installed on your computer. Accidental deletion of the description of the MRC from the Windows registry Incomplete installation of an application that supports the MRC format The MRC file which is being opened is infected with an undesirable malware.
The computer does not have enough hardware resources to cope with the opening of the MRC file. Drivers of equipment used by the computer to open a MRC file are out of date. Similar extensions. How to associate the file with an installed software?
0コメント