self.clone['yUL'] = round(pcr.clone().north(),2)# cell area (unit: m2)self.cell_area = pcr.readmap(self.input_netcdf['cell_area'])# an object for netcdf reportingself.output = OutputNetcdf(self.clone, self.output_netcdf)# preparing the netcdf file and make variable:self.output...
# 需要导入模块: from netCDF4 import Dataset [as 别名]# 或者: from netCDF4.Dataset importsetncatts[as 别名]defmake_test_file(filename, attributes={}, **variables):"""Create a netcdf file with the given global and variable attributes. Variables are created as dimensionless doubles. For ex...