Microsoft.Research.Science.Data.NetCDF4.NetCDFDataSet.UpdateDimIds()

Here are the examples of the csharp api class Microsoft.Research.Science.Data.NetCDF4.NetCDFDataSet.UpdateDimIds() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: SDSlite
Source File: NetCDFDataSet.cs
View license
protected override void OnTransactionOpened()
        {
            /* Storing existing file for possible rollback */
            if (!initializing && rollbackEnabled)
            {
                tempFileName = Path.GetTempFileName();

                int res = NetCDF.nc_close(ncid);
                HandleResult(res);

                File.Copy(((NetCDFUri)this.uri).FileName, tempFileName, true);

                res = NetCDF.nc_open(((NetCDFUri)this.uri).FileName, CreateMode.NC_WRITE, out ncid);
                HandleResult(res);
                // After the open, dimensions id can change.
                UpdateDimIds();
            }
        }

2. Example

Project: SDSlite
Source File: NetCDFDataSet.cs
View license
protected override void OnRollback()
        {
            if (initializing) return;
            if /n ..... /n //View Source file for more details /n }