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

Index error #28

Open
mahronid opened this issue Jul 18, 2019 · 1 comment
Open

Index error #28

mahronid opened this issue Jul 18, 2019 · 1 comment

Comments

@mahronid
Copy link

mahronid commented Jul 18, 2019

Traceback (most recent call last):
File "/usr/local/bin/skewt", line 4, in
import('pkg_resources').run_script('pymeteo==1.0.1', 'skewt')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 658, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1438, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.6/dist-packages/pymeteo-1.0.1-py3.6.egg/EGG-INFO/scripts/skewt", line 160, in
main()
File "/usr/local/lib/python3.6/dist-packages/pymeteo-1.0.1-py3.6.egg/EGG-INFO/scripts/skewt", line 99, in main
skewt.plot_wrf(args.f, args.lat, args.lon, args.t, args.output)
File "/usr/local/lib/python3.6/dist-packages/pymeteo-1.0.1-py3.6.egg/pymeteo/skewt.py", line 366, in plot_wrf
p_surface = f.variables['PSFC'][time,j,i]
File "netCDF4/_netCDF4.pyx", line 3961, in netCDF4._netCDF4.Variable.getitem
File "netCDF4/_netCDF4.pyx", line 4796, in netCDF4._netCDF4.Variable._get
IndexError

@mahronid mahronid changed the title Script 'scripts/skewt' not found in metadata Index error Jul 18, 2019
@cwebster2
Copy link
Owner

p_surface = f.variables['PSFC'][time,j,i]

Does your netcdf file have a variable named PSFC in it? if it does, can you provide the dimensions of that variable in your file and the command you ran that produced this output?

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