NCEPLIBS-g2  3.4.7
cmplxpack.f
Go to the documentation of this file.
1 
4 
37  subroutine cmplxpack(fld,ndpts,idrsnum,idrstmpl,cpack,lcpack)
38 
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
44 
45 
46 
47  if ( idrstmpl(7) .eq. 0 ) then ! No internal missing values
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)
51  else
52  print *,'cmplxpack: Do not recognize Missing value option.'
53  lcpack=-1
54  endif
55 
56  return
57  end
subroutine cmplxpack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack)
Pack up a data field using a complex packing algorithm.
Definition: cmplxpack.f:38
subroutine compack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack)
This subroutine supports GRIB2 complex packing templates with or without spatial differences,...
Definition: compack.f:35
subroutine misspack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack)
Pack up a data field using a GRIB2 algorithm with missing value management.
Definition: misspack.f:45