1 subroutine da_openfile (kunit, cdfile, cdaccess, cdstatus, cdform)
3 !------------------------------------------------------------------------
4 ! Purpose: open an file and rewind
12 ! cdfile: name of file for output of discared obs.
13 ! cda!ess: a!ess (sequential or),
14 ! cdstatus: status (old, new or unknown)
15 ! cdform: form (formatted or unformatted)
30 ! original : 98-07 (f. vandenberghe)
31 ! additions : 98-11 norm doctor (f. vandenberghe)
32 !--------------------------------------------------------------------------
36 integer, intent(in) :: Kunit
37 character*(*), intent(in) :: CDFILE, CDACCESS, CDSTATUS, CDFORM
59 ! --------------------
62 call da_error(__FILE__,__LINE__, &
63 (/"Cannot open file"//CDFILE/))
65 end subroutine da_openfile