70 CHARACTER*128 BORT_STR
81 CALL status(lunit,lun,il,im)
82 IF(jsr(lun).NE.0)
GOTO 900
86 IF(jsr(junn).NE.1)
GOTO 902
106 jbay(i) =
mbay(i,lun)
108 CALL wtstat(lunit,lun,-1,0)
129 idate(lun) =
i4dy(jdat)
131 mbay(i,lun) = jbay(i)
134 CALL readmg(lunit,subset,kdate,ier)
135 IF(ier.LT.0)
GOTO 905
137 CALL wtstat(lunit,lun,il,im)
140 jsr(lun) = mod(jsr(lun)+1,2)
146900
WRITE(bort_str,
'("BUFRLIB: REWNBF - ATTEMPING TO SAVE '//
147 .
'PARAMETERS FOR FILE FOR WHICH THEY HAVE ALREADY BEEN SAVED '//
148 .
'(AND NOT YET RESTORED) (UNIT",I3,")")') lunit
150901
WRITE(bort_str,
'("BUFRLIB: REWNBF - ATTEMPING TO SAVE '//
151 .
'PARAMETERS FOR BUFR FILE WHICH IS NOT OPENED FOR EITHER INPUT'//
152 .
' OR OUTPUT) (UNIT",I3,")")') lunit
154902
WRITE(bort_str,
'("BUFRLIB: REWNBF - ATTEMPING TO RESTORE '//
155 .
'PARAMETERS TO BUFR FILE WHICH WERE NEVER SAVED (UNIT",I3,")")')
158903
WRITE(bort_str,
'("BUFRLIB: REWNBF - SAVE/RESTORE SWITCH (INPUT '//
159 .
'ARGUMENT ISR) IS NOT ZERO OR ONE (HERE =",I4,") (UNIT",I3,")")')
162905
WRITE(bort_str,
'("BUFRLIB: REWNBF - HIT END OF FILE BEFORE '//
163 .
'REPOSITIONING BUFR FILE IN UNIT",I3," TO ORIGINAL MESSAGE '//
164 .
'NO.",I5)') lunit,jmsg
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...
void cewind(f77int *nfile)
This subroutine rewinds a BUFR file back to its beginning.
function i4dy(IDATE)
This function converts a date-time with a 2-digit year (YYMMDDHH) to a date-time with a 4-digit year ...
This module contains array and variable declarations used to store BUFR messages internally for multi...
integer, dimension(:), allocatable mbyt
Length (in bytes) of current BUFR message for each internal I/O stream.
integer, dimension(:,:), allocatable mbay
Current BUFR message for each internal I/O stream.
subroutine readmg(LUNXX, SUBSET, JDATE, IRET)
This subroutine reads the next BUFR message from logical unit ABS(LUNXX) into internal arrays.
subroutine rewnbf(LUNIT, ISR)
THIS SUBROUTINE, DEPENDING ON THE VALUE OF ISR, WILL EITHER: 1) STORE THE CURRENT PARAMETERS ASSOCIAT...
subroutine status(LUNIT, LUN, IL, IM)
This subroutine checks whether a specified Fortran logical unit number is currently connected to the ...
subroutine wtstat(LUNIT, LUN, IL, IM)
This subroutine can be used to connect or disconnect a specified Fortran logical unit number to/from ...