Skip to content

Allow data to be omitted from netCDF files during cf.write #477

@davidhassell

Description

@davidhassell

(Copied from NCAS-CMS/cfdm#221)

It would be useful to be able to not write to disk the data from selected construct types.

This would not affect the amount of netCDF variables and dimensions that are written to the file, nor the netCDF variables' attributes, but would not create data on disk for the requested variables thus resulting in a smaller file than it otherwise would have been.

When the new file is read then the data of these variables will be represented by an array of all missing data.

This will be useful for cases when there is a need to store a file's metadata structure for inspection, but the data values are immaterial.


This is implemented in cfdm v1.10.0.1, and just needs the omit_data keyword to be brought into cf.write.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dataset writeRelating to writing datasetsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions