[Thread Prev][Thread Next][Index]

Fw: [ferret_users] Inseting string in output text file



This problem is apparently solved (by rearranging the command lines! -actually I don't know how but the error msg is now gone) but you are welcome to make comment if you see scope for improvement here.
 
Jagadish
----- Forwarded Message -----
From: jagadish karmacharya <j_karmacharya@xxxxxxxxx>
To: Ferret users <oar.pmel.ferret_users@xxxxxxxx>
Sent: Wednesday, September 21, 2011 4:19 PM
Subject: [ferret_users] Inseting string in output text file

Dear ferret users,

I want to insert informative strings in text file output from ferret. In particular I want the text file to have following content.

Analysis period: 1990-2008
Correlation between WYMI computed from:
ncep1 & eraI: x1
ncep1 & mode: x2

Below is the relevant part of the script I used:
let p= ...; let q= ...; go variance; go var_n
list/nohead/clobber/file="results/WYMI.correl.txt"/format=(A) ("Analysis period: 1990-2008")
list/nohead/append/file="results/WYMI.correl.txt"/format=(A) ("Correlation between WYMI computed from: ")
list/nohead/append/file="results/WYMI.correl.txt"/format=("ncep1 & eraI: ", F5.2) correl
let q= ...; go variance; go var_n
list/nohead/append/file="results/WYMI.correl.txt"/format=("ncep1 & model: ", F5.2) correl

The script successfully wrote first 3 line but gave error message:
 **ERROR: command syntax: BLE q=
DEFINE VARIABLE q=(v4[d=4,z=850,t=15-sep-`yr7`:15-sep-`yr6`]-v4[d=4,z=850,t=15-sep-`yr7`:15-sep-`yr6`@ave])-(v4[d=4,z=200,t=15-sep-`yr7`:15-sep-`yr6`]-v4[d=4,z=200,t=15-sep-`yr7`:15-sep-`yr6`@ave])
Command file, command group, or REPEAT execution aborted

I am able to save the output in a text file with simple command (e.g. list/file=filename correl ). But I would like above script to work. Please advice.

Thanks in advance

Jagadish



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement