Skip to content

Instantly share code, notes, and snippets.

@zbennett10
Created August 8, 2017 15:50
Show Gist options
  • Save zbennett10/5db7ba47a0faf08662f905b40266128f to your computer and use it in GitHub Desktop.
Save zbennett10/5db7ba47a0faf08662f905b40266128f to your computer and use it in GitHub Desktop.
TMPLAR error when requesting route from SVPDA
Traceback (most recent call last):
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1994, in __call__
return self.wsgi_app(environ, start_response)
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/src/app.py", line 38, in run_main
return tmplar(input_vars)
File "/src/app.py", line 55, in tmplar
routes = OptClass()._ship_routing_run(request)
File "/src/ship_route_optimizer.py", line 159, in _ship_routing_run
full_timeWindow, input_var, outputfile)
File "/src/SailingVessel_ensm.py", line 106, in makeSmartGrid
upnwpt, lowlon, lowlat, lownwpt)
File "/src/autoGridGC.py", line 195, in autoGridGC
vGridColumn.extend(makeGCGridSingle(wayPtLon[0], wayPtLat[0], wayPtLon[1], wayPtLat[1], xGridSpaceLeg, yGridSpaceLeg, ncrossPtBase, firstCol, uplon, uplat, upnwpt, lowlon, lowlat, lownwpt))
File "/src/autoGridGC.py", line 208, in makeGCGridSingle
lat_temp, lon_temp, land_temp = WayPt.getGC_EqualWayPts(xGridSpace, startLat, startLon, endLat, endLon)
File "/src/WayPt.py", line 120, in getGC_EqualWayPts
bDepthOK = routeMethods.getBathyPoint(pt.m_latitude, pt.m_longitude) < 2
File "/src/routeMethods.py", line 251, in getBathyPoint
bathy_matrix = readbathy(bathyfilename)
File "/src/routeMethods.py", line 340, in readbathy
with open(path, 'r') as dataStream:
IOError: [Errno 2] No such file or directory: '/metoc/otsr/DBDBV/45_deg_squares/45N090W.chr'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment