NCEPLIBS-g2  3.4.5
cmplxpack.f
Go to the documentation of this file.
1 
6 
30 
31  subroutine cmplxpack(fld,ndpts,idrsnum,idrstmpl,cpack,lcpack)
32 
33  integer,intent(in) :: ndpts,idrsnum
34  real,intent(in) :: fld(ndpts)
35  character(len=1),intent(out) :: cpack(*)
36  integer,intent(inout) :: idrstmpl(*)
37  integer,intent(out) :: lcpack
38 
39 
40 
41  if ( idrstmpl(7) .eq. 0 ) then ! No internal missing values
42  call compack(fld,ndpts,idrsnum,idrstmpl,cpack,lcpack)
43  elseif ( idrstmpl(7).eq.1 .OR. idrstmpl(7).eq.2) then
44  call misspack(fld,ndpts,idrsnum,idrstmpl,cpack,lcpack)
45  else
46  print *,'cmplxpack: Do not recognize Missing value option.'
47  lcpack=-1
48  endif
49 
50  return
51  end
cmplxpack
subroutine cmplxpack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack)
This subroutine packs up a data field using a complex packing algorithm as defined in the GRIB2 docum...
Definition: cmplxpack.f:32
compack
subroutine compack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack)
This subroutine packs up a data field.
Definition: compack.f:32
misspack
subroutine misspack(fld, ndpts, idrsnum, idrstmpl, cpack, lcpack)
This subroutine packs up a data field using a complex packing algorithm as defined in the GRIB2 docum...
Definition: misspack.f:44