Models

Models for the mde-thredds app.

Models:

AggregationDataset(*args, **kwargs)

An dataset representing the aggregation of multiple files.

ApplySetting(*args, **kwargs)

Apply configrations of connection to a thredds server.

BaseDataset(*args, **kwargs)

An entry in a thredds catalog.

DatasetCatalog(*args, **kwargs)

A catalog within the model data explorer.

DatasetScan(*args, **kwargs)

A datasetscan creating multiple datasets with a single entry.

NetCDFBase(*args, **kwargs)

Base class for an item for an aggregation dataset.

NetCDFFile(*args, **kwargs)

An explicit location of a netcdf file to be used in an aggregation.

NetCDFScan(*args, **kwargs)

A scan to add multiple aggregations.

SimpleDataset(*args, **kwargs)

A dataset representing one single file.

TDSCatalog(*args, **kwargs)

A catalog for a thredds server.

TDSServer(*args, **kwargs)

A representation of a thredds server.

TDSSetting(*args, **kwargs)

Configrations of connection to a thredds server.

WMSConfig(*args, **kwargs)

A representation of a thredds server wmsCongig.

WMSDatasetPath(*args, **kwargs)

Base class for an item for an WMSConfig.

WMSOverride(*args, **kwargs)

WMSOverride parameters in WMSConfig.

WMSStandardName(*args, **kwargs)

StandardName parameters in WMSConfig..

WMSVariable(*args, **kwargs)

WMSVariable parameters in WMSConfig.

Functions:

get_content_dir()

restart_tds_after_catalog_change(sender, ...)

restart_tds_after_catalogs_change(sender, ...)

restart_tds_after_entry_change(sender, ...)

restart_tds_after_server_change(sender, ...)

update_xml_field(sender, instance, **kwargs)

Overwrite the xml field.

update_xml_field1(sender, instance, **kwargs)

Overwrite the xml field.

update_xml_field2(sender, instance, **kwargs)

Overwrite the xml field.

update_xml_field3(sender, instance, **kwargs)

Overwrite the xml field.

write_configrations_of_wmsconfig(sender, ...)

class mde_thredds.models.AggregationDataset(*args, **kwargs)

Bases: BaseDataset

An dataset representing the aggregation of multiple files.

Classes:

AggregationType(value)

The type of aggregations.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

aggregation_type

A wrapper for a deferred-loading field.

catalog

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

dimension_name

A wrapper for a deferred-loading field.

url_name

A wrapper for a deferred-loading field.

Methods:

get_aggregation_type_display(*[, field])

get_data_type_display(*[, field])

render_xml()

Render this dataset as dataset XML tag.

Attributes:

netcdffile_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

netcdfscan_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

objects

url_path

The urlPath attribute for the catalog.

class AggregationType(value)

Bases: TextChoices

The type of aggregations.

Attributes:

join_existing

join_new

union

join_existing = 'JoinExisting'
join_new = 'JoinNew'
union = 'union'
exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

aggregation_type

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

catalog

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

dimension_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_aggregation_type_display(*, field=<django.db.models.fields.CharField: aggregation_type>)
get_data_type_display(*, field=<django.db.models.fields.CharField: data_type>)
netcdffile_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

netcdfscan_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

objects = <django.db.models.manager.Manager object>
render_xml() str

Render this dataset as dataset XML tag.

url_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property url_path: str

The urlPath attribute for the catalog.

The urlPath attribute is the relative_path of the dataset prepended with the catalog name.

class mde_thredds.models.ApplySetting(*args, **kwargs)

Bases: TDSSetting

Apply configrations of connection to a thredds server.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

id

A wrapper for a deferred-loading field.

tdsserver

Accessor to the related object on the forward side of a one-to-one relation.

Attributes:

objects

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
tdsserver

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

class mde_thredds.models.BaseDataset(*args, **kwargs)

Bases: Model

An entry in a thredds catalog.

Classes:

DataType(value)

Available data types for datasets.

Meta()

Model Fields:

catalog

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

data_type

A wrapper for a deferred-loading field.

id

A wrapper for a deferred-loading field.

name

A wrapper for a deferred-loading field.

xml

A wrapper for a deferred-loading field.

Attributes:

catalog_id

Methods:

get_data_type_display(*[, field])

class DataType(value)

Bases: TextChoices

Available data types for datasets.

Attributes:

grid

image

point

radial

station

swath

trajectory

grid = 'Grid'
image = 'Image'
point = 'Point'
radial = 'Radial'
station = 'Station'
swath = 'Swath'
trajectory = 'Trajectory'
class Meta

Bases: object

Attributes:

abstract

abstract = False
catalog

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

catalog_id
data_type

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_data_type_display(*, field=<django.db.models.fields.CharField: data_type>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

xml

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class mde_thredds.models.DatasetCatalog(*args, **kwargs)

Bases: TDSCatalog

A catalog within the model data explorer.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

dataset

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

tdscatalog_ptr

Accessor to the related object on the forward side of a one-to-one relation.

Attributes:

dataset_id

tdscatalog_ptr_id

exception DoesNotExist

Bases: DoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

dataset

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

dataset_id
tdscatalog_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

tdscatalog_ptr_id
class mde_thredds.models.DatasetScan(*args, **kwargs)

Bases: BaseDataset

A datasetscan creating multiple datasets with a single entry.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

catalog

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

location

A wrapper for a deferred-loading field.

path

A wrapper for a deferred-loading field.

Methods:

get_data_type_display(*[, field])

render_xml()

Render this dataset as datasetScan XML tag.

Attributes:

objects

relative_path

The location relative to the catalog root location.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

catalog

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

get_data_type_display(*, field=<django.db.models.fields.CharField: data_type>)
location

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
path

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property relative_path: str

The location relative to the catalog root location.

render_xml() str

Render this dataset as datasetScan XML tag.

class mde_thredds.models.NetCDFBase(*args, **kwargs)

Bases: Model

Base class for an item for an aggregation dataset.

Classes:

Meta()

Model Fields:

aggregation

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

location

A wrapper for a deferred-loading field.

Attributes:

aggregation_id

relative_path

The location relative to the catalog root location.

class Meta

Bases: object

Attributes:

abstract

abstract = False
aggregation

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

aggregation_id
location

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property relative_path: str

The location relative to the catalog root location.

class mde_thredds.models.NetCDFFile(*args, **kwargs)

Bases: NetCDFBase

An explicit location of a netcdf file to be used in an aggregation.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

aggregation

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

id

A wrapper for a deferred-loading field.

Attributes:

objects

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

aggregation

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class mde_thredds.models.NetCDFScan(*args, **kwargs)

Bases: NetCDFBase

A scan to add multiple aggregations.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

aggregation

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

id

A wrapper for a deferred-loading field.

regexp

A wrapper for a deferred-loading field.

subdirs

A wrapper for a deferred-loading field.

Attributes:

objects

relative_path

The location relative to the catalog root location.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

aggregation

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
regexp

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property relative_path: str

The location relative to the catalog root location.

subdirs

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class mde_thredds.models.SimpleDataset(*args, **kwargs)

Bases: BaseDataset

A dataset representing one single file.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

catalog

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

location

A wrapper for a deferred-loading field.

Methods:

get_data_type_display(*[, field])

render_xml()

Render this dataset as dataset XML tag.

Attributes:

objects

relative_path

The location relative to the catalog root location.

url_path

The urlPath attribute for the catalog.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

catalog

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

get_data_type_display(*, field=<django.db.models.fields.CharField: data_type>)
location

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
property relative_path: str

The location relative to the catalog root location.

render_xml() str

Render this dataset as dataset XML tag.

property url_path: str

The urlPath attribute for the catalog.

The urlPath attribute is the relative_path of the dataset prepended with the catalog name.

class mde_thredds.models.TDSCatalog(*args, **kwargs)

Bases: Model

A catalog for a thredds server.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Attributes:

aggregationdataset_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

datasetcatalog

Accessor to the related object on the reverse side of a one-to-one relation.

datasetscan_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

objects

simpledataset_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

tdsserver_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

xml_path

Path to the xml file of the catalog.

Model Fields:

cdmremote

A wrapper for a deferred-loading field.

dap4

A wrapper for a deferred-loading field.

http

A wrapper for a deferred-loading field.

id

A wrapper for a deferred-loading field.

iso

A wrapper for a deferred-loading field.

name

A wrapper for a deferred-loading field.

ncml

A wrapper for a deferred-loading field.

ncssGrid

A wrapper for a deferred-loading field.

ncssPoint

A wrapper for a deferred-loading field.

odap

A wrapper for a deferred-loading field.

tds5

A wrapper for a deferred-loading field.

uddc

A wrapper for a deferred-loading field.

wcs

A wrapper for a deferred-loading field.

wms

A wrapper for a deferred-loading field.

xml

A wrapper for a deferred-loading field.

Methods:

render_xml()

Render the catalog as xml.

write_xml()

Write the xml file to disk.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

aggregationdataset_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

cdmremote

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

dap4

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

datasetcatalog

Accessor to the related object on the reverse side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Place.restaurant is a ReverseOneToOneDescriptor instance.

datasetscan_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

http

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

iso

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

ncml

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

ncssGrid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

ncssPoint

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
odap

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

render_xml() str

Render the catalog as xml.

simpledataset_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

tds5

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

tdsserver_set: models.manager.RelatedManager[TDSServer]

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

uddc

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wcs

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wms

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

write_xml() None

Write the xml file to disk.

xml

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property xml_path: str

Path to the xml file of the catalog.

class mde_thredds.models.TDSServer(*args, **kwargs)

Bases: Model

A representation of a thredds server.

Classes:

CorsMethods(value)

Methods that are avaialable for CORS settings.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Attributes:

applysetting

Accessor to the related object on the reverse side of a one-to-one relation.

catalogs

Settings of CORS

internal_url

The URL where this THREDDS-Server can be accessed.

mde_thredds_path

Path to the app_setting file of the mde_thredds.

objects

public_url

The URL where this THREDDS-Server can be publicly accessed.

Model Fields:

cors_activation

A wrapper for a deferred-loading field.

cors_allowed_headers

A wrapper for a deferred-loading field.

cors_allowed_methods

A wrapper for a deferred-loading field.

cors_allowed_origin

Settings of NetcdfSubsetService

cors_maxAge

A wrapper for a deferred-loading field.

id

A wrapper for a deferred-loading field.

iso_allow

A wrapper for a deferred-loading field.

name

A wrapper for a deferred-loading field.

ncml_allow

A wrapper for a deferred-loading field.

netcdf_subset_service_activation

A wrapper for a deferred-loading field.

netcdfsubsetservice_maxAge

Settings of Opendap

netcdfsubsetservice_scour

A wrapper for a deferred-loading field.

opendap_activation

A wrapper for a deferred-loading field.

opendap_ascLimit

A wrapper for a deferred-loading field.

opendap_binLimit

Settings of WCS

uddc_allow

A wrapper for a deferred-loading field.

wcs_activation

A wrapper for a deferred-loading field.

wcs_allowRemote

A wrapper for a deferred-loading field.

wcs_maxAge

Settings of WMS

wcs_scour

A wrapper for a deferred-loading field.

wms_activation

A wrapper for a deferred-loading field.

wms_allowRemote

A wrapper for a deferred-loading field.

wms_max_image_height

Settings of NCISO

wms_max_image_width

A wrapper for a deferred-loading field.

xml

A wrapper for a deferred-loading field.

Methods:

get_cors_allowed_methods_display(*[, field])

render_xml()

Render the catalog as xml.

render_xml_app()

Render the app_setting.

restart_server()

Restart the thredds server via the tomcat manager.

write_mde_thredds_app_setting()

Write the app_setting file to disk.

write_xml()

Write the xml file to disk.

class CorsMethods(value)

Bases: TextChoices

Methods that are avaialable for CORS settings.

Attributes:

get

post

get = 'GET'
post = 'POST'
exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

applysetting

Accessor to the related object on the reverse side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Place.restaurant is a ReverseOneToOneDescriptor instance.

catalogs

Settings of CORS

cors_activation

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

cors_allowed_headers

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

cors_allowed_methods

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

cors_allowed_origin

Settings of NetcdfSubsetService

cors_maxAge

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_cors_allowed_methods_display(*, field=<django.db.models.fields.CharField: cors_allowed_methods>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property internal_url: str

The URL where this THREDDS-Server can be accessed.

iso_allow

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property mde_thredds_path: str

Path to the app_setting file of the mde_thredds.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

ncml_allow

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

netcdf_subset_service_activation

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

netcdfsubsetservice_maxAge

Settings of Opendap

netcdfsubsetservice_scour

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
opendap_activation

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

opendap_ascLimit

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

opendap_binLimit

Settings of WCS

property public_url: str

The URL where this THREDDS-Server can be publicly accessed.

render_xml() str

Render the catalog as xml.

render_xml_app() str

Render the app_setting.

restart_server()

Restart the thredds server via the tomcat manager.

uddc_allow

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wcs_activation

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wcs_allowRemote

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wcs_maxAge

Settings of WMS

wcs_scour

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wms_activation

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wms_allowRemote

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wms_max_image_height

Settings of NCISO

wms_max_image_width

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

write_mde_thredds_app_setting() None

Write the app_setting file to disk.

write_xml() None

Write the xml file to disk.

xml

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class mde_thredds.models.TDSSetting(*args, **kwargs)

Bases: Model

Configrations of connection to a thredds server.

Classes:

Meta()

Model Fields:

tdsserver

Accessor to the related object on the forward side of a one-to-one relation.

thredds_content_dir

A wrapper for a deferred-loading field.

thredds_data_dir

A wrapper for a deferred-loading field.

tomcat_manager_password

A wrapper for a deferred-loading field.

tomcat_manager_username

A wrapper for a deferred-loading field.

tomcat_url_port

A wrapper for a deferred-loading field.

Attributes:

tdsserver_id

class Meta

Bases: object

Attributes:

abstract

abstract = False
tdsserver

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

tdsserver_id
thredds_content_dir

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

thredds_data_dir

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

tomcat_manager_password

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

tomcat_manager_username

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

tomcat_url_port

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class mde_thredds.models.WMSConfig(*args, **kwargs)

Bases: Model

A representation of a thredds server wmsCongig.

Classes:

ColorBar(value)

An enumeration.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

defaults_Color_bands

A wrapper for a deferred-loading field.

defaults_Lower_range

A wrapper for a deferred-loading field.

defaults_Upper_range

A wrapper for a deferred-loading field.

defaults_allowFeatureInfo

A wrapper for a deferred-loading field.

defaults_colorbar

A wrapper for a deferred-loading field.

defaults_intervalTime

A wrapper for a deferred-loading field.

defaults_logScaling

A wrapper for a deferred-loading field.

id

A wrapper for a deferred-loading field.

Methods:

get_defaults_colorbar_display(*[, field])

render_xml()

Render the catalog as xml.

write_xml()

Write the xml file to disk.

Attributes:

objects

wmsoverride_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

wmsstandardname_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

wmsvariable_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

class ColorBar(value)

Bases: TextChoices

An enumeration.

Attributes:

alg

alg2

ashpalette

ferret

greyscale

metnoprecipitation

metnoredblue

ncview

occam

occam_pastel

precipitation

rainbow

redblue

sst_36

uemep_aqi_palette

uemep_no2_palette

uemep_o3_palette

uemep_pm10_day_palette

uemep_pm10_palette

uemep_pm25_day_palette

uemep_pm25_palette

wmo_ice_chart

alg = 'alg'
alg2 = 'alg2'
ashpalette = 'ashpalette'
ferret = 'ferret'
greyscale = 'greyscale'
metnoprecipitation = 'metnoprecipitation'
metnoredblue = 'metnoredblue'
ncview = 'ncview'
occam = 'occam'
occam_pastel = 'occam_pastel-30'
precipitation = 'precipitation'
rainbow = 'rainbow'
redblue = 'redblue'
sst_36 = 'sst_36'
uemep_aqi_palette = 'uemep_aqi_palette'
uemep_no2_palette = 'uemep_no2_palette'
uemep_o3_palette = 'uemep_o3_palette'
uemep_pm10_day_palette = 'uemep_pm10_day_palette'
uemep_pm10_palette = 'uemep_pm10_palette'
uemep_pm25_day_palette = 'uemep_pm25_day_palette'
uemep_pm25_palette = 'uemep_pm25_palette'
wmo_ice_chart = 'wmo_ice_chart'
exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

defaults_Color_bands

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

defaults_Lower_range

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

defaults_Upper_range

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

defaults_allowFeatureInfo

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

defaults_colorbar

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

defaults_intervalTime

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

defaults_logScaling

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_defaults_colorbar_display(*, field=<django.db.models.fields.CharField: defaults_colorbar>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
render_xml() str

Render the catalog as xml.

wmsoverride_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

wmsstandardname_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

wmsvariable_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

write_xml() None

Write the xml file to disk.

class mde_thredds.models.WMSDatasetPath(*args, **kwargs)

Bases: Model

Base class for an item for an WMSConfig.

Classes:

Meta()

Model Fields:

allow_feature_info

A wrapper for a deferred-loading field.

color_bands

A wrapper for a deferred-loading field.

colorbar

A wrapper for a deferred-loading field.

interval_time

A wrapper for a deferred-loading field.

log_scaling

A wrapper for a deferred-loading field.

lower_range

A wrapper for a deferred-loading field.

upper_range

A wrapper for a deferred-loading field.

wms

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

Methods:

get_colorbar_display(*[, field])

Attributes:

wms_id

class Meta

Bases: object

Attributes:

abstract

abstract = False
allow_feature_info

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

color_bands

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

colorbar

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_colorbar_display(*, field=<django.db.models.fields.CharField: colorbar>)
interval_time

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

log_scaling

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

lower_range

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

upper_range

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wms

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

wms_id
class mde_thredds.models.WMSOverride(*args, **kwargs)

Bases: WMSDatasetPath

WMSOverride parameters in WMSConfig.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

directory

A wrapper for a deferred-loading field.

id

A wrapper for a deferred-loading field.

single_file

A wrapper for a deferred-loading field.

wms

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

Methods:

get_colorbar_display(*[, field])

Attributes:

objects

relative_path

The location relative to the catalog root location.

wmsvariable_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

directory

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_colorbar_display(*, field=<django.db.models.fields.CharField: colorbar>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
property relative_path: str

The location relative to the catalog root location.

single_file

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wms

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

wmsvariable_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class mde_thredds.models.WMSStandardName(*args, **kwargs)

Bases: WMSDatasetPath

StandardName parameters in WMSConfig..

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Methods:

get_colorbar_display(*[, field])

Model Fields:

id

A wrapper for a deferred-loading field.

name

A wrapper for a deferred-loading field.

unit

A wrapper for a deferred-loading field.

wms

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

Attributes:

objects

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

get_colorbar_display(*, field=<django.db.models.fields.CharField: colorbar>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
unit

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

wms

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

class mde_thredds.models.WMSVariable(*args, **kwargs)

Bases: WMSDatasetPath

WMSVariable parameters in WMSConfig.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

category

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

id

A wrapper for a deferred-loading field.

name

A wrapper for a deferred-loading field.

wms

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

Attributes:

category_id

objects

relative_path

The location relative to the catalog root location.

Methods:

get_colorbar_display(*[, field])

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

category

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

category_id
get_colorbar_display(*, field=<django.db.models.fields.CharField: colorbar>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
property relative_path: str

The location relative to the catalog root location.

wms

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

mde_thredds.models.get_content_dir()
mde_thredds.models.restart_tds_after_catalog_change(sender, instance: TDSCatalog, created: bool, **kwargs)
mde_thredds.models.restart_tds_after_catalogs_change(sender, instance: TDSServer, **kwargs)
mde_thredds.models.restart_tds_after_entry_change(sender, instance: Union[AggregationDataset, SimpleDataset, DatasetScan], **kwargs)
mde_thredds.models.restart_tds_after_server_change(sender, instance: TDSServer, created: bool, **kwargs)
mde_thredds.models.update_xml_field(sender, instance: Union[AggregationDataset, SimpleDataset, DatasetScan], **kwargs)

Overwrite the xml field.

mde_thredds.models.update_xml_field1(sender, instance: Union[NetCDFFile, NetCDFScan], **kwargs)

Overwrite the xml field.

mde_thredds.models.update_xml_field2(sender, instance: Union[WMSStandardName, WMSOverride], **kwargs)

Overwrite the xml field.

mde_thredds.models.update_xml_field3(sender, instance: WMSVariable, **kwargs)

Overwrite the xml field.

mde_thredds.models.write_configrations_of_wmsconfig(sender, instance: WMSConfig, created: bool, **kwargs)