public static void Save(string strFile) { float[][] x = new float[30][]; for (int i = 0; i < x.Length; i++) { x[i] = new float[30]; for (int j = 0; j < x[i].Length; j++) { x[i][j] = 3; } } bool t = typeof(Array).Equals(x.GetType()); Fits f = new Fits(); Header hdr = new Header(); hdr.Bitpix = 8; hdr.Simple = true; hdr.Naxes = 2; hdr.AddValue("NAXIS1", 30, ""); hdr.AddValue("NAXIS2", 30, ""); FitsFactory.UseAsciiTables = false; Data d = FitsFactory.DataFactory(hdr); BasicHDU h = FitsFactory.HDUFactory(x); f.addHDU(h); FileStream os = new FileStream(strFile, FileMode.Create); f.Write(os); }