pfsoutpfm(1) General Commands Manual pfsoutpfm(1)NAME
pfsoutpfm - Write images or frames in OpenEXR format
SYNOPSIS
pfsoutpfm (<file> [--frames <range>]) [<file>...]
DESCRIPTION
Use this command to write frames in PFM format. PFM format is used for HDR Shop plug-ins and is also supported by some recent versions of
NetPBM package (pamtopfm and pfmtopam commands). Source pfs frames should be piped to the Standard Input. This command can handle both
color (XYZ channels) and grayscale (Y channel) images.
Details on the format of the pattern file names, which are used for saving multiple frames, can be found in the manual page of pfsoutppm.
EXAMPLES
pfsin memorial.hdr | pfsoutpfm memorial.pfm
Converts from one HDR format to another
pfsin memorial.hdr | pfsextractchannels Y | pfsoutpfm memorial.pfm
Stores memorial image as a grayscale PFM file.
SEE ALSO pfsout(1)pfsoutppm(1)pfsinpfm(1)BUGS
pfsoutpfm may store floating point numbers incorrectly on big-endian machines.
Please report bugs and comments on implementation to the discussion group http://groups.google.com/group/pfstools
pfsoutpfm(1)
Check Out this Related Man Page
pfsinexr(1) General Commands Manual pfsinexr(1)NAME
pfsinexr - Load images or frames in OpenEXR format
SYNOPSIS
pfsinexr [--keep-rgb] (<file> [--frames <range>] [--skip-missing]) [<file>...]
DESCRIPTION
Use this command to read frames in OpenEXR format. The frames are converted to pfs stream and send to the standard output. This command can
read arbitrary channels from OpenEXR files; color channels XYZ are however specially handled (see option keep-rgb).
pfsinexr reads also all string attributes from OpenEXR file and write them as tags in pfs stream. Attributes of other types are ignored. If
attribute name contains a colon (:), the part before colon is treated as a channel name and the attribute is assigned to that channel (sim-
ilar notation as command line argument of pfstag program).
pfsinexr recognizes OpenEXR standard attribute WhiteLuminance and multiplies the data by that value to get absolute luminance values (see
also --fix-halfmax switch in pfsoutexr). Additionally the tag LUMINANCE is set to ABSOLUTE unless OpenEXR files contains attribute LUMI-
NANCE set to semething else. That is the channel Y is assumued to represent absolute luminance levels in cd/m^2.
If an OpenEXR file contains 'Z' channel, it is renamed to 'DEPTH' to avoid conflict with the Z color channel for the XYZ color space.
Details on the format of the pattern file names, which are used for reading multiple frames, can be found in the manual page of pfsinppm.
To automatically recognize a file format from the extension, use pfsin command instead.
--keep-rgb
By default, color channels R, G and B from an OpenEXR file are converted to XYZ color space, which is suggested format for color
data in pfs. When keep-rgb option is specified, color channels RGB are stored as they are without any conversion.
EXAMPLES
pfsin memorial.exr | pfsout memorial.hdr
Converts from one HDR format to another
BUGS
pfsinexr and pfsoutexr can not take stdin / stdout as an input/output (dash '-' instead of file name).
Please report bugs and comments on implementation to the discussion group http://groups.google.com/group/pfstools
SEE ALSO pfsin(1)pfsinppm(1)pfsoutexr(1)pfsinexr(1)
Lets say we have a file called abc.txt and it's contents are -
HDR..
B1234..
D1234..
HDR..
T1234...
S1234..
HDR..
....
We would like to split this file into sub files starting with HDR word and about 100 HDR's in each file. how can we do this using awk in combination with /^HDR and a... (12 Replies)