Ignore:
Timestamp:
Jul 17, 2017, 5:52:31 PM (7 years ago)
Author:
musat
Message:

Ajout modifs de Rodrigo Guzman et Marine Bonazolla dans la version COSP/CMIP6
IM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/cosp/cosp_stats.F90

    r2428 r2955  
    121121                                           Nlr,vgrid%zl,vgrid%zu,temp_out)
    122122            temp_c(:,:) = temp_out(:,1,:)
     123            stlidar%proftemp = temp_c                                     !TIBO
     124            where (stlidar%proftemp  < 150.) stlidar%proftemp   = R_UNDEF !TIBO
     125            where (stlidar%proftemp  > 350.) stlidar%proftemp   = R_UNDEF !TIBO
    123126
    124127            call cosp_change_vertical_grid(Npoints,1,Nlevels,gbx%zlev,gbx%zlev_half,ph_in, &
     
    131134                            ,LIDAR_UNDEF,ok_lidar_cfad &
    132135                            ,stlidar%cfad_sr,stlidar%srbval &
    133                             ,LIDAR_NCAT,stlidar%lidarcld,stlidar%lidarcldphase &
    134                             ,stlidar%cldlayer,stlidar%cldlayerphase,stlidar%lidarcldtmp &
    135                             ,stlidar%parasolrefl)
     136                            ,LIDAR_NCAT,LIDAR_NTYPE,stlidar%lidarcld,stlidar%lidarcldtype & !OPAQ
     137                            ,stlidar%lidarcldphase,stlidar%cldlayer,stlidar%cldtype &       !OPAQ
     138                            ,stlidar%cldlayerphase,stlidar%lidarcldtmp &                    !OPAQ
     139                            ,stlidar%parasolrefl,vgrid%z,stlidar%profSR)                    !OPAQ !TIBO
    136140        endif
    137141
     
    140144                                    temp_c,betatot_out,betaperptot_out,betamol_c,Ze_out, &
    141145                                    stradar%lidar_only_freq_cloud,stradar%radar_lidar_tcc)
    142         deallocate(temp_out,temp_c,betaperptot_out)
     146        deallocate(temp_in,temp_out,temp_c,betaperptot_out) !TIBO +temp_in
    143147
    144148        ! Deallocate arrays at coarse resolution
     
    154158                        ,LIDAR_UNDEF,ok_lidar_cfad &
    155159                        ,stlidar%cfad_sr,stlidar%srbval &
    156                         ,LIDAR_NCAT,stlidar%lidarcld,stlidar%lidarcldphase,stlidar%cldlayer,stlidar%cldlayerphase &
    157                         ,stlidar%lidarcldtmp,stlidar%parasolrefl)
     160                        ,LIDAR_NCAT,LIDAR_NTYPE,stlidar%lidarcld,stlidar%lidarcldtype & !OPAQ
     161                        ,stlidar%lidarcldphase,stlidar%cldlayer,stlidar%cldtype &       !OPAQ
     162                        ,stlidar%cldlayerphase,stlidar%lidarcldtmp &                    !OPAQ
     163                        ,stlidar%parasolrefl,vgrid%z,stlidar%profSR)                    !OPAQ !TIBO
    158164        !++++++++++++ Lidar-only cloud amount and lidar&radar total cloud mount ++++++++++++++++
    159165        if (cfg%Lradar_sim.and.cfg%Llidar_sim) call cosp_lidar_only_cloud(Npoints,Ncolumns,Nlr, &
     
    163169   ! Replace undef
    164170   where (stlidar%cfad_sr   == LIDAR_UNDEF) stlidar%cfad_sr   = R_UNDEF
     171   where (stlidar%profSR   == LIDAR_UNDEF) stlidar%profSR   = R_UNDEF !TIBO
    165172   where (stlidar%lidarcld  == LIDAR_UNDEF) stlidar%lidarcld  = R_UNDEF
     173   where (stlidar%lidarcldtype  == LIDAR_UNDEF) stlidar%lidarcldtype  = R_UNDEF !OPAQ
    166174   where (stlidar%cldlayer  == LIDAR_UNDEF) stlidar%cldlayer  = R_UNDEF
     175   where (stlidar%cldtype  == LIDAR_UNDEF) stlidar%cldtype  = R_UNDEF           !OPAQ
    167176   where (stlidar%parasolrefl == LIDAR_UNDEF) stlidar%parasolrefl = R_UNDEF
    168177   where (stlidar%cldlayerphase  == LIDAR_UNDEF) stlidar%cldlayerphase  = R_UNDEF
Note: See TracChangeset for help on using the changeset viewer.