Skip to content

Operation not permitted errors #15

Description

@theophilusx

Hi,

first, thanks for this library. I have found it very useful. I have been processing some large NetCDF files and all has been going really well. However, I've now run into a NetCDF file which throws "Operation not permitted" errors, but I cannot work out why. The same operation on other NetCDF files works just fine. I am only trying to read the files, not write to them.

One specific example I've traced to trying to read the 'endianness' attribute from a variable object. The attribute is there (it is listed if I do a for (let k of Object.keys(nc.root.variables[latitude])) ... but if I try to access the value, I get an "Operation not permitted" error. If I ry to dump the objects to console.dir() I get the same error. All of theses operations work fine with other NetCDF files I'm processing, so it is something different with this version of NetCDF files, but I am not sure what. Any clue or help you can provide would be appreciated. Have you seen this before or are there some known limitations etc?

The file is 14.8Mb in size, so I cannot upload it, but happy to share it if that would help (just need somewhere I an send/upload it).

thanks,
Tim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions