[Thread Prev][Thread Next][Index]

Re: segmentation fault



Hi Andrea,
I think it's just the syntax in your SAVE command.  Remove the double
quotes and see if it works correctly:

 yes? save/file=S`fname[i=1]` `vname[i=1]`[d=1,k=1]


Ansley Manke

Andrea S. Taschetto wrote:

Dear Ferret users,
I'm trying to run a .jnl script which load a .nc file and save only one level,
as follow:
yes? set memory/size=250
yes? let fname = {SPAWN:"cat filename.dat"} ! file name (TEMP.nc)
yes? let vname = {SPAWN:"cat varname.dat"} ! variable name (TEMP, for
instance)
yes? use `fname[i=1]`
yes? save/file="S`fname[i=1]`" "`vname[i=1]`[d=1,k=1]"
yes? quit
But I have the error message: segmentation fault, and ferret exits before I get
the script done. Does anyone know why it is happening?
Regards,
Andrea.


===========================
Andréa S. Taschetto
IOUSP - andreast@usp.br
===========================




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement