Reading-eScience-Centre / webworldwind-covjson

Small demo using Web World Wind together with CoverageJSON.
http://reading-escience-centre.github.io/webworldwind-covjson/
Other
0 stars 2 forks source link

Error loading new covjson test file into demo example #7

Open jelpatte opened 7 years ago

jelpatte commented 7 years ago

I am testing out the webworldwind tool with data generated from pycovjson. I successfully can replicate your example on my server! I then tried to swap out the covjson filename in main.js my swapping out the filename with my own (and hoped it may be that simple). But, alas I get the following error:

TimeSelector.js:94 Uncaught (in promise) TypeError: Cannot read property 'length' of undefined(…) CJ360.TimeSelector._fillTimeOptions @ TimeSelector.js:94 CJ360.TimeSelector @ TimeSelector.js:41 CJ360.UIManager.runTimeSelector @ UIManager.js:49 CJ360.UIManager @ UIManager.js:27 (anonymous function) @ main.js:42

I noticed mention in the documentation of using components vs coordinates in this example. My covjson file is generated with coordinates, so maybe that is the cause?

If you think it may be related to my underlying netcdf file, you can generate the same original netcdf file using our REST API at the following URL: https://coastwatch.pfeg.noaa.gov/erddap/griddap/jplMURSST41anom1day.nc?sstAnom[(2016-11-06T09:00:00Z):1:(2016-11-08T09:00:00Z)][(70):200:(89.99)][(140):200:(180.0)]

I am very interested in the capabilities of covjson and hope that I can incorporate it into an upcoming project whether through webworldwind, leaflet or other library. Thank you for any help you can provide.

jonblower commented 7 years ago

As @letmaik has said elsewhere, the worldwind-covjson stuff is quite immature, and you may be better off focusing on Leaflet. But you might be right that the problem you're seeing is caused by the recent change from "components" to "coordinates". Perhaps the worldwind code did not catch up with this recent change. Thanks very much for your interest in covjson!