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

Cannot read input/output #17

Open
Anokhi1994 opened this issue Apr 13, 2019 · 1 comment
Open

Cannot read input/output #17

Anokhi1994 opened this issue Apr 13, 2019 · 1 comment

Comments

@Anokhi1994
Copy link

Anokhi1994 commented Apr 13, 2019

@megies @shaharkadmiel

So I am using sw4 and pysw4 for my thesis. And I am facing some really issue.
I am using already installed module on my university workstation by calling out 'module load sw4'
Now two things happen:

1)When I use lon_p=lon or proj=utm in the input file and run the input file using the line 'sw4 4 my simulation crashes given me this error:
Fatal input error: ERROR: need to configure SW4 with proj=yes to use projections from the Proj4 library
This is one thing.

Secondly
When I erase lon_p=lon or proj=utm in the input file and try to run it using pysw4, I cannot use the function read_metdata and the program crashes giving me the error


~/anaconda3/lib/python3.7/site-packages/pySW4/sw4_metadata.py in get_Proj4(self)
105 # warn('No lon_p found... '
106 # 'setting to {}.'.format(self.grid[0]['lon']))
--> 107 proj_dict['lon_0'] = self.grid[0]['lon']
108 lon_p = False


So, either I can use proj and pysw4 or not use proj but run the simulation. Kindly help me.

@megies
Copy link
Collaborator

megies commented Apr 15, 2019

  1. is not a pySW4 issue, but I've replied in private email

  2. @shaharkadmiel the parsing seems to not catch all possible cases when proj is not being used. I guess it's understandable since so many different settings can be used.. @Anokhi1994 if we can resolve 1) then maybe it doesn't matter for you, though. When we get SW4 to run with proj support for you..

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

2 participants