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

Error loading new covjson test file into demo example #7

Open
jelpatte opened this issue Nov 10, 2016 · 1 comment
Open

Error loading new covjson test file into demo example #7

jelpatte opened this issue Nov 10, 2016 · 1 comment

Comments

@jelpatte
Copy link

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
Copy link
Member

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!

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