Error at HDF5 Layer when attempting to create a variable with multiple dimensions

May 22, 2014 at 8:41 PM
I have a class that I created that I want to use to write a netcdf file. When I attempt to create a variable with the dimensions 'lat' and 'lon', I get an exception that says "Error at HDF5 Layer." Any suggestions?
Public Sub WriteFile(ByVal filename As String)
        Dim dataset As DataSet = dataset.Open(filename + "?openMode=create")

        Dim latitudeVariable As Variable = dataset.AddVariable(Of Double)("lat")
        Dim longitudeVariable As Variable = dataset.AddVariable(Of Double)("lon")


        Dim myVariable As Variable = dataset.AddVariable(Of Short)("myVariable", "lat", "lon")