| subroutine | twist | ( nalgorithms,algorithms,ldat,leading,trailing,length, idata,printlevel,algorithm,maxsize,iwork,error ) |
| nalgorithms | (i) | - | dimension of 'algorithms()', i.e., no. of compression algorithms to attempt |
| algorithms | (I) | - |
list of compression algorithma to attempt
values: 1 (2-1), 2 (3-1), 3 (4-1), 4 (3-2), 5 (5-1), 6 (4-2) etc. presently implemented: 1, 4, 6, 9 if algorithms(1) = 0: |
| ldat | (i) | - |
no. of values to consider in 'idata()' vector (including leading & trailing)
will be reset if compression is successful (see information on output variables below) |
| leading | (i) | - | no. of leading entries in 'idata()' that should not be compressed |
| trailing | (i) | - | no. of trailing entries in 'idata()' that should not be compressed |
| length | (i) | - | dimension of 'idata()' (suggested value: leading+nx*ny+trailing); left unchanged by "twist" |
| idata | (I2) | - | leading entries, field, trailing entries |
| printlevel | (i) | - |
indicates amount of information written to the default output device:
|
| maxsize | (i) | - | dimension of 'iwork'; minimum value: nx*ny+trailing |
| algorithm | (i) | - | compression algorithm used [best compression of the algorithms listed on input] |
| ldat | (i) | - | length of the compressed 'idata()' vector |
| idata | (I2) | - | leading entries, compressed field, trailing entries |
| error | (i) | - |
in "twist", set to:
in "squeeze", set to: |
| iwork | (I2) | - | work space vector, temporary storage in "squeeze" |