# 查看npy的维度 x_train.npy ERA5_LAND_label_4_1990.npy
import numpy as np
data = np.load("D:\\WorkSpace\\PyCharmPJ\\pythonProject\\data\\test\\LandBench\\4\\forcing_memmap.npy")
print(data.shape)
print(data.size)
print(45*90)
#cuda是否可用?
# import torch
# print(torch.cuda.is_available())
# #查看nc的变量和维度
# import netCDF4 as nc
# data = nc.Dataset("D:\\jsj\liqingliang\data\LandBench\\2\land_surface\\1986\\volumetric_soil_water_layer_1.nc")
# print('变量------------------------------------------------------------------------')
# print(data.variables)
# print('维度--------------------------------------------------------------------------')
# print(data.dimensions)
标签:nc,print,npy,维度,import,data
From: https://www.cnblogs.com/xinxuann/p/17432611.html