I previously asked for help with accessing metadata in .HDR (version 4) files. I am obliged to work also with NetCDF files, with which I am only briefly acquainted. (I am aware that my question touches on previous queries but requires further clarification.) I could read data from these files, every element, attribute and all metadata appear correct as in example [1], which lists all the imported elements.
The process of importing data here is broken apart for clarity. On line 4 I have limited data import to 3 specific records, the first of which is shown at the end of the listing (netCDFdatasets...). The problem I am having is in exporting this reduced dataset back to NetCDF format. When I import the file that I just exported (NetCDF_Testing-Output.nc), annotations are missing ({{},{},{}}), the data format is incorrect (Real64 instead of Real32) and the metadata are missing. The data and dimensions are exported correctly, as shown in example [2].
When I attempt to add sophistication (likely quite naive but which doesn't generate any export errors that are annunciated) as in example [3], the situation is no better.
My question therefore, is whether Mathematica (version 11.1.1.0) is capable of exporting those data that I have so far been unable to include in my NetCDF file?