[ncl-talk] Can't work with reassign command ':=', and '::' call fortran command
Ziyuan Wang
1301111586 at pku.edu.cn
Fri Feb 17 12:37:29 MST 2017
Dear all Users:
I want to run a ncl scripts written by geos-chem model to read bpch files
(read_bpch.ncl attached).
1.When I use ncl/6.1.0 or 6.0.0, it can't work with the re-assign operator
:=, as error
fatal:syntax error: line 96 in file $NCL4GC/file_io/read_bpch.ncl before or
near :
fti :
--------------^
line 96 in bpch.ncl is "fti := get_string_from_bpch( inFile, R, 40 )
" (attached 1.error)
2. When I use ncl/6.3.0, in our school cluster there's no intel/12.1.5, so I
have to load gcc/4.7.2. Then it can't read fortran command. And for model
compiling I also need intel fortran.
fatal:syntax error: line 119 in file $NCL4GC/file_io/read_bpch.ncl before or
near :
BIN:
-------^
Line 129 in bpch.ncl is " BIN::bpch_hdr1( bytes, c_modelname, lon, lat,
halfpolar, center180 )" (Attached 2.error)
3.So I'm wondering how can I change read_bpch.ncl code, to make the ':='
work in ncl/6.1.0
Thank you everyone
Ziyuan Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170217/ae8e619b/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: read_bpch.ncl
Type: application/octet-stream
Size: 7058 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170217/ae8e619b/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.error
Type: application/octet-stream
Size: 4082 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170217/ae8e619b/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.error
Type: application/octet-stream
Size: 1008 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170217/ae8e619b/attachment-0002.obj
More information about the ncl-talk
mailing list