File size: 5,503 Bytes
e3c1b79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ec9e2ee
e3c1b79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
---
language: en
license: mit
configs:
- config_name: ber
  data_files:
  - split: ber
    path: ber/*.parquet
- config_name: bil
  data_files:
  - split: bil
    path: bil/*.parquet
- config_name: bon
  data_files:
  - split: bon
    path: bon/*.parquet
- config_name: bos
  data_files:
  - split: bos
    path: bos/*.parquet
- config_name: bou
  data_files:
  - split: bou
    path: bou/*.parquet
- config_name: brb
  data_files:
  - split: brb
    path: brb/*.parquet
- config_name: clh
  data_files:
  - split: clh
    path: clh/*.parquet
- config_name: dra
  data_files:
  - split: dra
    path: dra/*.parquet
- config_name: e13
  data_files:
  - split: e13
    path: e13/*.parquet
- config_name: ena
  data_files:
  - split: ena
    path: ena/*.parquet
- config_name: flo
  data_files:
  - split: flo
    path: flo/*.parquet
- config_name: fpe
  data_files:
  - split: fpe
    path: fpe/*.parquet
- config_name: gcr
  data_files:
  - split: gcr
    path: gcr/*.parquet
- config_name: gim
  data_files:
  - split: gim
    path: gim/*.parquet
- config_name: kwa
  data_files:
  - split: kwa
    path: kwa/*.parquet
- config_name: lrc
  data_files:
  - split: lrc
    path: lrc/*.parquet
- config_name: nau
  data_files:
  - split: nau
    path: nau/*.parquet
- config_name: ohy
  data_files:
  - split: ohy
    path: ohy/*.parquet
- config_name: par
  data_files:
  - split: par
    path: par/*.parquet
- config_name: psu
  data_files:
  - split: psu
    path: psu/*.parquet
- config_name: ptr
  data_files:
  - split: ptr
    path: ptr/*.parquet
- config_name: reg
  data_files:
  - split: reg
    path: reg/*.parquet
- config_name: rlm
  data_files:
  - split: rlm
    path: rlm/*.parquet
- config_name: sel
  data_files:
  - split: sel
    path: sel/*.parquet
- config_name: sms
  data_files:
  - split: sms
    path: sms/*.parquet
- config_name: sxf
  data_files:
  - split: sxf
    path: sxf/*.parquet
tags:
- solar
- radiation
- nsrdb
- bsrn
pretty_name: BSRN NSRDB PSM v4 aggregated
---

<!-- This file is uploaded as the Hugging Face dataset README; keep content user-facing (no internal maintainer or upload-only notes). -->

# BSRN NSRDB PSM v4 aggregated

Point-extracted [NSRDB (National Solar Radiation Database)](https://nsrdb.nrel.gov/) PSM v4 (aggregated variant) data for [Baseline Surface Radiation Network (BSRN)](https://bsrn.awi.de/) stations.

## Dataset Description

Each file contains 30-minute NSRDB variables at a single BSRN station location. **Extraction is performed via the NREL NSRDB API (NLR)**. The `aggregated` variant (v4.0.0) provides **4 km spatial resolution** and covers the Contiguous United States and other regions using the GOES archive from **1998 to 2024**.

### File Structure

Station folders use the **lowercase** BSRN three-letter code (e.g. `ber`).

```
{station}/
  {station}{MM}{YY}_nsrdb_aggregated.parquet   # One file per month
```

Example:

- `ber/ber0198_nsrdb_aggregated.parquet` — BER, January 1998

### Variables

| Column    | Description                      | Units         |
|-----------|----------------------------------|---------------|
| ghi_nsrdb | Global Horizontal Irradiance  | W/m²          |
| bni_nsrdb | Beam Normal Irradiance (DNI)  | W/m²          |
| dhi_nsrdb | Diffuse Horizontal Irradiance | W/m²          |

- **Index**: UTC `DatetimeIndex` (30-minute resolution).
- **Time coverage**: NSRDB PSM v4 `aggregated` variant spans 1998–2024.

## Usage

### Load from Hugging Face

```python
from huggingface_hub import hf_hub_download
import pandas as pd

# Download a single file; path is {station}/{station}{MM}{YY}_nsrdb_aggregated.parquet
path = hf_hub_download(
    repo_id="dazhiyang/bsrn-nsrdb-aggregated",
    filename="ber/ber0198_nsrdb_aggregated.parquet",
    repo_type="dataset",
)
df = pd.read_parquet(path)
# df has DatetimeIndex (UTC) and columns: ghi_nsrdb, bni_nsrdb, dhi_nsrdb
```

### Use with bsrn package

The `bsrn` package can fetch NSRDB data from Hugging Face **into RAM** (no disk cache) automatically.

```python
from bsrn.io.nsrdb import add_nsrdb_columns

# Add NSRDB columns to an existing BSRN DataFrame
df = add_nsrdb_columns(df, station_code="BER", variant="aggregated")
```

## Data Sources

- **NSRDB**: [NREL National Solar Radiation Database](https://nsrdb.nrel.gov/)
- **API**: [NREL Developer Network (NLR)](https://developer.nrel.gov/)
- **Station inventory**: BSRN FTP

## References

1. Sengupta, M., Xie, Y., Lopez, A., Habte, A., Maclaurin, G., & Shelby, J. (2018). The national solar radiation data base (NSRDB). *Renewable and Sustainable Energy Reviews*, 89, 51-60.

2. Xie, Y., Yang, J., Sengupta, M., Liu, Y., & Zhou, X. (2022). Improving the prediction of DNI with physics-based representation of all-sky circumsolar radiation. *Solar Energy*, 231, 758-766.

3. Xie, Y., Sengupta, M., Yang, J., Buster, G., Benton, B., Habte, A., & Liu, Y. (2023). Integration of a physics-based direct normal irradiance (DNI) model to enhance the National Solar Radiation Database (NSRDB). *Solar energy*, 266, 112195.

4. Xie, Y., Sengupta, M., & Dudhia, J. (2016). A Fast All-sky Radiation Model for Solar applications (FARMS): Algorithm and performance evaluation. *Solar Energy*, 135, 435-445.

## Citation

If you use this dataset, please cite the references above and the **bsrn** package: [dazhiyang/bsrn](https://github.com/dazhiyang/bsrn).

## License

NSRDB data is provided by NREL and is subject to their [Data Usage Policy](https://nsrdb.nrel.gov/about/data-usage).