[ncl-talk] Question on parallelism

Dennis Shea shea at ucar.edu
Mon Jan 20 08:41:29 MST 2020


It is not clear what you mean by "using parallelism in NCL"
What "driver script?"
What do you mean "output to files?"

You must be much clearer in what you have done and what you want as a
result.

A simple test script

   klev = 14
   ntim = 120   ; example 120 months
   nlat = 100
   mlon = 200
   u    = random_normal( 20,10,(/klev,ntim,nlat,mlon/))
   t     = random_normal(-10, 3,(/klev,ntim,nlat,mlon/))

   U    = *dim_avg_n_Wrap*
<http://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml>
(u,1)
   printVarSummary(U)
   T    = *dim_avg_n_Wrap*
<http://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml>
(t,1)
   printVarSummary(T)
====


Variable: U
Number of Dimensions: 3
Dimensions and sizes*: [14] x [100] x [200]*


Variable: T
Type: float
Total Size: 1120000 bytes
            280000 values
Number of Dimensions: 3
Dimensions and sizes: *[14] x [100] x [200]*


On Sun, Jan 19, 2020 at 9:01 PM 时光足迹 via ncl-talk <ncl-talk at ucar.edu> wrote:

> Hi adimistrator,
>    I am using parallelism in NCL, version 6.6.2.
>    Fourteen levels of different variables, such as
> u(nlev,ntime,nlat,nlon), are processed, by using do-loop (do i=0,14-1) in
> the 'driver' script.
>    Annually average and monthly average of every variables were calculated
> in the 'drived' script. However only few levels are output to files.
>    For example, it should get output files:
>   (1) Annual-Mean-Lev0.nc  (2)Annual-Mean-Lev1.nc ...
> (14)Annual-Mean-Lev13.nc
>    But now i only get some of these:
>   (1)Annual-Mean-Lev1.nc   (2)Annual-Mean-Lev3.nc ...
>    That means some levels are missing.
>
>    When I run the 'drived' script alone, I can get Annual-Mean-Lev2.nc
> successfully.
>
>    So I wonder why I can't get all files using parallelism(subprocess) ?
> Yours,
> HUNAG
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200120/016cf34b/attachment.html>


More information about the ncl-talk mailing list