def iso(self): title = slugify(self.title) name = slugify(self.name) catalog_parameter = u'http://tds.gliders.ioos.us/thredds/%s/%s/catalog.html' % (title, name) dataset_parameter = u'%s_%s_Time' % (title, name) query = urllib.urlencode({ 'catalog' : catalog_parameter, 'dataset' : dataset_parameter }) return u"http://tds.gliders.ioos.us/thredds/iso/%s_%s_Time.ncml?%s" % (title, name, query)
def erddap(self): args = { 'host': app.config['PUBLIC_ERDDAP'], 'user': slugify(self.username), 'deployment': slugify(self.name) } erddap_url = u"http://%(host)s/erddap/tabledap/%(deployment)s.html" % args return erddap_url
def thredds(self): args = { 'host': app.config['THREDDS'], 'user': slugify(self.username), 'deployment': slugify(self.name) } thredds_url = u"http://%(host)s/thredds/catalog/deployments/%(user)s/%(deployment)s/catalog.html?dataset=deployments/%(user)s/%(deployment)s/%(deployment)s.nc3.nc" % args return thredds_url
def iso(self): title = slugify(self.title) name = slugify(self.name) iso_url = u'http://%(host)s/erddap/tabledap/%(name)s.iso19115' % { 'host': app.config['PUBLIC_ERDDAP'], 'name': name } return iso_url
def thredds(self): args = { 'host' : THREDDS, 'user' : slugify(self.username), 'deployment' : slugify(self.name) } thredds_url = u"http://%(host)s/thredds/catalog/deployments/%(user)s/%(deployment)s/catalog.html?dataset=deployments/%(user)s/%(deployment)s/%(deployment)s.nc3.nc" % args return thredds_url
def erddap(self): args = { 'host': PUBLIC_ERDDAP, 'user': slugify(self.username), 'deployment' : slugify(self.name) } erddap_url = u"http://%(host)s/erddap/tabledap/%(deployment)s.html" % args return erddap_url
def sos(self): ''' Returns the URL to the NcSOS endpoint ''' args = { 'host' : THREDDS, 'user' : slugify(self.username), 'deployment' : slugify(self.name) } sos_url = u"http://%(host)s/thredds/sos/%(user)s/%(deployment)s.nc3.nc?service=SOS&request=GetCapabilities&AcceptVersions=1.0.0" % args return sos_url
def dap(self): ''' Returns the THREDDS DAP URL to this deployment ''' args = { 'host' : THREDDS, 'user' : slugify(self.username), 'deployment' : slugify(self.name) } dap_url = u"http://%(host)s/thredds/dodsC/%(user)s/%(deployment)s.nc3.nc" % args return dap_url
def sos(self): ''' Returns the URL to the NcSOS endpoint ''' args = { 'host': app.config['THREDDS'], 'user': slugify(self.username), 'deployment': slugify(self.name) } sos_url = u"http://%(host)s/thredds/sos/deployments/%(user)s/%(deployment)s/%(deployment)s.nc3.nc?service=SOS&request=GetCapabilities&AcceptVersions=1.0.0" % args return sos_url
def dap(self): ''' Returns the THREDDS DAP URL to this deployment ''' args = { 'host': app.config['THREDDS'], 'user': slugify(self.username), 'deployment': slugify(self.name) } dap_url = u"http://%(host)s/thredds/dodsC/deployments/%(user)s/%(deployment)s/%(deployment)s.nc3.nc" % args return dap_url
def iso(self): title = slugify(self.title) name = slugify(self.name) iso_url = u'http://%(host)s/erddap/tabledap/%(name)s.iso19115' % {'host' : PUBLIC_ERDDAP, 'name' : name} return iso_url
def sos(self): return u"http://tds.gliders.ioos.us/thredds/sos/%s_%s_Time.ncml" % (slugify(self.title), slugify(self.name))
def iso(self): name = slugify(self.name) iso_url = u'http://%(host)s/erddap/tabledap/%(name)s.iso19115' % { 'host': app.config['PUBLIC_ERDDAP'], 'name': name} return iso_url