[1262] | 1 | ! Ecriture des fichiers de sorties COSP |
---|
| 2 | ! Sorties journalierres |
---|
| 3 | ! Abderrahmane Idelkadi Septembre 2009 |
---|
| 4 | |
---|
| 5 | IF (MOD(itap,NINT(freq_COSP/dtime)).EQ.0) THEN |
---|
| 6 | |
---|
| 7 | itau_wcosp = itau_phy + itap |
---|
| 8 | |
---|
| 9 | ! Sorties LIDAR |
---|
| 10 | if (cfg%Llidar_sim) then |
---|
| 11 | if (cfg%Lcllcalipso) then |
---|
[1539] | 12 | CALL histwrite_phy(nid_day_cosp,lCOSP,"cllcalipso", & |
---|
| 13 | itau_wcosp,stlidar%cldlayer(:,1)) |
---|
[1262] | 14 | endif |
---|
| 15 | if (cfg%Lclhcalipso) then |
---|
[1539] | 16 | CALL histwrite_phy(nid_day_cosp,lCOSP,"clhcalipso", & |
---|
| 17 | itau_wcosp,stlidar%cldlayer(:,3)) |
---|
[1262] | 18 | endif |
---|
| 19 | if (cfg%Lclmcalipso) then |
---|
[1539] | 20 | CALL histwrite_phy(nid_day_cosp,lCOSP,"clmcalipso", & |
---|
| 21 | itau_wcosp,stlidar%cldlayer(:,2)) |
---|
[1262] | 22 | endif |
---|
| 23 | if (cfg%Lcltcalipso) then |
---|
[1539] | 24 | CALL histwrite_phy(nid_day_cosp,lCOSP,"cltcalipso", & |
---|
| 25 | itau_wcosp,stlidar%cldlayer(:,4)) |
---|
[1262] | 26 | endif |
---|
| 27 | if (cfg%Lclcalipso) then |
---|
[1539] | 28 | CALL histwrite_phy(nid_day_cosp,lCOSP,"clcalipso", & |
---|
| 29 | itau_wcosp,stlidar%lidarcld) |
---|
[1262] | 30 | endif |
---|
| 31 | if (cfg%Lcfad_lidarsr532) then |
---|
| 32 | do ii=1,SR_BINS |
---|
[1539] | 33 | CALL histwrite_phy(nid_day_cosp,lCOSP, & |
---|
| 34 | "cfad_lidarsr532_"//chcol(ii),itau_wcosp,stlidar%cfad_sr(:,ii,:)) |
---|
[1262] | 35 | enddo |
---|
| 36 | endif |
---|
| 37 | if (cfg%Lparasol_refl) then |
---|
[1539] | 38 | CALL histwrite_phy(nid_day_cosp,lCOSP,"parasol_refl", & |
---|
| 39 | itau_wcosp,stlidar%parasolrefl) |
---|
[1262] | 40 | endif |
---|
| 41 | if (cfg%Latb532) then |
---|
| 42 | do ii=1,Ncolumns |
---|
[1539] | 43 | CALL histwrite_phy(nid_day_cosp,lCOSP,"atb532_"//chcol(ii), & |
---|
| 44 | itau_wcosp,sglidar%beta_tot(:,ii,:)) |
---|
[1262] | 45 | enddo |
---|
| 46 | endif |
---|
| 47 | if (cfg%Lbeta_mol532) then |
---|
[1539] | 48 | CALL histwrite_phy(nid_day_cosp,lCOSP,"beta_mol532", & |
---|
| 49 | itau_wcosp,sglidar%beta_mol) |
---|
[1262] | 50 | endif |
---|
| 51 | endif ! Lidar |
---|
| 52 | |
---|
| 53 | ! Sorties RADAR |
---|
| 54 | !Attention A FAIRE |
---|
| 55 | ! if (cfg%Lradar_sim) then |
---|
| 56 | ! print*,'Ecriture sorties Radar' |
---|
| 57 | ! if (cfg%Lcfad_dbze94) then |
---|
| 58 | ! print*,'Ecriture de cfad_dbze94.nc ' |
---|
| 59 | ! A revoir l axe vertical Nlvgrid |
---|
| 60 | ! do ii=1,DBZE_BINS |
---|
| 61 | ! dbze_ax(ii) = CFAD_ZE_MIN + CFAD_ZE_WIDTH*(ii - 0.5) |
---|
| 62 | ! enddo |
---|
| 63 | ! call write_netcdf4d('cfad_dbze94.nc',use_vgrid,nlon,nlat,Nlevout,DBZE_BINS, & |
---|
| 64 | ! x,y,out_levs,dbze_ax,i,ndays,time,stradar%cfad_ze) |
---|
| 65 | ! endif |
---|
| 66 | ! if (cfg%Lclcalipso2) then |
---|
| 67 | ! call write_netcdf3d('clcalipso2.nc',use_vgrid,'clcalipso2', & |
---|
| 68 | ! nlon,nlat,Nlevout,x,y,out_levs,i,ndays,time,stradar%lidar_only_freq_cloud) |
---|
| 69 | ! endif |
---|
| 70 | ! if (cfg%Ldbze94) then |
---|
| 71 | ! do ii=1,Ncolumns |
---|
| 72 | ! xcol(ii)=float(i) |
---|
| 73 | ! enddo |
---|
| 74 | ! call write_netcdf4d('dbze94.nc',use_vgrid,nlon,nlat,Nlevout,Ncolumns, & |
---|
| 75 | ! x,y,out_levs,xcol,i,ndays,time,sgradar%Ze_tot) |
---|
| 76 | ! endif |
---|
| 77 | ! if (cfg%Lcltlidarradar) then |
---|
| 78 | ! call write_netcdf2d('cltlidarradar.nc','cltlidarradar', & |
---|
| 79 | ! nlon,nlat,x,y,i,ndays,time,stradar%radar_lidar_tcc) |
---|
| 80 | ! endif |
---|
| 81 | ! endif ! Radar |
---|
| 82 | |
---|
| 83 | ! Sorties MISR |
---|
| 84 | !Attention A FAIRE |
---|
| 85 | ! if (cfg%Lmisr_sim) then |
---|
| 86 | ! print*,'Ecriture sorties Misr' |
---|
| 87 | ! call write_netcdf4d('clMISR.nc',use_vgrid,nlon,nlat,MISR_N_CTH,7, & |
---|
| 88 | ! x,y,MISR_CTH,ISCCP_TAU,i,ndays,time,misr%fq_MISR) |
---|
| 89 | ! endif |
---|
| 90 | |
---|
| 91 | ! Sorties ISCCP |
---|
| 92 | if (cfg%Lisccp_sim) then |
---|
| 93 | if (cfg%Lclisccp2) then |
---|
| 94 | do ii=1,7 |
---|
[1539] | 95 | CALL histwrite_phy(nid_day_cosp,lCOSP, & |
---|
| 96 | "clisccp2_"//chcol(ii),itau_wcosp,isccp%fq_isccp(:,ii,:)) |
---|
[1262] | 97 | enddo |
---|
| 98 | endif |
---|
| 99 | if (cfg%Lboxtauisccp) then |
---|
[1539] | 100 | CALL histwrite_phy(nid_day_cosp,lCOSP,"boxtauisccp", & |
---|
| 101 | itau_wcosp,isccp%boxtau) |
---|
[1262] | 102 | endif |
---|
| 103 | if (cfg%Lboxptopisccp) then |
---|
[1539] | 104 | CALL histwrite_phy(nid_day_cosp,lCOSP,"boxptopisccp", & |
---|
| 105 | itau_wcosp,isccp%boxptop) |
---|
[1262] | 106 | endif |
---|
| 107 | if (cfg%Ltclisccp) then |
---|
[1539] | 108 | CALL histwrite_phy(nid_day_cosp,lCOSP,"tclisccp", & |
---|
| 109 | itau_wcosp,isccp%totalcldarea) |
---|
[1262] | 110 | endif |
---|
| 111 | if (cfg%Lctpisccp) then |
---|
[1539] | 112 | CALL histwrite_phy(nid_day_cosp,lCOSP,"ctpisccp", & |
---|
| 113 | itau_wcosp,isccp%meanptop) |
---|
[1262] | 114 | endif |
---|
| 115 | if (cfg%Ltauisccp) then |
---|
[1539] | 116 | CALL histwrite_phy(nid_day_cosp,lCOSP,"tauisccp", & |
---|
| 117 | itau_wcosp,isccp%meantaucld) |
---|
[1262] | 118 | endif |
---|
| 119 | if (cfg%Lalbisccp) then |
---|
[1539] | 120 | CALL histwrite_phy(nid_day_cosp,lCOSP,"albisccp", & |
---|
| 121 | itau_wcosp,isccp%meanalbedocld) |
---|
[1262] | 122 | endif |
---|
| 123 | if (cfg%Lmeantbisccp) then |
---|
[1539] | 124 | CALL histwrite_phy(nid_day_cosp,lCOSP,"meantbisccp", & |
---|
| 125 | itau_wcosp,isccp%meantb) |
---|
[1262] | 126 | endif |
---|
| 127 | if (cfg%Lmeantbclrisccp) then |
---|
[1539] | 128 | CALL histwrite_phy(nid_day_cosp,lCOSP,"meantbclrisccp", & |
---|
| 129 | itau_wcosp,isccp%meantbclr) |
---|
[1262] | 130 | endif |
---|
| 131 | endif ! Isccp |
---|
| 132 | |
---|
| 133 | ! if (ok_sync) then |
---|
| 134 | !$OMP MASTER |
---|
| 135 | call histsync(nid_day_cosp) |
---|
| 136 | !$OMP END MASTER |
---|
| 137 | ! endif |
---|
| 138 | |
---|
| 139 | ENDIF ! if freq_COSP |
---|