Re: output of print within ncl script

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Fri Apr 11 2014 - 09:52:48 MDT

Hi,

You might take a look at the examples for the "asciiwrite" command to see if that gets you what you need:

http://www.ncl.ucar.edu/Document/Functions/Built-in/asciiwrite.shtml

Hope that helps…
Rick

On Apr 11, 2014, at 6:12 AM, jagan TNAU <jagan@tnau.ac.in> wrote:

> Dear all,
>
> I am using the following script and direct the output via screen to a text file. But I want print in to a text file within a ncl script so that I can print all the days file for a month separately by looping.
>
> print(sprintf("%8.4f",xlat(:,:)) +" " \
> +sprintf("%8.4f",xlon(:,:)) +" " \
> +sprintf("%5.1f",t2max(0,0,:,:)) +" " \
> +sprintf("%5.1f",t2min(0,0,:,:)) +" " \
> +sprintf("%5.1f",rain(0,:,:)))
>
> Please help.
> --
> With regards
>
> Dr.R.Jagannathan
> Professor of Agronomy
> Agro Climate Research Centre
> Tamil Nadu Agricultural University
> Coimbatore - 641 003 India
>
> PHONE: Mob: +91 94438 89891
>
> DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Apr 11 09:52:56 2014

This archive was generated by hypermail 2.1.8 : Tue Apr 15 2014 - 10:45:19 MDT