Re: appending ascii output to existing file

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Dec 06 2010 - 09:37:35 MST

Also, maybe

http://www.ncl.ucar.edu/Document/Functions/Contributed/table_attach_rows.shtml

http://www.ncl.ucar.edu/Document/Functions/Contributed/array_append_record.shtml

On 12/6/10 9:15 AM, Jonathan Vigh wrote:
> Hi Prabhakar,
> Before Mary replied, I had been putting together a little procedure and
> example script which is essentially the NCL-based approach Mary
> mentioned. Try running the attached file (append.ncl) and see if this is
> what you are looking for. This can probably be modified to use
> write_matrix for formatted output without too much trouble.
>
> Jonathan
>
>
> On 12/06/2010 07:55 AM, Mary Haley wrote:
>> Hi Prabhakar,
>>
>> There's no way to use asciiwrite or write_matrix and have it append to
>> a file. We have this on our "enhancement" list of things we hope to
>> improve in the future.
>>
>> The way I do it now is to read in the current file with asciiread,
>> create a new array that contains both the original data and the new
>> data, and then write the new array back out to the file.
>>
>> Another way to do this is to write a Fortran subroutine that does what
>> you want, and then use WRAPIT to call this subroutine from NCL.
>>
>> See:
>>
>> http://www.ncl.ucar.edu/Document/Tools/WRAPIT.shtml
>>
>>
>> --Mary
>>
>> On Dec 5, 2010, at 11:03 PM, p s wrote:
>>
>>> Hi,
>>> Is there any option to append outputs using asciiwrite or
>>> write_matrix to existing files ?
>>> Regards,
>>> Prabhakar
>>> _______________________________________________
>>> 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
>
>
>
> _______________________________________________
> 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 Mon Dec 6 09:37:43 2010

This archive was generated by hypermail 2.1.8 : Fri Dec 10 2010 - 14:58:12 MST