netcdfjs
netcdfjs copied to clipboard
Read pm10_conc data
Hi, thanks for this great node module.
Could you tell me if it's possible and how can I get all the JSON of the pm10_conc variable ? I'm working on data air pollution.
It looks like this :
https://i.imgsafe.org/5691582954.png
There is 3 parameters to get the value :
Latitude. Longitude. Time.
If I use reader.getDataVariable('pm10_conc')
I'll just get the result of the first cell.
I can send you my .nc file by email if you want.
/cc @maasencioh
hello @JonathanVandal, please send me the file to [email protected] and I'll try to check it out 😄
Mail sent. I'm waiting for your answer. Thanks.
It's indeed a very strange case, because it's a record dimension variable, but the readen part it's really small, do you have the original data that should been readen?
I have 6 700 000 data in my file. I tested in python and with another Node.js module and I can read all my data. And for the moment I'm trying to slice the array to get certain value in certain coordinates (lat/lng).
My data .nc are a 4 dimensional Array. One value in one cell (https://i.imgsafe.org/5691582954.png) is built with :
- Time : This array length is 24. It represent 24 hours (1 to 24)
- Level : This is the surface. In my case this will be always an array with length = 1 and value = 0
- Latitude : Array length = 400
- Longitude : Array length = 700
I don't have the readable data then I can't send you that. But you can read them with the Node.js module that I mentioned.
hello @JonathanVandal , could you please check now? I think that #9 solves it. You can see it on this link if you want.