107 SUBROUTINE makgds(IOPT,KGDS,GDS,LENGDS,IRET)
110 CHARACTER,
INTENT(INOUT) :: GDS(400)
112 INTEGER,
INTENT(IN ) :: IOPT
113 INTEGER,
INTENT(INOUT) :: KGDS(200)
114 INTEGER,
INTENT( OUT) :: IRET, LENGDS
116 INTEGER :: ICOMP, IPDS(200), IGDS(200)
117 INTEGER :: KPTR(200), KPDS(200), NPTS
119 DATA kptr/200*0/, kpds/200*0/
123 CALL fi633(gds,kptr,kgds,iret)
126 ELSEIF(iopt.EQ.255)
THEN
127 CALL r63w72(kpds,kgds,ipds,igds)
128 icomp=mod(igds(8)/8,2)
129 CALL w3fi74(igds,icomp,gds,lengds,npts,iret)
132 ELSEIF(iopt.GT.0.AND.iopt.LT.255)
THEN
133 CALL w3fi71(iopt,igds,iret)
135 icomp=mod(igds(8)/8,2)
136 CALL w3fi74(igds,icomp,gds,lengds,npts,iret)
137 IF(iret.EQ.0)
CALL fi633(gds,kptr,kgds,iret)
141 END SUBROUTINE makgds
subroutine r63w72(KPDS, KGDS, IPDS, IGDS)
Determines the integer PDS and GDS parameters for the GRIB1 packing routine w3fi72() given the parame...
subroutine fi633(MSGA, KPTR, KGDS, KRET)
Extract info from grib-gds.
subroutine w3fi71(IGRID, IGDS, IERR)
Makes a 18, 37, 55, 64, or 91 word integer array used by w3fi72() GRIB packer to make the grid descri...
subroutine w3fi74(IGDS, ICOMP, GDS, LENGDS, NPTS, IGERR)
This subroutine constructs a GRIB grid definition section.