NCL community,
I have a request/challange for you. Can anyone get the following script
to create it's output netCDF file (output.nc), including the global
attributes, when using the nohup command (i.e. nohup ncl exampleScript.ncl):
begin
dummyVar = (/ 1,2,3,4,5,6,7,8,9,10 /)
outfile = addfile("./output.nc","c")
outfile->DUMVAR = dummyVar
globalAtt = True
globalAtt@CREATION_NOTES = "This is only an example to
show that NCL fails with the nohup command"
globalAtt@CREATION_DATE = systemfunc("date")
fileattdef(outfile,globalAtt)
end
When I use nohup when running the above ncl script I consistently get
the "input in flex scanner failed" message and an output file that does
not contain the global attributes. I admit there is no error message
but the output file is clearly flawed. If I run the script with out
nohup every works fine.
This same problem occurs on different machines and with different
verisons of NCL (i.e. 5.2.1 & 6.0.0) and with numerous different NCL
scripts. I am using NCL installed from binaries on Linux systems (CentOS).
The example above is just a simple script but in more complex scripts
designed to read variables from GRIB/NetCDF files and then write them to
anew netCDF file, a new file is never even created at all!
Thanks,
MJ
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Nov 15 19:45:48 2011
This archive was generated by hypermail 2.1.8 : Tue Nov 22 2011 - 14:17:53 MST