37 subroutine cmplxpack(fld,ndpts,idrsnum,idrstmpl,cpack,lcpack)
39 integer,
intent(in) :: ndpts,idrsnum
40 real,
intent(in) :: fld(ndpts)
41 character(len=1),
intent(out) :: cpack(*)
42 integer,
intent(inout) :: idrstmpl(*)
43 integer,
intent(out) :: lcpack
47 if ( idrstmpl(7) .eq. 0 )
then
48 call compack(fld,ndpts,idrsnum,idrstmpl,cpack,lcpack)
49 elseif ( idrstmpl(7).eq.1 .OR. idrstmpl(7).eq.2)
then
50 call misspack(fld,ndpts,idrsnum,idrstmpl,cpack,lcpack)
52 print *,
'cmplxpack: Do not recognize Missing value option.'
subroutine cmplxpack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack)
Pack up a data field using a complex packing algorithm.
subroutine compack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack)
This subroutine supports GRIB2 complex packing templates with or without spatial differences,...
subroutine misspack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack)
Pack up a data field using a GRIB2 algorithm with missing value management.