3D-Wind-Field icon indicating copy to clipboard operation
3D-Wind-Field copied to clipboard

What about using JSON data?

Open icemagno opened this issue 4 years ago • 6 comments

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.

icemagno avatar Oct 23 '20 21:10 icemagno

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

RaymanNg avatar Oct 25 '20 04:10 RaymanNg

Ok... I'll see that. Thanks. Can you please keep this open so I can feed the thread with my progress?

icemagno avatar Oct 25 '20 22:10 icemagno

OK, actually I prefer letting the issue owners to close their own issues if they have been resolved.

RaymanNg avatar Oct 26 '20 05:10 RaymanNg

@icemagno Hello, I have the same question as you, how do you deal with this json form of data?

ding991 avatar Apr 13 '21 03:04 ding991

@ding991 well ... I'm working on other things now and let this left without doing anything .... sorry.

icemagno avatar Apr 14 '21 00:04 icemagno

@icemagno well. Thanks

ding991 avatar Apr 15 '21 07:04 ding991