Reading-eScience-Centre / pycovjson

Create CovJSON files from common scientific data formats
BSD 3-Clause "New" or "Revised" License
12 stars 7 forks source link

Wrong "dataType" for integer variables #23

Open letmaik opened 8 years ago

letmaik commented 8 years ago

I have a variable of byte type which pycovjson outputs as "dataType": "float" in the ranges part, this should be "dataType": "integer".

RileyWilliams commented 8 years ago

Which file are you using for this? @letmaik

letmaik commented 8 years ago

It's the land cover one, but in general any file which has categorical data. So, this would also be relevant if you have a file that has a continuous temperature variable and then a categorical quality flag variable. I know that categorical data is not supported currently, but at least fixing the dataType shouldn't be too hard.