776 |
ENDIF |
ENDIF |
777 |
|
|
778 |
C Try to open the PER-FACE file |
C Try to open the PER-FACE file |
779 |
|
C WRITE(*,*) 'trying: "', path_fname, '"' |
780 |
err = NF_OPEN(path_fname, NF_NOWRITE, fid) |
err = NF_OPEN(path_fname, NF_NOWRITE, fid) |
781 |
IF ( err .EQ. NF_NOERR ) THEN |
IF ( err .EQ. NF_NOERR ) THEN |
782 |
f_or_t = 0 |
f_or_t = 1 |
783 |
ELSE |
ELSE |
784 |
|
|
785 |
C Create the PER-TILE file name |
C Create the PER-TILE file name |
789 |
WRITE(path_fname,'(2a,a1,a,a3)') |
WRITE(path_fname,'(2a,a1,a,a3)') |
790 |
& mnc_indir_str(1:npath), fname(1:ntot), 't', |
& mnc_indir_str(1:npath), fname(1:ntot), 't', |
791 |
& tmpnm(1:k), '.nc' |
& tmpnm(1:k), '.nc' |
792 |
|
C WRITE(*,*) 'trying: "', path_fname, '"' |
793 |
err = NF_OPEN(path_fname, NF_NOWRITE, fid) |
err = NF_OPEN(path_fname, NF_NOWRITE, fid) |
794 |
IF ( err .EQ. NF_NOERR ) THEN |
IF ( err .EQ. NF_NOERR ) THEN |
795 |
f_or_t = 1 |
f_or_t = 0 |
796 |
ELSE |
ELSE |
797 |
k = ILNBLNK(path_fname) |
k = ILNBLNK(path_fname) |
798 |
write(msgbuf,'(4a)') |
write(msgbuf,'(4a)') |
813 |
err = NF_INQ_VARID(fid, vtype, idv) |
err = NF_INQ_VARID(fid, vtype, idv) |
814 |
CALL MNC_HANDLE_ERR(err, msgbuf, myThid) |
CALL MNC_HANDLE_ERR(err, msgbuf, myThid) |
815 |
|
|
816 |
|
k = ILNBLNK(path_fname) |
817 |
|
fname(1:k) = path_fname(1:k) |
818 |
|
nfname = k |
819 |
|
|
820 |
#endif |
#endif |
821 |
|
|
822 |
IF ( f_or_t .EQ. 1 ) THEN |
IF ( f_or_t .EQ. 1 ) THEN |
|
write(msgbuf,'(4a)') |
|
|
& 'MNC_CW_RX_R: per-face reads are not yet ', |
|
|
& 'implemented -- so pester Ed to finish them' |
|
|
CALL print_error(msgbuf, mythid) |
|
|
STOP 'ABNORMAL END: S/R MNC_CW_RX_W' |
|
823 |
|
|
824 |
|
C write(msgbuf,'(2a)') |
825 |
|
C & 'MNC_CW_RX_R: per-face reads are not yet ', |
826 |
|
C & 'implemented -- so pester Ed to finish them' |
827 |
|
C CALL print_error(msgbuf, mythid) |
828 |
|
C STOP 'ABNORMAL END: S/R MNC_CW_RX_W' |
829 |
|
|
830 |
C Get the X,Y PER-FACE offsets |
C Get the X,Y PER-FACE offsets |
831 |
CALL MNC_CW_GET_XYFO(lbi,lbj, ixoff,iyoff, myThid) |
CALL MNC_CW_GET_XYFO(lbi,lbj, ixoff,iyoff, myThid) |
832 |
|
|
833 |
ENDIF |
ENDIF |
834 |
|
|
835 |
|
C WRITE(*,*) 'f_or_t = ',f_or_t |
836 |
|
|
837 |
C Check that the current sNy,sNy values and the in-file values |
C Check that the current sNy,sNy values and the in-file values |
838 |
C are compatible and WARN (only warn) if not |
C are compatible and WARN (only warn) if not |
839 |
C f_sNx = -1 |
C f_sNx = -1 |