source: trunk/procs/tools_wavelets/postproc_qsto.f90 @ 27

Last change on this file since 27 was 2, checked in by post_it, 17 years ago

Initial import from ~/POST_IT/

File size: 1.0 KB
Line 
1program postproc_qsto
2! compile using ifort
3implicit none
4
5integer :: i, irec, ii, jj, ll
6character(len=2) :: cc
7integer, parameter :: iip1 = 97, jjp1 =73, llm = 19
8real(kind=8), dimension( iip1,jjp1,llm )     :: q
9!real(kind=8), dimension( iip1,jjp1,llm, 12 ) :: qmoy
10
11!qmoy = 0.
12!do i = 1, 12
13
14!  if (i < 10) then
15!    write(cc,'(i1.1)') i
16!    open(1,file='trajq2003-'//cc(1:1)//'.bin',form='unformatted',access='direct',recl=2*iip1*jjp1*llm)
17!  else
18!    write(cc,'(i2.2)') i
19!    open(1,file='trajq2003-'//cc//'.bin',form='unformatted',access='direct',recl=2*iip1*jjp1*llm)
20!  endif
21
22open(1,file='../trajq1990-1.bin_saved',form='unformatted',access='direct',recl=2*iip1*jjp1*llm)
23
24  irec = 1
25  do
26    read(1,rec=irec,err=10) q
27    irec = irec + 1
28    WRITE(*,*)irec
29    WRITE(*,*)q(:,:,1)
30    stop
31!    qmoy(:,:,:,i) = qm*shoy(:,:,:,i) + q
32  enddo
3310 close(1)
34
35  irec = irec - 1
36!  print*, irec
37!  qmoy(:,:,:,i) = qmoy(:,:,:,i) / irec
38
39!enddo
40
41
42!open(2,file='dataq.bin',form='unformatted')
43!  write(2) qmoy
44!close(2)
45
46end
Note: See TracBrowser for help on using the repository browser.