Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisIt CLAWPACK File Reader not Working #281

Open
MGYBY opened this issue Jan 14, 2021 · 5 comments
Open

VisIt CLAWPACK File Reader not Working #281

MGYBY opened this issue Jan 14, 2021 · 5 comments

Comments

@MGYBY
Copy link

MGYBY commented Jan 14, 2021

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.

@mandli
Copy link
Member

mandli commented Jan 14, 2021 via email

@MGYBY
Copy link
Author

MGYBY commented Jan 14, 2021

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.

@rjleveque
Copy link
Member

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.

@Arpit-Babbar
Copy link

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

@mandli
Copy link
Member

mandli commented Dec 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants