|
NCEPLIBS-g2
3.4.7
|
This subroutine packs up a data field into PNG image format. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | pngpack (fld, width, height, idrstmpl, cpack, lcpack) |
| This subroutine packs up a data field into PNG image format. More... | |
This subroutine packs up a data field into PNG image format.
Definition in file pngpack.F90.
| subroutine pngpack | ( | 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(out) | lcpack | ||
| ) |
This subroutine packs up a data field into PNG image format.
After the data field is scaled, and the reference value is subtracted out, it is treated as a grayscale image and passed to a PNG encoder. It also fills in GRIB2 Data Representation Template 5.41 or 5.40010 with the appropriate values.
| [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 | The length of packed field cpack. |
Definition at line 28 of file pngpack.F90.
References enc_png(), g2_sbytesc(), and mkieee().
Referenced by addfield().