-
Notifications
You must be signed in to change notification settings - Fork 9
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
IndexError #111
Comments
Thanks, will investigate later this week. |
@jcothran I took a look at: Here's an example of UGRID compliant FVCOM output: |
@rsignell-usgs The hosted sciwms.nc is a renamed copy of the FVCOM sample file as on the sci-wms github site. I don't follow seeing 'record' in the description below. Dataset { The second link failed to connect. Looking for a small sample FVCOM netcdf(say less than 50MB) file that works with sci-wms if the one on the project site is incorrect or lacking. |
@jcothran Those are OPeNDAP Dataset Access Form URLS. Point your browser at: The other URL works for me also. Try it again? |
Still having trouble getting the second link to resolve either with .html suffix or without, but was able to start from http://testbedapps-dev.sura.org/thredds and found the below sample - don't know if I should try that 2MB file with my install to see if any errors or if not a good FVCOM sample. http://testbedapps-dev.sura.org/thredds/dodsC/ugrid/TestCases/FVCOM/UCF_FVCOM_DEMO.nc.html |
Can you access any of the FVCOM datasets here? |
Yes, and the earlier link is working now also - do you have that with an httpserver service link for download or is there another method to download the netcdf file itself? I'll give that a try on my sci-wms install once downloaded. |
No, you need to use the OPeNDAP link because we used NcML to make it UGRID compliant. How about cutting out 1 time step with the NCO
You could also take a look directly at the NcML file |
secoora@crow:~$ ncks -d time,0 http://testbedapps-dev.sura.org/thredds/dodsC/in/umass/fvcom/run/2005/wave sciWMS_testfile.nc |
Works fine for me. I'm guessing your ncks doesn't have any
|
When the fishing is going badly, sometimes you just want to buy some fish and go home: |
Thanks for the file and nco version listing, my nco version was older and dap not active. Still get the same type error though whether running against the file locally or remotely. It runs ok on your sci-wms test map instance after running update function? [2013-12-11 12:48:12,862] - <> - |Status 500 Error: ['Traceback (most recent call last):\n', ' File "/home /secoora/sci-wms/sci-wms/src/pywms/wms/views.py", line 325, in wms\n response = getMap(action_request, dataset)\n', ' File "/home/secoora/sci-wms/sci-wms/src/pywms/wms/views.py", line 1363, in getMap\n var1, var2 = ugrid.getvar(datasetnc, t, layer, variables, index)\n', ' File "/home/secoora/sci-wms/sci-wms/src/pywms/wms/ugrid.py", line 77, in getvar\n var1 = var1[:, index]\n', 'IndexError: index 32649 is out of bounds for axis 1 with size 32649\n'] sqlite> select * from wms_dataset; |
Is this issue resolved? |
Issue is open with the same status as the last message. Looking for a working FVCOM sample netcdf file, the ones I have tested on the project site or from Rich result in the same above type index error. |
@jcothran I've made some pretty significant changes to sci-wms lately, can you try the newest version? Use the README.md/html for instructions. The test FVCOM dataset is working in my installation: http://sciwms.pvd.axiomalaska.com/ |
With the latest version of sci-wms (last commit, Nov 9, 2013) I get the following type error in sciwms_wms.log when trying to select the added test file for FVCOM
https://github.com/asascience-open/sci-wms/blob/master/src/pywms/wms/resources/201220109.nc
Available as a thredds link at http://129.252.139.124/thredds/dodsC/testAll/sciwms.nc
[2013-12-09 13:04:29,499] - <> - |Status 500 Error: ['Traceback (most recent call last):\n', ' File "/home/secoora/sci-wms/sci-wms/asascience-open-sci-wms-96cc2b4/src/pywms/wms/views.py", line 325, in wms\n response = getMap(action_request, dataset)\n', ' File "/home/secoora/sci-wms/sci-wms/asascience-open-sci-wms-96cc2b4/src/pywms/wms/views.py", line 1363, in getMap\n var1, var2 = ugrid.getvar(datasetnc, t, layer, variables, index)\n', ' File "/home/secoora/sci-wms/sci-wms/asascience-open-sci-wms-96cc2b4/src/pywms/wms/ugrid.py", line 77, in getvar\n var1 = var1[:, index]\n', 'IndexError: index 19630 is out of bounds for axis 1 with size 19630\n']
The text was updated successfully, but these errors were encountered: