---
name: "cpchop_depthtrend"
section: "1"
platform: "linux"
package: "libopm-upscaling-bin"
version: "2024.10+ds-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cpchop_depthtrend"
---

# cpchop\_depthtrend(1)

Upscale simple statistics

## NAME

cpchop\_depthtrend - Upscale simple statistics

## SYNOPSIS

cpchop\_depthtrend gridfilename=cornerpointgrid.grdecl \[option=value\]

## DESCRIPTION

This program is a variant of cpchop. Instead of subsampling randomly, it picks subsamples downwards in a model. It is specifically designed for extracting laterally extensive subsamples in specified intervals downwards through a model, in order to analyze depth trends in porosity in particular.

Example usage:

cpchop\_depthtrend gridfilename=cornerpointgrid.grdecl subsamples=100 ilen=5 jlen=5 zlen=5

## OPTIONS

**zresolution** Vertical distance between subsamples. Defaults to 1.\
 **subsamples** Number of subsamples. Defaults to 1.\
 **filebase** If supplied, grdecl-files for each subsample will be written to files named using this filebase, it may include directory names.\
 **resultfile** Name of a textfile to output table of results per subsample to.\
 **ilen** Length in i-direction of subsample, specified in number of cells. Defaults to all cells in i-direction.\
 **jlen** Length in j-direction of subsample, specified in number of cells. Defaults to all cells in j-direction.\
 **zlen** Length in z-direction of subsample, specified in the grids length unit (typically cm or m). Defaults to full height.\
 **imin** Can be used to limit the search area for random subsamples. Defaults to minimum i in inputgrid (full model).\
 **imax** Can be used to limit the search area for random subsamples. Defaults to maximum i in inputgrid (full model).\
 **jmin** Analog to imin, but in j-direction. Defaults to minimum j in inputgrid (full model).\
 **jmax** Analog to imax, but in j-direction. Defaults to maximum j in inputgrid (full model).\
 **zmin** Analog to imin, but in z-direction and specified in the grids length unit. Defaults to minimum in inputgrid.\
 **zmax** Analog to imax, but in z-direction and specified in the grids length unit. Defaults to maximum in inputgrid.\
 **upscale** Boolean for whether to do upscaling on the subsamples, either true or false. If the objective is to obtain a grdecl-file for the subsample, set to false for run time. Defaults to true.\
 **bc** Boundary condition type for upscaling, either fixed or periodic. Defaults to fixed.\
 **resettoorigin** If true, outputted grdecl-file will have its ZCORN-values and COORDS-values shifted so that the model is defined at the origin. If false, the outputted grdecl-file will be located in its original position. Defaults to true.

## REPORTING BUGS

Report on github repository \<https://github.com/OPM/opm-upscaling/issues\>

## SEE ALSO

cpchop
