SPCNet 2.1.0

dotnet add package SPCNet --version 2.1.0
                    
NuGet\Install-Package SPCNet -Version 2.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SPCNet" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SPCNet" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="SPCNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SPCNet --version 2.1.0
                    
#r "nuget: SPCNet, 2.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SPCNet@2.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SPCNet&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=SPCNet&version=2.1.0
                    
Install as a Cake Tool

Storm Prediction Center API for C#

Latest verison: 2.1.0

This API was made for the need of me constantly having to access data from the Storm Prediction Center (which is what this api was originally made for), most notably the convective outlooks, tornado watches, severe thunderstorm watches, and mesoscale discussions.

The data that this API uses comes from the listed pages:

  1. https://www.spc.noaa.gov/gis/
  2. https://www.spc.noaa.gov/archive/
  3. https://www.weather.gov/documentation/services-web-api#/
  4. https://www.spc.noaa.gov/products/watch/ww0119.html (at the time of typing this)
  5. https://www.wpc.ncep.noaa.gov/kml/kmlproducts.php
  6. https://www.nhc.noaa.gov/gis/
  7. https://mrms.ncep.noaa.gov/data/RIDGEII/

Said data is gathered up and processed to be used for whatever it is needed for without the hassle of retrieving the data, and processing it.

This API can be used for many various things that use C# as its language. Whether thats software for Windows, games for Unity, or even for addons/mods that use C# to develop said addons/mods.

This API was developed on the .NET 8 SDK. Backports are unlikely since I do not really have the time for that (but you are free to do it your self if you so wish).

Porting to other languages like C++, python, javascript etc are possible, but the same statement above still applies.

None of the classes within this API are nullable, which means you can safely read the fields and properties of the classes without having to do null checks, as null checks are handled internally and any null values will instead just use their default value.

This API is still brand new and may have some bugs associated with it.

Planned features for API may include:

  1. Add a class to decode raw radar data/generate images from raw radar data using specified color tables.
  2. Have a separate class for things solely related to the National Weather Service, such as observations and forecasts.
Product 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 is compatible.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 121 7/26/2025
2.0.0 200 7/26/2025

Added SWPC
Using Geojson.Net for geojson reading
Added current storm reports gathering
Made a majority of the methods async
Bug fixes