Read the raw dependencies in an independent shift_plan_reanalysis() plan. Every request must have an explicitly associated local NetCDF file or CDS ZIP containing one top-level NetCDF member. Files retain their actual grid coordinates, source values, units and SHA-256 hashes. No credentials, downloads, derived weather variables or EPW files are involved.

shift_read_reanalysis(plan, files)

Arguments

plan

An unchanged result of shift_plan_reanalysis().

files

Character vector of existing NetCDF or CDS ZIP paths, named by request ID. Supply exactly the requests in plan, with no duplicate names.

Value

A list with schema_version, normalization_version, status = "validated_local", data (a long data.table of raw dependency fields in canonical units) and artifacts (one row per request). data includes site ID, variable ID, UTC validity time, value/units, temporal kind, interval start/end, actual grid coordinates, raw value/units, request ID and file hash. Instantaneous fields have missing interval bounds.

Details

ERA5 single-level hourly ARCO and explicit CDS point files are supported. Complete, strictly ordered hourly coverage, finite values, recognized units and a consistent nearest 0.25-degree grid point are required. Multiple version or member slices are rejected rather than silently combined. All source fields for a site must use the same grid. Failed validation returns an error, never a filtered or partially joined table.

ERA5 radiation and precipitation retain their UTC interval-end validity times and the preceding one-hour interval. Accumulated energy is divided by 3600 to obtain mean flux; precipitation depth is converted to mass flux. No timestamp shift depends on which other variables were requested. Skin and air temperature are expressed in kelvin. Raw values are decoded physical NetCDF values before these unit conversions; original packed bytes remain in the identified file. Local validation cannot authenticate a file's provider origin or prove scientific suitability of its grid point.

ZIP containers are retained unchanged and identified by raw_sha256. The artifacts also record netcdf_member (missing for a bare NetCDF file) and netcdf_sha256. A unique top-level NetCDF member is extracted to a temporary directory using the existing CDS archive validation, read with the same strict weather rules, then removed. Multiple or nested NetCDF members are rejected; the archive filename extension is not used for detection.