paster4
Description
paster4 is the 32-bit floating-point (data_type = 3, .r4) counterpart to pastemos. It initializes a cols Γ rows floating-point OMG1 (JHC_header) canvas and interactively prompts the user to paste either external .r4 sub-grids or constant-value rectangular blank patches at arbitrary pixel offsets (left_x, top_y).
CLI Options & Usage
paster4 -out <outfile.r4> -rows <nrows> -cols <ncols> [-back <val>]
-out <outfile.r4>: Output 32-bit floatOMG1.r4file.-rows <nrows> -cols <ncols>: Output canvas height (ymax) and width (xmax) in cells.-back <val>: Initial background value for the canvas (default:0.0; note thathead.backis set to255).
Interactive Workflow
In an interactive loop until the user declines Another file? (y/n):
Paste in blank area? (y/n):- If
y: Prompts forblank value,left_x, top_y, andwidth, height, filling that sub-rectangle with the constant float value. - If
n: Prompts forInput filename:(an existing.r4OMG1file) andleft_x, top_y, copying the sub-grid into the canvas (adopting the first pasted fileβsdx,dy, andprojectioninto the outputJHC_header).
- If
- Writes the composite
OMG1.r4grid to<outfile.r4>.