def joinncfile(infns, outfn, tdimname): ''' Join several netCDF files to one netCDF file. :param infns: (*list*) Input netCDF file name list. :param outfn: (*string*) Output netCDF file name. :param tdimname: (*string*) Time dimension name. :returns: Joined netCDF file. ''' NetCDFDataInfo.joinDataFiles(infns, outfn, tdimname)
def joinncfile(infns, outfn, tdimname): ''' Join several netCDF files to one netCDF file. :param infns: (*list*) Input netCDF file name list. :param outfn: (*string*) Output netCDF file name. :param tdimname: (*string*) Time dimension name. :returns: Joined netCDF file. ''' NetCDFDataInfo.joinDataFiles(infns, outfn, tdimname)
def addtimedim(infn, outfn, t, tunit='hours'): ''' Add a time dimension to a netCDF data file. :param infn: (*string*) Input netCDF file name. :param outfn: (*string*) Output netCDF file name. :param t: (*datetime*) A time value. :param tunit: (*string*) Time unite, Default is ``hours``. :returns: The new netCDF with time dimension. ''' NetCDFDataInfo.addTimeDimension(infn, outfn, miutil.jdate(t), tunit)
def addtimedim(infn, outfn, t, tunit='hours'): ''' Add a time dimension to a netCDF data file. :param infn: (*string*) Input netCDF file name. :param outfn: (*string*) Output netCDF file name. :param t: (*datetime*) A time value. :param tunit: (*string*) Time unite, Default is ``hours``. :returns: The new netCDF with time dimension. ''' NetCDFDataInfo.addTimeDimension(infn, outfn, miutil.jdate(t), tunit)