netcdfjs icon indicating copy to clipboard operation
netcdfjs copied to clipboard

Read pm10_conc data

Open JonathanVandal opened this issue 7 years ago • 6 comments

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.

JonathanVandal avatar Dec 05 '16 13:12 JonathanVandal

/cc @maasencioh

targos avatar Dec 05 '16 13:12 targos

hello @JonathanVandal, please send me the file to [email protected] and I'll try to check it out 😄

maasencioh avatar Dec 05 '16 21:12 maasencioh

Mail sent. I'm waiting for your answer. Thanks.

JonathanVandal avatar Dec 06 '16 09:12 JonathanVandal

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?

maasencioh avatar Dec 08 '16 05:12 maasencioh

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 :

  1. Time : This array length is 24. It represent 24 hours (1 to 24)
  2. Level : This is the surface. In my case this will be always an array with length = 1 and value = 0
  3. Latitude : Array length = 400
  4. 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.

JonathanVandal avatar Dec 08 '16 09:12 JonathanVandal

hello @JonathanVandal , could you please check now? I think that #9 solves it. You can see it on this link if you want.

maasencioh avatar Jun 09 '17 13:06 maasencioh