cf-json / cf-json.github.io

Apache License 2.0
0 stars 2 forks source link

how to parse a null attribute; (data) type of attributes #5

Open aportagain opened 6 years ago

aportagain commented 6 years ago

Has anyone dealt with converting cf-json null to netCDF, e.g., in attributes? In Python for example, the plain json null is parsed as None, but the Python netCDF4 module for example of course can't handle that because there's no way to tell what netCDF type that should be (interestingly, the error message mentions type "O", uppercase letter oh... no clue where that comes from). JSON null is kind of "typeless", isn't it? Any ideas how to deal with this? I guess the underlying issue is that so far, cf-json doesn't really handle the (data) type of attributes, does it?