Changeset 3306


Ignore:
Timestamp:
Apr 4, 2018, 10:48:33 AM (6 years ago)
Author:
idelkadi
Message:

Corrections des diagnostiques de sorties pour les champs 4D (pour la compatibilite avec DR CMIP6) :

  • nomes des axes (pour MISR)
  • inversion des axes pour les cfads (lidar et radar)
Location:
LMDZ6/branches/IPSLCM6.0.15/libf/phylmd/cosp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/IPSLCM6.0.15/libf/phylmd/cosp/cosp_output_mod.F90

    r3246 r3306  
    342342! AI nov 2015
    343343   CALL wxios_add_vaxis("temp", LIDAR_NTEMP, LIDAR_PHASE_TEMP)
    344    CALL wxios_add_vaxis("cth16", MISR_N_CTH, MISR_CTH)
     344   CALL wxios_add_vaxis("cth", MISR_N_CTH, MISR_CTH)
    345345   CALL wxios_add_vaxis("dbze", DBZE_BINS, dbze_ax)
    346346   CALL wxios_add_vaxis("scatratio", SR_BINS, sratio_ax)
     
    390390      CALL histvert(cosp_nidfiles(iff),"temp","temperature","C",LIDAR_NTEMP,LIDAR_PHASE_TEMP,nverttemp(iff))
    391391
    392       CALL histvert(cosp_nidfiles(iff),"cth16","altitude","m",MISR_N_CTH,MISR_CTH,nvertmisr(iff))
     392      CALL histvert(cosp_nidfiles(iff),"cth","altitude","m",MISR_N_CTH,MISR_CTH,nvertmisr(iff))
    393393 
    394394      CALL histvert(cosp_nidfiles(iff),"ReffIce","Effective_particle_size_Ice","microns",numMODISReffIceBins, reffICE_binCenters, &
  • LMDZ6/branches/IPSLCM6.0.15/libf/phylmd/cosp/cosp_output_write_mod.F90

    r3292 r3306  
    5151  integer               :: itau_wcosp, iff
    5252  real, dimension(Npoints,PARASOL_NREFL) :: parasolcrefl, Ncref
     53
     54! Variables locals intermidiaires pour inverser les axes des champs 4D
     55! Compatibilite avec sorties CMIP
     56  real, dimension(Npoints,Nlevout,SR_BINS) :: tmp_fi4da_cfadL
     57  real, dimension(Npoints,Nlevout,DBZE_BINS) :: tmp_fi4da_cfadR
     58  real, dimension(Npoints,MISR_N_CTH,7) :: tmp_fi4da_misr
    5359
    5460#ifdef CPP_XIOS
     
    158164
    159165#ifdef CPP_XIOS
    160    if (cfg%LcfadLidarsr532) CALL histwrite4d_cosp(o_cfad_lidarsr532,stlidar%cfad_sr)
     166   do icl=1,SR_BINS
     167      tmp_fi4da_cfadL(:,:,icl)=stlidar%cfad_sr(:,icl,:)
     168   enddo
     169!   if (cfg%LcfadLidarsr532) CALL histwrite4d_cosp(o_cfad_lidarsr532,stlidar%cfad_sr)
     170   if (cfg%LcfadLidarsr532) CALL histwrite4d_cosp(o_cfad_lidarsr532,tmp_fi4da_cfadL)
    161171   if (cfg%LprofSR) CALL histwrite4d_cosp(o_profSR,stlidar%profSR)                              !TIBO
    162172#else
     
    210220   where(stradar%cfad_ze == R_UNDEF) stradar%cfad_ze = missing_val
    211221#ifdef CPP_XIOS
     222   do icl=1,DBZE_BINS
     223     tmp_fi4da_cfadR(:,:,icl)=stradar%cfad_ze(:,icl,:)
     224   enddo
    212225   if (cfg%Ldbze94) CALL histwrite4d_cosp(o_dbze94,sgradar%Ze_tot)
    213    if (cfg%LcfadDbze94) CALL histwrite4d_cosp(o_cfadDbze94,stradar%cfad_ze)
     226!   if (cfg%LcfadDbze94) CALL histwrite4d_cosp(o_cfadDbze94,stradar%cfad_ze)
     227   if (cfg%LcfadDbze94) CALL histwrite4d_cosp(o_cfadDbze94,tmp_fi4da_cfadR)
    214228#else
    215229   if (cfg%Ldbze94) then
     
    275289
    276290#ifdef CPP_XIOS
    277    if (cfg%LclMISR) CALL histwrite4d_cosp(o_clMISR,misr%fq_MISR)
     291   do icl=1,MISR_N_CTH
     292      tmp_fi4da_misr(:,icl,:)=misr%fq_MISR(:,:,icl)
     293   enddo
     294!   if (cfg%LclMISR) CALL histwrite4d_cosp(o_clMISR,misr%fq_MISR)
     295   if (cfg%LclMISR) CALL histwrite4d_cosp(o_clMISR,tmp_fi4da_misr)
    278296#else
    279297   if (cfg%LclMISR) then
  • LMDZ6/branches/IPSLCM6.0.15/libf/phylmd/cosp/phys_cosp.F90

    r3246 r3306  
    343343
    344344!+++++++++++++ Open output files and define output files axis !+++++++++++++
    345     if (debut_cosp) then
     345!    if (debut_cosp) then
    346346
    347347      !$OMP MASTER
     
    354354        debut_cosp=.false.
    355355!      endif ! debut_cosp
    356     else
     356!    else
    357357!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    358358        ! Call simulator
     
    375375                               cfg, gbx, vgrid, sglidar, sgradar, stlidar, stradar, &
    376376                               isccp, misr, modis)
    377     endif !debut_cosp
     377!    endif !debut_cosp
    378378!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    379379        ! Deallocate memory in derived types
Note: See TracChangeset for help on using the changeset viewer.