[ncl-talk] Error in using spec_1.ncl

Dennis Shea shea at ucar.edu
Fri Oct 28 12:24:57 MDT 2016


[1] Your data looks like

dimensions:
    lon = 1 ;
    lat = 1 ;
    lev = 1 ;
    time = UNLIMITED ; // (366 currently)
variables:
 [SNIP]
    float precip(time, lev, lat, lon) ;

[2] Your input should be

     prc = f->precip(:,0,0,0)    ; prc(:)

[3] *PLEASE* do not send direct emails.

Good luck




On Fri, Oct 28, 2016 at 12:40 AM, Lyndon Mark Olaguera <
olagueralyndonmark429 at gmail.com> wrote:

> Hi all,
>
> I am using the spectral analysis script from the ncl page (
> http://www.ncl.ucar.edu/Applications/Scripts/spec_1.ncl)  but encountered
> this problem:
>
> fatal:Number of dimensions in parameter (0) of (specx_anal) is (4), (1)
> dimensions were expected
> fatal:Execute: Error occurred at or near line 26 in file spec_1.ncl
>
> Does anyone know how to solve this kind of problem?
> I am attaching the files here.
>
>
> Many Thanks
>
>>  phil_aave_aphro.nc
> <https://drive.google.com/file/d/0B9faET7Bc2o8dkNJVDVqeUFIelE/view?usp=drive_web>
> ​​
>  phil_aphro.nc
> <https://drive.google.com/file/d/0B9faET7Bc2o8UDJDWTZyRW8xWG8/view?usp=drive_web>
> ​​
>  phil_aphro_precip.nc
> <https://drive.google.com/file/d/0B9faET7Bc2o8ajZpT2NHWmg5Mmc/view?usp=drive_web>
>>
>
> _______________________________________________
> 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/20161028/3bebe1f1/attachment.html 


More information about the ncl-talk mailing list