[Paraview] FW: Paraview
Moreland, Kenneth
kmorel at sandia.gov
Thu Aug 11 12:55:38 EDT 2011
Specifically, what filename did you give to the CreateWriter function?
Did you give "myFile.csv" as in your example? If so, try a full path as
Utkarsh accepted. Did you give "/myFile.csv", and if so, do you have
write access to your root directory? Did you give something like
"/tmp/myFile.csv" and it still tried to write to "/myFile.0.csv"?
-Ken
**** Kenneth Moreland
*** Sandia National Laboratories
***********
*** *** *** email: kmorel at sandia.gov
** *** ** phone: (505) 844-8919
*** web: http://www.cs.unm.edu/~kmorel
On 8/11/11 10:50 AM, "Martinez, Luis" <Luis.Martinez at nrel.gov> wrote:
>I tried this but I will get the following error for all my time steps and
>nothing will get saved:
>
>vtkCSVWriter (0x14aa6a20): Unable to open file: /myFile.0.csv
>
>Thanks,
>
>Tony
>
>-----Original Message-----
>From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
>Sent: Thursday, August 11, 2011 8:01 AM
>To: Moreland, Kenneth
>Cc: paraview at paraview.org; Martinez, Luis
>Subject: Re: [Paraview] FW: Paraview
>
>Can you try specifying the full path for the file? The following works
>for me without any issues with development ParaView, but I think it
>shouldn't have any issues with 3.10.1 as well.
>
>writer=CreateWriter("/tmp/myFile.csv",PlotOverLine1)
>writer.FieldAssociation = "Points"
>writer.WriteAllTimeSteps = 1
>writer.UpdatePipeline()
>
>On Thu, Aug 11, 2011 at 9:51 AM, Moreland, Kenneth <kmorel at sandia.gov>
>wrote:
>> Does anyone know the answer to Tony's question? In summary, how do you
>> write a time series of csv files?
>> -Ken
>> **** Kenneth Moreland
>> *** Sandia National Laboratories
>> ***********
>> *** *** *** email: kmorel at sandia.gov
>> ** *** ** phone: (505) 844-8919
>> *** web: http://www.cs.unm.edu/~kmorel
>>
>> From: "Martinez, Luis" <Luis.Martinez at nrel.gov>
>> Date: Wed, 10 Aug 2011 09:04:28 -0600
>> To: Kenneth Moreland <kmorel at sandia.gov>
>> Subject: Paraview
>>
>> Hi Kenneth,
>>
>>
>>
>> I took the Paraview training with you a couple of weeks ago in Denver. I
>> have gotten many of the things working but I am still having trouble
>>with
>> one minor detail. I am writing a batch script to do post-processing
>>without
>> having to open paraview GUI but I found a bug on the trace tool. It
>>will not
>> show the commands for saving data as .csv from the "Plot Over Line"
>>filter.
>> I found on the wiki how to do this by:
>>
>>
>>
>> writer=CreateWriter("myFile.csv",PlotOverLine1)
>>
>> writer.FieldAssociation = "Points"
>>
>> writer.UpdatePipeline()
>>
>> del writer
>>
>>
>>
>>
>>http://www.paraview.org/Wiki/ParaView/Python_Scripting#Exporting_CSV_Data
>>
>>
>>
>> Now this will only save my data for the first time step. I am
>>interested in
>> saving the data from the latest time step, or all time steps. If I try
>>
>>
>>
>> Writer.WriteAllTimeSteps = 1
>>
>>
>>
>> I will get the following error:
>>
>>
>>
>> In
>>/home/kgruchal/scratch/ParaView-3.10.1/Servers/Filters/vtkCSVWriter.cxx,
>> line 80
>>
>> vtkCSVWriter (0x2aab60975680): Unable to open file: /myFile.0.csv
>>
>>
>>
>> How can I specify a time step to save the data?
>>
>>
>>
>> I don't know if you would know the answer for this or could point me in
>>the
>> right direction.
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Luis (Tony) Martinez
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>
More information about the ParaView
mailing list