Sources
sources
Gridded sources: which arrays, which vertical coordinate, how to build a cube.
GridSource
An hourly, regular lat/lon zarr store with a level dimension.
vertical lists all levels of the store's level axis, in the store's
order (top to bottom). Cubes carry only the levels needed to bracket the
requested pressures, read with block-level range requests. With a cache
(:meth:use_cache), the field chunks of hours older than final_after
are kept on disk; metadata and recent (ERA5T) hours are always re-read.
Source code in packages/barograph-met/src/baro/met/sources.py
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 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | |
stats
property
Transfer counters of every underlying byte store.
configure_decoded_cache(max_bytes)
Bound decoded Blosc reuse to final field chunks, using final_after.
Field views share this reader and its budget. Recent ERA5T chunks never qualify. Surface pressure in a separate reader has its own budget.
Source code in packages/barograph-met/src/baro/met/sources.py
coverage()
Published period, from the store's valid_time_start/valid_time_stop.
For ARCO-ERA5 the model-level store lags ERA5T (about three months).
Source code in packages/barograph-met/src/baro/met/sources.py
cube_keys(t0)
Analyses at t0 and one hour later (no run: reanalysis).
fetch(key, domain, p_range, *, level_margin=1, executor=None)
Read one hour over domain with the levels bracketing p_range (Pa).
Source code in packages/barograph-met/src/baro/met/sources.py
select_fields(names)
Independent field view sharing stores and byte caches with this source.
Only listed output fields are fetched. Cache eligibility retains all original fields, so attaching a cache through a view cannot narrow the parent's cache policy. Configure shared stores before concurrent use.
Source code in packages/barograph-met/src/baro/met/sources.py
tiling(key)
Latitude bands of about one Blosc block (every longitude), the same for every hour.
Read once from the header of one fixed chunk (the first published hour), so every call and process probes the same, cacheable, few KiB.
Source code in packages/barograph-met/src/baro/met/sources.py
time_index(hour)
Index of hour on the store's time axis, verified against the time array.
The axis is assumed hourly and contiguous; each time chunk is checked once (a few KiB) before its indices are trusted.
Source code in packages/barograph-met/src/baro/met/sources.py
use_cache(cache)
Keep the final hours' field chunks in cache (see the class docstring).
Source code in packages/barograph-met/src/baro/met/sources.py
SurfacePressure
dataclass
arco_model_levels(*, levels=None, base_url=ARCO_BASE_URL, fields=None)
ARCO-ERA5 L137 model levels (0.25 deg, hourly) + surface pressure from the PL store.
levels restricts the hybrid levels used (default: all 137).
Source code in packages/barograph-met/src/baro/met/sources.py
arco_pressure_levels(*, levels=None, base_url=ARCO_BASE_URL, fields=None)
ARCO-ERA5 pressure levels (0.25 deg, hourly); levels in hPa (default: all 37).