[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_hf_cosp,lCOSP,"cllcalipso", & |
---|
| 13 | itau_wcosp,stlidar%cldlayer(:,1)) |
---|
[1262] | 14 | endif |
---|
| 15 | if (cfg%Lclhcalipso) then |
---|
[1539] | 16 | CALL histwrite_phy(nid_hf_cosp,lCOSP,"clhcalipso", & |
---|
| 17 | itau_wcosp,stlidar%cldlayer(:,3)) |
---|
[1262] | 18 | endif |
---|
| 19 | if (cfg%Lclmcalipso) then |
---|
[1539] | 20 | CALL histwrite_phy(nid_hf_cosp,lCOSP,"clmcalipso", & |
---|
| 21 | itau_wcosp,stlidar%cldlayer(:,2)) |
---|
[1262] | 22 | endif |
---|
| 23 | if (cfg%Lcltcalipso) then |
---|
[1539] | 24 | CALL histwrite_phy(nid_hf_cosp,lCOSP,"cltcalipso", & |
---|
| 25 | itau_wcosp,stlidar%cldlayer(:,4)) |
---|
[1262] | 26 | endif |
---|
| 27 | if (cfg%Lclcalipso) then |
---|
[1539] | 28 | CALL histwrite_phy(nid_hf_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_hf_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_hf_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_hf_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_hf_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_hf_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_hf_cosp,lCOSP,"boxtauisccp", & |
---|
| 101 | itau_wcosp,isccp%boxtau) |
---|
[1262] | 102 | endif |
---|
| 103 | if (cfg%Lboxptopisccp) then |
---|
[1539] | 104 | CALL histwrite_phy(nid_hf_cosp,lCOSP,"boxptopisccp", & |
---|
| 105 | itau_wcosp,isccp%boxptop) |
---|
[1262] | 106 | endif |
---|
| 107 | if (cfg%Ltclisccp) then |
---|
[1539] | 108 | CALL histwrite_phy(nid_hf_cosp,lCOSP,"tclisccp", & |
---|
| 109 | itau_wcosp,isccp%totalcldarea) |
---|
[1262] | 110 | endif |
---|
| 111 | if (cfg%Lctpisccp) then |
---|
[1539] | 112 | CALL histwrite_phy(nid_hf_cosp,lCOSP,"ctpisccp", & |
---|
| 113 | itau_wcosp,isccp%meanptop) |
---|
[1262] | 114 | |
---|
| 115 | endif |
---|
| 116 | if (cfg%Ltauisccp) then |
---|
[1539] | 117 | CALL histwrite_phy(nid_hf_cosp,lCOSP,"tauisccp", & |
---|
| 118 | itau_wcosp,isccp%meantaucld) |
---|
[1262] | 119 | endif |
---|
| 120 | if (cfg%Lalbisccp) then |
---|
[1539] | 121 | CALL histwrite_phy(nid_hf_cosp,lCOSP,"albisccp", & |
---|
| 122 | itau_wcosp,isccp%meanalbedocld) |
---|
[1262] | 123 | endif |
---|
| 124 | if (cfg%Lmeantbisccp) then |
---|
[1539] | 125 | CALL histwrite_phy(nid_hf_cosp,lCOSP,"meantbisccp", & |
---|
| 126 | itau_wcosp,isccp%meantb) |
---|
[1262] | 127 | endif |
---|
| 128 | if (cfg%Lmeantbclrisccp) then |
---|
[1539] | 129 | CALL histwrite_phy(nid_hf_cosp,lCOSP,"meantbclrisccp", & |
---|
| 130 | itau_wcosp,isccp%meantbclr) |
---|
[1262] | 131 | endif |
---|
| 132 | endif ! Isccp |
---|
| 133 | |
---|
| 134 | ! if (ok_sync) then |
---|
| 135 | !$OMP MASTER |
---|
| 136 | call histsync(nid_hf_cosp) |
---|
| 137 | !$OMP END MASTER |
---|
| 138 | ! endif |
---|
| 139 | |
---|
| 140 | ENDIF ! if freq_COSP |
---|