def __init__(self, vehicle, slack, args): Thread.__init__(self) self.q = queue.Queue(maxsize=0) self.vehicle = vehicle self.slack = slack self.args = args self.pw = lrauvNc4ToNetcdf.InterpolatorWriter() # Assume that the database has already been created with description and terrain information, # so use minimal arguments in constructor self.cl = CANONLoader(args.database, args.campaign) self.cl.dbAlias = args.database self.cl.campaignName = args.campaign
".*.js$", ".*.kml$", ".*.log$" ] c = Crawl(os.path.join(url, 'catalog.xml'), select=[files], debug=False, skip=skips) for d in c.datasets: logger.debug('Found %s', d.id) urls = [ s2.get("url") for d in c.datasets for s2 in d.services if s2.get("service").lower() == "opendap" ] pw = lrauvNc4ToNetcdf.InterpolatorWriter() coord = {} for p in args.plotparms: coord[p] = { 'time': p + '_time', 'latitude': p + '_latitude', 'longitude': p + '_longitude', 'depth': p + '_depth' } title = 'MBARI LRAUV Survey - ' + platformName # Look in time order - oldest to newest and skip over data that doesn't include the starting year to speed up the loads for url in sorted(urls):