Esempio n. 1
0
 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)
Esempio n. 2
0
 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
Esempio n. 3
0
 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
Esempio n. 4
0
 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
Esempio n. 5
0
 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
Esempio n. 6
0
 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
Esempio n. 7
0
 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
Esempio n. 8
0
 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
Esempio n. 9
0
 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
Esempio n. 10
0
 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
Esempio n. 11
0
 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
Esempio n. 12
0
 def sos(self):
     return u"http://tds.gliders.ioos.us/thredds/sos/%s_%s_Time.ncml" % (slugify(self.title), slugify(self.name))
Esempio n. 13
0
 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