[ncl-talk] Is it possible optimizing the performance of the NCL program via parallel processing?

Francesco Trotta francesco.trotta4 at unibo.it
Tue Feb 14 16:16:44 MST 2017


Dear Ncl
   I'm using NCL - version 6.3.0.
   I'm using a computer with multiple cores and
   I would like to optimizing the performance of my NCL code via parallel processing.

   In particular the part of my script which is very time consuming and I would like to improve is this:

   ;======================================
   iday=-1
   SpatialInterpTemp(iday,date_less1,file_indataOce_temp_less1,file_extrapdataOce_temp_less1, \
                                     file_regriddataOce_temp_less1)
   SpatialInterpSal(iday,date_less1,file_indataOce_sal_less1,file_extrapdataOce_sal_less1, \
                                file_regriddataOce_sal_less1)
   SpatialInterpSsh(iday,date_less1,file_indataOce_ssh_less1,file_extrapdataOce_ssh_less1, \
                                 file_regriddataOce_ssh_less1)
   SpatialInterpVelU(iday,date_less1,file_indataOce_velU_less1,file_extrapdataOce_velU_less1, \
                                    file_regriddataOce_velU_less1)
   SpatialInterpVelV(iday,date_less1,file_indataOce_velV_less1,file_extrapdataOce_velV_less1, \
                                   file_regriddataOce_velV_less1)

   do iday=0,ndays-1

      SpatialInterpTemp(iday,date(iday),file_indataOce_temp(iday),file_extrapdataOce_temp(iday), \
                                        file_regriddataOce_temp(iday))
      SpatialInterpSal(iday,date(iday),file_indataOce_sal(iday),file_extrapdataOce_sal(iday), \
                                    file_regriddataOce_sal(iday))
      SpatialInterpSsh(iday,date(iday),file_indataOce_ssh(iday),file_extrapdataOce_ssh(iday), \
                                    file_regriddataOce_ssh(iday))
      SpatialInterpVelU(iday,date(iday),file_indataOce_velU(iday),file_extrapdataOce_velU(iday), \
                                       file_regriddataOce_velU(iday))
      SpatialInterpVelV(iday,date(iday),file_indataOce_velV(iday),file_extrapdataOce_velV(iday), \
                                      file_regriddataOce_velV(iday))

   end do
   ;======================================

   Is there a way to do this optimization with ncl?

Thanks
Francesco


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170214/47f5d095/attachment.html 


More information about the ncl-talk mailing list