CDAT / vcs-js

3 stars 3 forks source link

Vcs-server crashes when loading certain variables #19

Closed James-Crean closed 6 years ago

James-Crean commented 6 years ago

In FileLoader.py, line 45, the code tests if the variable has a longitude, but does not test for a latitude. The code then goes on to call

lonName = var.getLongitude().id
latName = var.getLatitude().id

If a variable has a longitude, but does not have a latitude, getLatitude() will return None, and trying to access .id will result in an exception.

Example: The navy_land.nc data file has the variable "bounds_lon" which produces this error.

danlipsa commented 6 years ago

@James-Crean @doutriaux1 Can you attach your test data to this bug report: ta_ncep_87-6-88-4.nc or navy_land.nc? Thanks!

doutriaux1 commented 6 years ago

@danlipsa just run

vcs_download_sample_data
doutriaux1 commented 6 years ago

navy_land might be in share/cdutil

danlipsa commented 6 years ago

@doutriaux1 Great. Thanks. I'll take a look.