The NetCDF format is generally used for data that is dimensional, i.e f(lat, lon) or similar. I’m not sure if it is possible to save just a dimensionless vector to NetCDF. In general when writing NetCDF files I recommend to follow the CF conventions. It might seem a bit long, but they do have some nice conventions and then your files will be easily readable in various software. I recently registered PlateMotionRequests.jl where I have some code to create simple NetCDF files. See the source, in particular write_netcdf which creates the NetCDF dataset from a Table. I don’t know how to write irregular data to NetCDF yet.