Skip to main content
Returns a string containing names of the variables in a given netCDF file along with its dimensions.

Signatures

RS_NetCDFInfo(netCDF: ARRAY[Byte])

Parameters

netCDF
ARRAY[Byte]
required
The NetCDF file content as a byte array.

Return type

A string representation.

Example

val df = sedona.read.format("binaryFile").load("/some/path/test.nc")
recordInfo = df.selectExpr("RS_NetCDFInfo(content) as record_info").first().getString(0)
print(recordInfo)
O3(time=2, z=2, lat=48, lon=80)

NO2(time=2, z=2, lat=48, lon=80)