Photonscore.D7
27.1.11
dotnet add package Photonscore.D7 --version 27.1.11
NuGet\Install-Package Photonscore.D7 -Version 27.1.11
<PackageReference Include="Photonscore.D7" Version="27.1.11" />
<PackageVersion Include="Photonscore.D7" Version="27.1.11" />
<PackageReference Include="Photonscore.D7" />
paket add Photonscore.D7 --version 27.1.11
#r "nuget: Photonscore.D7, 27.1.11"
#:package Photonscore.D7@27.1.11
#addin nuget:?package=Photonscore.D7&version=27.1.11
#tool nuget:?package=Photonscore.D7&version=27.1.11
Photonscore.D7
Reads and writes D7 .photons files, Photonscore's
format for time-resolved single-photon data, as recorded by LINCam and
LINTag. Managed code only, for .NET 8 and .NET 10: no native library and
no protobuf. What it writes is the native library's file byte for byte,
and it reads every file the native library wrote.
using Photonscore.D7;
// Read: three columns in one pass, on four of the caller's threads
using (var r = new D7FileReader("scan.photons")) {
int n = (int)r.Datasets["/photons/x"].Items;
var x = new ushort[n];
var y = new ushort[n];
var dt = new ushort[n];
r.Read([D7Column.Of("/photons/x", x), D7Column.Of("/photons/y", y),
D7Column.Of("/photons/dt", dt)], 0, n,
new ParallelOptions { MaxDegreeOfParallelism = 4 });
Console.WriteLine(r["FileCreator"]);
}
// Write: datasets first, then appends and attributes; Dispose closes
using (var w = new D7FileWriter("out.photons")) {
w.CreateDataset<ushort>("/photons/x");
w["Comment"] = "...";
w.Append(new ushort[] { 10, 11, 13 }, "/photons/x");
}
A file that was never closed, by a crash or because it is still being
recorded, opens all the same: the reader recovers it from its running
indexes, and Recovered says so.
The format, the native C++ library and its C API live at github.com/photonscore/d7. Apache-2.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.