amiratype: Return the type of an amiramesh file on disk or a parsed...

View source: R/amiramesh-io.R

amiratypeR Documentation

Return the type of an amiramesh file on disk or a parsed header

Description

Return the type of an amiramesh file on disk or a parsed header

Usage

amiratype(x, bytes = NULL)

Arguments

x

Path to files on disk or a single pre-parsed parameter list

bytes

A raw vector containing at least 11 bytes from the start of the file.

Details

Note that when checking a file we first test if it is an amiramesh file (fast, especially when bytes!=NULL) before reading the header and determining content type (slow).

Value

character vector (NA_character_ when file invalid)

See Also

Other amira: is.amiramesh(), read.amiramesh(), read.hxsurf(), write.hxsurf()


nat documentation built on Aug. 25, 2023, 5:16 p.m.