|
NCEPLIBS-g2
3.4.5
|
Contains subroutines packs up a data field into a JPEG2000 code stream. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | jpcpack (fld, width, height, idrstmpl, cpack, lcpack) |
| This subroutine packs up a data field into a JPEG2000 code stream. More... | |
Contains subroutines packs up a data field into a JPEG2000 code stream.
Definition in file jpcpack.f.
| subroutine jpcpack | ( | real, dimension(width*height), intent(in) | fld, |
| integer, intent(in) | width, | ||
| integer, intent(in) | height, | ||
| integer, dimension(*), intent(inout) | idrstmpl, | ||
| character(len=1), dimension(*), intent(out) | cpack, | ||
| integer, intent(inout) | lcpack | ||
| ) |
This subroutine packs up a data field into a JPEG2000 code stream.
After the data field is scaled, and the reference value is subtracted out, it is treated as a grayscale image and passed to a JPEG2000 encoder. It also fills in GRIB2 Data Representation Template 5.40 or 5.40000 with the appropriate values.
Program history log:
| [in] | fld | Contains the data values to pack |
| [in] | width | number of points in the x direction |
| [in] | height | number of points in the y direction |
| [in,out] | idrstmpl | Contains the array of values for Data Representation Template 5.2 or 5.3
|
| [out] | cpack | The packed data field (character*1 array) |
| [out] | lcpack | length of packed field cpack. |