Re: problem in filedimdef

From: Dave Allured - NOAA Affiliate <dave.allured_at_nyahnyahspammersnyahnyah>
Date: Tue Jan 29 2013 - 15:26:36 MST

filedimdef is a procedure, not a function. It does not return a
program result, so you do not use it in an assignment statement.
Please remove the equal sign following the procedure name. See the
examples on the documentation page for filedimdef.

--Dave

On Tue, Jan 29, 2013 at 1:58 PM, Liu, Peng <pliu34@gatech.edu> wrote:
> Dear NCL users,
> I have a problem with the function filedimdef when I am trying to create a netcdf file. I looked through the materials in NCL website and forum but not have a clue about what is wrong. Here is my script. Thanks
>
> file_out = addfile("QC_Day.nc","cw")
> name_dim1=(/"south_north","west_east"/)
> size_dim1=(/128,164/)
> unlim_dim1=new(2,logical)
> unlim_dim1=(/False,False/)
> filedimdef=(file_out,name_dim1,size_dim1,unlim_dim1)
>
> And I got error message:
> fatal:syntax error: before or near =
> filedimdef=
> --------------^
>
> fatal:error in statement
> fatal:Syntax Error in block, block not executed
>
> I have printed out the name_dim1 size_dim1 unlim_dim1 and they all look good
>
>
> I really have no idea what is wrong
>
> Thanks
>
> Best
>
> Peng Liu
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jan 29 15:26:49 2013

This archive was generated by hypermail 2.1.8 : Tue Jan 29 2013 - 22:44:26 MST