parro-it / netcdf4

NodeJS addon to read and write NetCDF4 files
ISC License
39 stars 14 forks source link

Get variable attributes #6

Closed zevanb closed 7 years ago

zevanb commented 7 years ago

Hello,

First, thank you for your package, it's very useful ! I have an issue with variables attributes. it seems there are parameters (offset, scale_factor) that need to be applied on the data to get the expected value. I thought it was stored on attributes (file.root.variables.[attributeName].attributes ) but I keep getting an "Operation not permitted".

Are they stored somewhere else or am I doing something wrong ?

Thank you

swillner commented 7 years ago

Hi, sorry, there was a bug reading attributes of variables. It's now fixed, including some tests. Your approach should be working now ;)

zevanb commented 7 years ago

Works fine. thank you !