请问如何将ERA5的nc文件转为csv或者xls格式,比如2m温度,表头为time lat lon t2m,主要是不知道关于时间的代码怎么写,它的信息是这样的:PS:看了很多相关代码,都没有将时间问题解决,感谢各位帮忙!
```python
Source:
D:\meteorologicaldata\2m_temperature\year\2015.nc
Format:
64bit
Global Attributes:
Conventions = 'CF-1.6'
history = '2023-04-07 11:04:31 GMT by grib_to_netcdf-2.25.1: /opt/ecmwf/mars-client/bin/grib_to_netcdf.bin -S param -o /cache/data9/adaptor.mars.internal-1680865445.5369513-21211-3-2f04ee57-a8af-4c46-bb0b-9b562ce85b7e.nc /cache/tmp/2f04ee57-a8af-4c46-bb0b-9b562ce85b7e-adaptor.mars.internal-1680864979.6155574-21211-4-tmp.grib'
Dimensions:
longitude = 37
latitude = 25
time = 8760
Variables:
longitude
Size: 37x1
Dimensions: longitude
Datatype: single
Attributes:
units = 'degrees_east'
long_name = 'longitude'
latitude
Size: 25x1
Dimensions: latitude
Datatype: single
Attributes:
units = 'degrees_north'
long_name = 'latitude'
time
Size: 8760x1
Dimensions: time
Datatype: int32
Attributes:
units = 'hours since 1900-01-01 00:00:00.0'
long_name = 'time'
calendar = 'gregorian'
t2m
Size: 37x25x8760
Dimensions: longitude,latitude,time
Datatype: int16
Attributes:
scale_factor = 0.0010827
add_offset = 279.938
_FillValue = -32767
missing_value = -32767
units = 'K'
long_name = '2 metre temperature'
```