Exemplo n.º 1
0
 def get_front_end(self, filename):
     print "dset_nemo.get_front_end - dset name = ", self.dset_name
     return util.get_front_end(self.dset_name, filename)
Exemplo n.º 2
0
    if idx1 > idx2:
        print "****** No need to read src data from file because it's been already read."

    # loop over src files
    for j in range(idx1, idx2 + 1):
        print ''
        # read in data and co-locate to target grid
        print 'loop over src files j: ', j
        print 'src file:', afl.dirNameList[j]

        src_file = afl.dirNameList[j]
        # Read src data
        print "****** Reading src data from file: ", src_file

        # initialize a front end
        src_front_end = UT.get_front_end(src_data, src_file)
        ### print 'src_front_end: ', src_front_end

        # Create a report of variables supported
        if catalog_created != 1:
            src_front_end.create_catalog()
            catalog_created = 1

        midEnd.set_src_time(src_front_end.get_time())
        print 'src Unix Time size = ', midEnd.get_src_time().size
        print 'src Unix Time = ', midEnd.get_src_time()
        print 'src Unix Time Range = ', min(midEnd.get_src_time()), max(
            midEnd.get_src_time())

        midEnd.set_src_lat(src_front_end.get_latitude())
        print 'src Latitude size = ', midEnd.get_src_lat().size
Exemplo n.º 3
0
import util as UT

src_data = UT.parse_data_type('/mnt/nas-0-0/users/collocation/ecmwf/idaily-surface')
src_file = '/mnt/nas-0-0/users/collocation/ecmwf/idaily-surface/2008/01/ecmwf-interim-daily-surface-2008-01-06.nc'
src_front_end = UT.get_front_end(src_data, src_file)
#### print 'src_front_end: ', src_front_end

print 'time: ', src_front_end.get_time()
print 'lat: ', src_front_end.get_latitude()
print 'lon: ', src_front_end.get_longitude()
print 'data: ', src_front_end.get_data()
print 'grid info: ', src_front_end.get_src_uniform_grid_info()
Exemplo n.º 4
0
    def get_front_end (self, filename):
        print "dset_nemo.get_front_end - dset name = ", self.dset_name
	return util.get_front_end (self.dset_name, filename)