3D-Wind-Field
3D-Wind-Field copied to clipboard
What about using JSON data?
Hi Rayman,
I'm trying to decide wich tool I'll use to show wind particles in my Cesium. I have found this and yours.
Your tool is fast and pretty, but uses NC file. The other one uses JSON data extracted using GRIB2JSON and is what I need becaus my METOC GOV entity gives me this format (http://s0.cptec.inpe.br/oceano/blend/vsm/vsm_diario_ams/vsm.json) but it is very slow and ugly.
Can you point to me where in the code I can modify to use JSON data in this format (like the other tool? As you can see it is very simple and easy to understand.
I have some skills in JS but I found your code too big and with many classes. If you lead me in right direction I think I can do this job.
Thanks for your help.
By the way... can you make it more stand alone like the other one? I see you make all Cesium instances stuff inside your code. Leave this work to the user.
It should not be difficult since the data process is decoupled with the rendering. You can add a function for loading JSON data in the dataProcess.js, and call your JSON loading function in the exposed function loadData. However, you should ensure that the data return from your JSON loading function should have the same structure as that of function loadNetCDF
Ok... I'll see that. Thanks. Can you please keep this open so I can feed the thread with my progress?
OK, actually I prefer letting the issue owners to close their own issues if they have been resolved.
@icemagno Hello, I have the same question as you, how do you deal with this json form of data?
@ding991 well ... I'm working on other things now and let this left without doing anything .... sorry.
@icemagno well. Thanks