Open MGYBY opened 3 years ago
We have slightly modified the fort.t and fort.q files over time so it’s not surprising that this no longer works. Currently it is possible to plot Clawpack output directly by using the Python packages available in PyClaw and plotting the data directly (they are just NumPy arrays in there) but this does require some knowledge of the data structures. Does this approach work for you or do you need something more straight forward than this?
Kyle On Jan 14, 2021, 10:35 AM -0500, MGYBY notifications@github.com, wrote:
Dear CLAWPACK Maintainers, The VisIt version I use is 3.1.4. CLAWPACK files (produced by CLAWPACK 5.7.1) cannot be imported in VisIt even if the instruction from the CLAWPACK official documentation is followed: https://www.clawpack.org/v5.1.x/visit_plotting.html The error I encountered is "The pipeline object is being used improperly: scanf() matched only 2 of 5 items in time header". The suspected reason for that is because VisIt read the time header for the time files fort.t* following the one produced by the old-version CLAWPACK. Due to the change in the time header in the latest CLAWPAKC version, VisIt cannot match the time header and therefore complains. The time-header reader is implemented by ReadTimeStepHeader function in the avtClawFileFormat.c file. So this CLAWPACK file reader seems to be obsolete for the current CLAWPACK version 5.7.1 and there is no way to modify the Claw reader to adapt to the latest CLAWPACK version. Therefore, I ask sincerely for your advice on the method to import CLAWPACK files using the latest VisIt 3.1.4. I would further appreciate your help if this feature could be included in the documentation. Thank you. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
We have slightly modified the fort.t and fort.q files over time so it’s not surprising that this no longer works. Currently it is possible to plot Clawpack output directly by using the Python packages available in PyClaw and plotting the data directly (they are just NumPy arrays in there) but this does require some knowledge of the data structures. Does this approach work for you or do you need something more straight forward than this? Kyle … On Jan 14, 2021, 10:35 AM -0500, MGYBY @.**>, wrote: Dear CLAWPACK Maintainers, The VisIt version I use is 3.1.4. CLAWPACK files (produced by CLAWPACK 5.7.1) cannot be imported in VisIt even if the instruction from the CLAWPACK official documentation is followed: https://www.clawpack.org/v5.1.x/visit_plotting.html The error I encountered is "The pipeline object is being used improperly: scanf() matched only 2 of 5 items in time header". The suspected reason for that is because VisIt read the time header for the time files fort.t following the one produced by the old-version CLAWPACK. Due to the change in the time header in the latest CLAWPAKC version, VisIt cannot match the time header and therefore complains. The time-header reader is implemented by ReadTimeStepHeader function in the avtClawFileFormat.c file. So this CLAWPACK file reader seems to be obsolete for the current CLAWPACK version 5.7.1 and there is no way to modify the Claw reader to adapt to the latest CLAWPACK version. Therefore, I ask sincerely for your advice on the method to import CLAWPACK files using the latest VisIt 3.1.4. I would further appreciate your help if this feature could be included in the documentation. Thank you. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Thank you for your explanation. I think I could use the functionalities of VisClaw in Python instead.
Glad to hear that VisClaw might work for you, but also it might not be hard for someone who knows VisIt to fix the reader to handle the latest format, so I think we should leave this issue open and perhaps someone will tackle it.
Also, if anyone is successfully using the VisIt Python interface to automate making plots from amrclaw or geoclaw output (on AMR grids), particularly in 3D, it would be great to hear from you since others would also like this capability.
I wished to know if there has been any progress or this. The error we are getting now is different from what has been mentioned in the main title.
There was an error opening /home/arpit/temp_stuff/plot.claw. It may be an invalid file. VisIt tried using the following file format readers to open the file: Claw, Silo
Thank you
Not that I have seen unfortunately. If someone is successfully using a modified plugin that would be good to know. The plugin you mentioned though is part of the VisIt repository, not ours so we do not test against it.
Dear CLAWPACK Maintainers,
The VisIt version I use is 3.1.4. CLAWPACK files (produced by CLAWPACK 5.7.1) cannot be imported in VisIt even if the instruction from the CLAWPACK official documentation is followed: https://www.clawpack.org/v5.1.x/visit_plotting.html
The error I encountered is "The pipeline object is being used improperly: scanf() matched only 2 of 5 items in time header". The suspected reason for that is because VisIt read the time header for the time files fort.t* following the one produced by the old-version CLAWPACK. Due to the change in the time header in the latest CLAWPAKC version, VisIt cannot match the time header and therefore complains. The time-header reader is implemented by ReadTimeStepHeader function in the avtClawFileFormat.c file. So this CLAWPACK file reader seems to be obsolete for the current CLAWPACK version 5.7.1 and there is no way to modify the Claw reader to adapt to the latest CLAWPACK version.
Therefore, I ask sincerely for your advice on the method to import CLAWPACK files using the latest VisIt 3.1.4. I would further appreciate your help if this feature could be included in the documentation.
Thank you.