Models

Models for the thredds-control-center app.

Models:

AggregationDataset(*args, **kwargs)

An dataset representing the aggregation of multiple files.

BaseDataset(*args, **kwargs)

An entry in a thredds catalog.

CatalogRef(*args, **kwargs)

Represents a reference to a catalog in a Thredds server.

Creator(*args, **kwargs)

a model for Creator of the dataset.

DatasetScan(*args, **kwargs)

A datasetscan creating multiple datasets with a single entry.

Documentation(*args, **kwargs)

a model for Documentation of the dataset.

EnhancedCatalog(*args, **kwargs)

a model for enahancedCatalog in a thredds server.

EnhancedCatalogData(*args, **kwargs)

An entry in a thredds enhancedCatalog.

EnhancedDataset(*args, **kwargs)

A dataset representing one single file.

EnhancedDatasetScan(*args, **kwargs)

A datasetscan creating multiple datasets with a single entry.

EnhancedDatasetScanFilters(*args, **kwargs)

A enhanceddatasetscan creating multiple datasets with a single entry.

EnhancedDatasetScanSubs(*args, **kwargs)

A mixin for EnhancedDatasetScanVariables and EnhancedDatasetScanFilters inlines.

EnhancedDatasetScanVariables(*args, **kwargs)

A enhanceddatasetscan 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.

Publisher(*args, **kwargs)

a model for Publisher of the dataset.

SimpleDataset(*args, **kwargs)

A dataset representing one single file.

TDSCatalog(*args, **kwargs)

Represents a catalog in a Thredds server.

TDSServer(*args, **kwargs)

Represents a THREDDS server configuration within a Django application.

WMSConfig(*args, **kwargs)

A representation of a thredds server wmsCongig.

WMSDatasetPath(*args, **kwargs)

Base class for an item in WMSConfig model

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()

Get the content directory of THREDDS.

save_aggregation_components(sender, ...)

Overwrite the xml field in inlines of Aggregation model.

save_catalogref(sender, instance, **kwargs)

Overwrite the xml field in inline of TDSCatalog model.

save_datascan_enhancedcatalog_components(...)

Overwrite the xml field in nested inlines of EnhancedDatasetScan model.

save_enhancedcatalog(sender, instance, **kwargs)

Overwrite the xml field in EnhancedCatalog model.

save_wmsconfig_components(sender, instance, ...)

Overwrite the xml field in inlines of WMSConfig model.

save_wmsoverride_wmsconfing_components(...)

Overwrite the xml field in nested inline of WMSOverride model.

sve_and_write_catalog(sender, instance, **kwargs)

Write the xml field and save the catalog after a post_save or post_delete signal in AggregationDataset, SimpleDataset, DatasetScan, and EnhancedCatalog models.

update_xml_field(sender, instance, **kwargs)

Overwrite the xml field in AggregationDataset, SimpleDataset, DatasetScan, and EnhancedCatalog models.

write_all_objects_tdscatalog_in_tdsconfiguration(...)

Write the xml field of the catalog after a post_save signal in TDSCatalog model.

write_app_setting_and_threddsConfig(sender, ...)

write app_setting.py and threddsConfig.xml after a post_save signal in TDSServer model.

write_catalogs_in_threddsConfig(sender, ...)

Write the xml field of the catalog after a m2m_changed signal in TDSServer model.

write_configrations_of_wmsconfig(sender, ...)

Write the xml field of the catalog after a post_save signal in WMSConfig model.

class tds_control.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

Aggregation type specifying how to combine the files.

catalog

The catalog that holds this entry.

dimension_name

Name of the dimension along we are supposed to join (only relevant for JoinNew and JoinExisting).

url_name

Name of the resulting dataset.

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

Aggregation type specifying how to combine the files.

catalog

The catalog that holds this entry.

dimension_name

Name of the dimension along we are supposed to join (only relevant for JoinNew and JoinExisting).

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

Name of the resulting dataset.

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 tds_control.models.BaseDataset(*args, **kwargs)

Bases: Model

An entry in a thredds catalog.

Classes:

DataType(value)

Available data types for datasets.

Meta()

Abatract in Meta class.

Model Fields:

catalog

The catalog that holds this entry.

data_type

A wrapper for a deferred-loading field.

id

The UUID of the dataset.

name

The name of the dataset

xml

The rendered XML string of the dataset config.

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

Abatract in Meta class.

Attributes:

abstract

abstract = False
catalog

The catalog that holds this entry.

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

The UUID of the dataset.

name

The name of the dataset

xml

The rendered XML string of the dataset config.

class tds_control.models.CatalogRef(*args, **kwargs)

Bases: Model

Represents a reference to a catalog in a Thredds server.

This model is used to keep track of catalog references, linking them to instances of the TDSCatalog model. Each CatalogRef has a unique UUID, a connection to a TDSCatalog instance (for administrative purposes), another connection to a TDSCatalog (to retrieve catalog name and ID), and a title.

uuid

The unique identifier for the catalog reference.

Type:

UUIDField

conn_catalog

A link to TDSCatalog for administrative purposes.

Type:

ForeignKey

catalog

A link to TDSCatalog used for retrieving catalog name and ID.

Type:

ForeignKey

title

The title of the CatalogRef.

Type:

CharField

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.

conn_catalog

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

title

A wrapper for a deferred-loading field.

uuid

A wrapper for a deferred-loading field.

Attributes:

catalog_id

conn_catalog_id

objects

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.

catalog_id
conn_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.

conn_catalog_id
objects = <django.db.models.manager.Manager object>
title

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

uuid

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

class tds_control.models.Creator(*args, **kwargs)

Bases: Model

a model for Creator of the dataset.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

creator_email

//www.ncep.noaa.gov/mail_liaison.shtml

creator_name

creator name e.g. DOC/NOAA/NWS/NCEP.

creator_url

//www.ncep.noaa.gov/

id

A wrapper for a deferred-loading field.

Attributes:

objects

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

creator_email

//www.ncep.noaa.gov/mail_liaison.shtml

Type:

creator email e.g. http

creator_name

creator name e.g. DOC/NOAA/NWS/NCEP

creator_url

//www.ncep.noaa.gov/

Type:

creator url e.g. http

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 tds_control.models.DatasetScan(*args, **kwargs)

Bases: BaseDataset

A datasetscan creating multiple datasets with a single entry.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

catalog

The catalog that holds this entry.

location

The directory to files

path

The path of the dataset.

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

The catalog that holds this entry.

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

The directory to files

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

The path of the dataset. The final path will be a combination of the catalog name and this string.

property relative_path: Path

The location relative to the catalog root location.

render_xml() str

Render this dataset as datasetScan XML tag.

class tds_control.models.Documentation(*args, **kwargs)

Bases: Model

a model for Documentation of the dataset.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

documentation_link

//www.emc.ncep.noaa.gov/modelinfo/index.html

documentation_rights

documentation rights e.g. Freely available.

documentation_title

documentation title e.g. NCEP Model documentation.

id

A wrapper for a deferred-loading field.

Attributes:

objects

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

//www.emc.ncep.noaa.gov/modelinfo/index.html

Type:

documentation link e.g. http

documentation_rights

documentation rights e.g. Freely available

documentation_title

documentation title e.g. NCEP Model documentation

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 tds_control.models.EnhancedCatalog(*args, **kwargs)

Bases: Model

a model for enahancedCatalog in a thredds server.

Classes:

DataType(value)

Available data types for datasets.

ServiceType(value)

Available service types for enahncedCatalog.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

authority

authority e.g. edu.ucar.unidata.

catalog

The catalog that holds this entry.

creator

The creator details of dataset.

data_format

dataFormat e.g. NetCDF.

data_type

Type of the dataset.

documentation

The documentation details of dataset.

id

The UUID of the dataset.

metadata_inherited

Inherit metadata from parent catalog?

name

The name of the dataset

publisher

The publisher details of dataset.

service_type

Web Services of the dataset.

time_coverage_duration

time coverage duration e.g. 14 days.

time_coverage_end

time coverage end e.g. present.

xml

The rendered XML string of the dataset config.

Attributes:

catalog_id

creator_id

documentation_id

enhanceddataset_set

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

enhanceddatasetscan_set

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

enhanceddatasetscansubs_set

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

objects

publisher_id

Methods:

get_data_type_display(*[, field])

get_service_type_display(*[, field])

render_xml()

Render the catalog as xml.

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'
exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

class ServiceType(value)

Bases: TextChoices

Available service types for enahncedCatalog.

Attributes:

both

httpserver

ncdods

both = 'both'
httpserver = 'HTTPServer'
ncdods = 'ncdods'
authority

authority e.g. edu.ucar.unidata

catalog

The catalog that holds this entry.

catalog_id
creator

The creator details of dataset.

creator_id
data_format

dataFormat e.g. NetCDF

data_type

Type of the dataset.

documentation

The documentation details of dataset.

documentation_id
enhanceddataset_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.

enhanceddatasetscan_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.

enhanceddatasetscansubs_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.

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

The UUID of the dataset.

metadata_inherited

Inherit metadata from parent catalog?

name

The name of the dataset

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

The publisher details of dataset.

publisher_id
render_xml() str

Render the catalog as xml.

service_type

Web Services of the dataset.

time_coverage_duration

time coverage duration e.g. 14 days

time_coverage_end

time coverage end e.g. present

xml

The rendered XML string of the dataset config.

class tds_control.models.EnhancedCatalogData(*args, **kwargs)

Bases: Model

An entry in a thredds enhancedCatalog.

Classes:

DataType(value)

Available data types for datasets.

Meta()

Meta class for EnhancedCatalogData.

Model Fields:

data_type

Type of the dataset.

enhanced_catalog

EnhancedCatalog that uses this netcdf file

id

The UUID of the dataset.

name

The name of the dataset

Attributes:

enhanced_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

Meta class for EnhancedCatalogData.

Attributes:

abstract

abstract = False
data_type

Type of the dataset.

enhanced_catalog

EnhancedCatalog that uses this netcdf file

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

The UUID of the dataset.

name

The name of the dataset

class tds_control.models.EnhancedDataset(*args, **kwargs)

Bases: EnhancedCatalogData

A dataset representing one single file.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

data_location

The location of the files that shall be used

enhanced_catalog

EnhancedCatalog that uses this netcdf file

Methods:

get_data_type_display(*[, field])

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

data_location

The location of the files that shall be used

enhanced_catalog

EnhancedCatalog that uses this netcdf file

get_data_type_display(*, field=<django.db.models.fields.CharField: data_type>)
objects = <django.db.models.manager.Manager object>
property relative_path: Path

The location relative to the catalog root location.

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 tds_control.models.EnhancedDatasetScan(*args, **kwargs)

Bases: EnhancedCatalogData

A datasetscan creating multiple datasets with a single entry.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

addTimeCoverage_datasetNameMatchPattern

addTimeCoverage datasetNameMatchPattern e.g. ([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})_eta_211.nc$.

addTimeCoverage_duration

addTimeCoverage duration e.g. 60 hours.

addTimeCoverage_startTimeSubstitutionPattern

00

dataset_location

The directory to scan.

documentation_summary

AWIPS 211 (Q) Regional - CONUS (Lambert Conformal).

enhanced_catalog

EnhancedCatalog that uses this netcdf file

geospatial_lat_max

geospatial lat max e.g. 0.0.

geospatial_lat_min

geospatial lat min e.g. 0.0.

geospatial_lon_max

geospatial lon max e.g. 0.0.

geospatial_lon_min

geospatial lon min e.g. 0.0.

path

The path of the dataset.

Attributes:

enhanceddatasetscanfilters_set

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

enhanceddatasetscanvariables_set

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

objects

relative_path

The location relative to the catalog root location.

Methods:

get_data_type_display(*[, field])

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

addTimeCoverage_datasetNameMatchPattern

addTimeCoverage datasetNameMatchPattern e.g. ([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})_eta_211.nc$

addTimeCoverage_duration

addTimeCoverage duration e.g. 60 hours

addTimeCoverage_startTimeSubstitutionPattern

00

Type:

addTimeCoverage startTimeSubstitutionPattern e.g. $1-$2-$3T$4

Type:

00

dataset_location

The directory to scan.

documentation_summary

AWIPS 211 (Q) Regional - CONUS (Lambert Conformal).

Type:

documentation summary e.g. NCEP North American Model

enhanced_catalog

EnhancedCatalog that uses this netcdf file

enhanceddatasetscanfilters_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.

enhanceddatasetscanvariables_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.

geospatial_lat_max

geospatial lat max e.g. 0.0

geospatial_lat_min

geospatial lat min e.g. 0.0

geospatial_lon_max

geospatial lon max e.g. 0.0

geospatial_lon_min

geospatial lon min e.g. 0.0

get_data_type_display(*, field=<django.db.models.fields.CharField: data_type>)
objects = <django.db.models.manager.Manager object>
path

The path of the dataset. The final path will be a combination of the catalog name and this string.

property relative_path: Path

The location relative to the catalog root location.

class tds_control.models.EnhancedDatasetScanFilters(*args, **kwargs)

Bases: EnhancedDatasetScanSubs

A enhanceddatasetscan creating multiple datasets with a single entry.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

enhanced_catalog_datascan

The enhancedCatalog that holds this entry.

enhanceddatasetscansubs_ptr

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

wildcard

filter string e.g. *eta_211.nc.

Attributes:

enhanced_catalog_datascan_id

enhanceddatasetscansubs_ptr_id

relative_path

The location relative to the catalog root location.

exception DoesNotExist

Bases: DoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

enhanced_catalog_datascan

The enhancedCatalog that holds this entry.

enhanced_catalog_datascan_id
enhanceddatasetscansubs_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.

enhanceddatasetscansubs_ptr_id
property relative_path: Path

The location relative to the catalog root location.

wildcard

filter string e.g. *eta_211.nc

class tds_control.models.EnhancedDatasetScanSubs(*args, **kwargs)

Bases: Model

A mixin for EnhancedDatasetScanVariables and EnhancedDatasetScanFilters inlines.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

enhanced_catalog_sub

EnhancedCatalog that uses this netcdf file

id

The UUID of the dataset.

Attributes:

enhanced_catalog_sub_id

enhanceddatasetscanfilters

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

enhanceddatasetscanvariables

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

objects

relative_path

The location relative to the enhancedCatalog root location.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

enhanced_catalog_sub

EnhancedCatalog that uses this netcdf file

enhanced_catalog_sub_id
enhanceddatasetscanfilters

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.

enhanceddatasetscanvariables

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.

id

The UUID of the dataset.

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

The location relative to the enhancedCatalog root location.

class tds_control.models.EnhancedDatasetScanVariables(*args, **kwargs)

Bases: EnhancedDatasetScanSubs

A enhanceddatasetscan creating multiple datasets with a single entry.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

enhanced_catalog_datascan

The enhancedCatalog that holds this entry.

enhanceddatasetscansubs_ptr

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

presented_name

presented name e.g. Geopotential height, gpm.

units

units e.g. gp m.

variable_name

variable name e.g. Z_sfc.

veocabulary_name

veocabulary name e.g. geopotential_height.

Attributes:

enhanced_catalog_datascan_id

enhanceddatasetscansubs_ptr_id

relative_path

The location relative to the catalog root location.

exception DoesNotExist

Bases: DoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

enhanced_catalog_datascan

The enhancedCatalog that holds this entry.

enhanced_catalog_datascan_id
enhanceddatasetscansubs_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.

enhanceddatasetscansubs_ptr_id
presented_name

presented name e.g. Geopotential height, gpm

property relative_path: Path

The location relative to the catalog root location.

units

units e.g. gp m

variable_name

variable name e.g. Z_sfc

veocabulary_name

veocabulary name e.g. geopotential_height

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

Bases: Model

Base class for an item for an aggregation dataset.

Classes:

Meta()

Meta options for the model.

Model Fields:

aggregation

Aggregation that uses this netcdf file

location

The location of the files that shall be used

Attributes:

aggregation_id

relative_path

The location relative to the catalog root location.

class Meta

Bases: object

Meta options for the model.

Attributes:

abstract

abstract = False
aggregation

Aggregation that uses this netcdf file

aggregation_id
location

The location of the files that shall be used

property relative_path: Path

The location relative to the catalog root location.

class tds_control.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

Aggregation that uses this netcdf file

id

A wrapper for a deferred-loading field.

Attributes:

objects

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

aggregation

Aggregation that uses this netcdf file

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 tds_control.models.NetCDFScan(*args, **kwargs)

Bases: NetCDFBase

A scan to add multiple aggregations.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

aggregation

Aggregation that uses this netcdf file

id

A wrapper for a deferred-loading field.

regexp

The regular expression to use for finding files.

subdirs

Scan sub directories above the specified location

Attributes:

objects

relative_path

The location relative to the catalog root location.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

aggregation

Aggregation that uses this netcdf file

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

The regular expression to use for finding files.

property relative_path: Path

The location relative to the catalog root location.

subdirs

Scan sub directories above the specified location

class tds_control.models.Publisher(*args, **kwargs)

Bases: Model

a model for Publisher of the dataset.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

id

A wrapper for a deferred-loading field.

publisher_email

publisher email e.g. support@unidata.ucar.edu.

publisher_name

publisher name e.g. UCAR/UNIDATA.

publisher_url

//www.unidata.ucar.edu/

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>
publisher_email

publisher email e.g. support@unidata.ucar.edu

publisher_name

publisher name e.g. UCAR/UNIDATA

publisher_url

//www.unidata.ucar.edu/

Type:

publisher url e.g. http

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

Bases: BaseDataset

A dataset representing one single file.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

catalog

The catalog that holds this entry.

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

The catalog that holds this entry.

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: Path

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 tds_control.models.TDSCatalog(*args, **kwargs)

Bases: Model

Represents a catalog in a Thredds server.

This model stores information about various configurations and services available in a Thredds Data Server (TDS) catalog. Each catalog has a unique name and various boolean fields indicating the activation of specific TDS features or services.

tds4

Indicates if Thredds Data Server version 4 is used.

Type:

BooleanField

resolver

Indicates if enhanced catalog features are enabled.

Type:

BooleanField

odap

Indicates if OpenDAP is activated.

Type:

BooleanField

dap4

Indicates if DAP4 is activated.

Type:

BooleanField

http

Indicates if HTTPServer is activated.

Type:

BooleanField

wcs

Indicates if WCS (Web Coverage Service) is activated.

Type:

BooleanField

wms

Indicates if WMS (Web Map Service) is activated.

Type:

BooleanField

ncssGrid

Indicates if NetcdfSubset for grid data is activated.

Type:

BooleanField

ncssPoint

Indicates if NetcdfSubset for point data is activated.

Type:

BooleanField

cdmremote

Indicates if CdmRemote is activated.

Type:

BooleanField

iso

Indicates if ISO metadata standard is activated.

Type:

BooleanField

ncml

Indicates if NCML (NetCDF Markup Language) is activated.

Type:

BooleanField

uddc

Indicates if UDDC (Unified Data Distribution Capability) is activated.

Type:

BooleanField

name

Unique name of the catalog.

Type:

SlugField

xml

Rendered XML string configuration of the catalog.

Type:

TextField

render_xml()

Renders the catalog as XML based on its configuration.

xml_path()

Computes the file path for the catalog’s XML configuration.

write_xml()

Writes the catalog’s XML configuration to disk.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Attributes:

aggregationdataset_set

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

catalog

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

conncatalog

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

datasetscan_set

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

enhancedcatalog_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

Computes the file path for the catalog's XML configuration.

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.

resolver

A wrapper for a deferred-loading field.

tds4

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()

Renders the catalog configuration as an XML string.

write_xml()

Writes the catalog's XML configuration 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.

catalog

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.

conncatalog

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.

dap4

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

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.

enhancedcatalog_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

Renders the catalog configuration as an XML string.

Returns:

The XML representation of the catalog’s configuration.

Return type:

str

resolver

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

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.

tds4

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

tdsserver_set

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

Writes the catalog’s XML configuration to disk.

The XML configuration is written to the path computed by xml_path.

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: Path

Computes the file path for the catalog’s XML configuration.

The path is determined based on whether the catalog is an enhanced catalog or not.

Returns:

The file path to the catalog’s XML configuration.

Return type:

Path

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

Bases: Model

Represents a THREDDS server configuration within a Django application. This model stores various settings related to server operation, CORS (Cross-Origin Resource Sharing), OPeNDAP, WCS (Web Coverage Service), WMS (Web Map Service), and other related services.

name

A unique slug identifying the THREDDS server.

Type:

models.SlugField

catalogs

A set of root catalogs used in the TDS Server.

Type:

models.ManyToManyField

cors_activation

Indicates if CORS (Cross-Origin Resource Sharing) is enabled.

Type:

models.BooleanField

cors_maxAge

Specifies the maxAge for CORS.

Type:

models.IntegerField

cors_allowed_methods

Defines the allowed methods for CORS.

Type:

models.CharField

cors_allowed_headers

Lists the allowed headers for CORS.

Type:

models.CharField

cors_allowed_origin

Sets the allowed origin for CORS.

Type:

models.CharField

netcdf_subset_service_activation

Enables or disables the NetcdfSubsetService.

Type:

models.BooleanField

netcdfsubsetservice_scour

Configures the scour setting for the NetcdfSubsetService.

Type:

models.CharField

netcdfsubsetservice_maxAge

Specifies the maxAge for the NetcdfSubsetService.

Type:

models.CharField

opendap_activation

Enables or disables OPeNDAP (Open-source Project for a Network Data Access Protocol).

Type:

models.BooleanField

opendap_ascLimit

Sets the ascLimit for OPeNDAP.

Type:

models.IntegerField

opendap_binLimit

Specifies the binLimit for OPeNDAP.

Type:

models.IntegerField

wcs_activation

Enables or disables WCS (Web Coverage Service).

Type:

models.BooleanField

wcs_allowRemote

Allows or disallows remote WCS.

Type:

models.BooleanField

wcs_scour

Sets the scour setting for WCS.

Type:

models.CharField

wcs_maxAge

Specifies the maxAge for WCS.

Type:

models.CharField

wms_activation

Enables or disables WMS (Web Map Service).

Type:

models.BooleanField

wms_allowRemote

Allows or disallows remote WMS.

Type:

models.BooleanField

wms_max_image_width

Sets the maximum image width for WMS.

Type:

models.IntegerField

wms_max_image_height

Specifies the maximum image height for WMS.

Type:

models.IntegerField

ncml_allow

Enables or disables ncML.

Type:

models.BooleanField

uddc_allow

Enables or disables UDDC (Unidata’s Dataset Discovery Convention).

Type:

models.BooleanField

iso_allow

Enables or disables ISO (International Organization for Standardization) formats.

Type:

models.BooleanField

xml

Stores the rendered XML string of the threddsConfig.

Type:

models.TextField

render_xml()

Renders the XML for the catalog.

write_xml()

Writes the XML file to disk.

internal_url()

Returns the internal URL of the THREDDS server.

public_url()

Returns the public URL of the THREDDS server.

Classes:

CorsMethods(value)

Enumeration of methods that are available for CORS settings in the THREDDS server.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Attributes:

catalogs

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

internal_url

Returns the internal URL where the THREDDS server can be accessed.

objects

public_url

Returns the public URL where the 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

A wrapper for a deferred-loading field.

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

A wrapper for a deferred-loading field.

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

A wrapper for a deferred-loading field.

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

A wrapper for a deferred-loading field.

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

A wrapper for a deferred-loading field.

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()

Renders the catalog as XML for the THREDDS server.

write_xml()

Writes the XML configuration file to disk for the THREDDS server.

class CorsMethods(value)

Bases: TextChoices

Enumeration of methods that are available for CORS settings in the THREDDS server.

GET

Represents the HTTP GET method.

Type:

str

POST

Represents the HTTP POST method.

Type:

str

Attributes:

GET

POST

GET = 'GET'
POST = 'POST'
exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

catalogs

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.

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

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

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

Returns the internal URL where the 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.

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

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

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

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

property public_url: str

Returns the public URL where the THREDDS server can be publicly accessed.

render_xml() str

Renders the catalog as XML for the THREDDS server.

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

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

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

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_width

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

Writes the XML configuration file to disk for the THREDDS server.

xml

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

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

Bases: Model

A representation of a thredds server wmsCongig.

Classes:

ColorBar(value)

ColorBar choices.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

defaults_Color_bands

defaults Number of color bands(default) e.g 20

defaults_Lower_range

defaults Lower range of variable(default) e.g. -50.

defaults_Upper_range

defaults Upper range of variable(default) e.g 50

defaults_allowFeatureInfo

defaults allow FeatureInfo

defaults_colorbar

defaults Select colorbar name (default)

defaults_intervalTime

defaults interval Time

defaults_logScaling

defaults log Scaling

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

ColorBar choices.

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

defaults Number of color bands(default) e.g 20

defaults_Lower_range

defaults Lower range of variable(default) e.g. -50

defaults_Upper_range

defaults Upper range of variable(default) e.g 50

defaults_allowFeatureInfo

defaults allow FeatureInfo

defaults_colorbar

defaults Select colorbar name (default)

defaults_intervalTime

defaults interval Time

defaults_logScaling

defaults log Scaling

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 tds_control.models.WMSDatasetPath(*args, **kwargs)

Bases: Model

Base class for an item in WMSConfig model

Classes:

Meta()

Abatract in Meta class.

Model Fields:

allow_feature_info

datasetPath allow FeatureInfo

color_bands

datasetPath Number of color bands(datasetPath) e.g 20

colorbar

datasetPath Select colorbar name (datasetPath)

interval_time

datasetPath interval Time

log_scaling

datasetPath log Scaling

lower_range

datasetPath Lower range of variable(datasetPath) e.g. -50.

upper_range

datasetPath Upper range of variable(datasetPath) e.g 50

wms

WMSConfig that uses this netcdf file

Methods:

get_colorbar_display(*[, field])

Attributes:

wms_id

class Meta

Bases: object

Abatract in Meta class.

Attributes:

abstract

abstract = False
allow_feature_info

datasetPath allow FeatureInfo

color_bands

datasetPath Number of color bands(datasetPath) e.g 20

colorbar

datasetPath Select colorbar name (datasetPath)

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

datasetPath interval Time

log_scaling

datasetPath log Scaling

lower_range

datasetPath Lower range of variable(datasetPath) e.g. -50

upper_range

datasetPath Upper range of variable(datasetPath) e.g 50

wms

WMSConfig that uses this netcdf file

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

Bases: WMSDatasetPath

WMSOverride parameters in WMSConfig.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

directory

Direcrtory of model. e.g testAll/*eta_211.nc.

id

A wrapper for a deferred-loading field.

single_file

The location of the files that shall be used

wms

WMSConfig that uses this netcdf file

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

Direcrtory of model. e.g testAll/*eta_211.nc

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: Path

The location relative to the catalog root location.

single_file

The location of the files that shall be used

wms

WMSConfig that uses this netcdf file

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 tds_control.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

Name of variable

unit

Unit of variable

wms

WMSConfig that uses this netcdf file

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

Name of variable

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

Unit of variable

wms

WMSConfig that uses this netcdf file

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

Bases: WMSDatasetPath

WMSVariable parameters in WMSConfig.

Miscellaneous:

DoesNotExist

MultipleObjectsReturned

Model Fields:

category

for connection to WMSOverride in inline feature

id

A wrapper for a deferred-loading field.

name

Name of variable

wms

WMSConfig that uses this netcdf file

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

for connection to WMSOverride in inline feature

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

Name of variable

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

The location relative to the catalog root location.

wms

WMSConfig that uses this netcdf file

tds_control.models.get_content_dir()

Get the content directory of THREDDS.

tds_control.models.save_aggregation_components(sender, instance: NetCDFFile | NetCDFScan, **kwargs)

Overwrite the xml field in inlines of Aggregation model.

tds_control.models.save_catalogref(sender, instance: CatalogRef, **kwargs)

Overwrite the xml field in inline of TDSCatalog model.

tds_control.models.save_datascan_enhancedcatalog_components(sender, instance: EnhancedDatasetScanVariables | EnhancedDatasetScanFilters, **kwargs)

Overwrite the xml field in nested inlines of EnhancedDatasetScan model.

tds_control.models.save_enhancedcatalog(sender, instance: EnhancedDataset | EnhancedDatasetScan, **kwargs)

Overwrite the xml field in EnhancedCatalog model.

tds_control.models.save_wmsconfig_components(sender, instance: WMSStandardName | WMSOverride, **kwargs)

Overwrite the xml field in inlines of WMSConfig model.

tds_control.models.save_wmsoverride_wmsconfing_components(sender, instance: WMSVariable, **kwargs)

Overwrite the xml field in nested inline of WMSOverride model.

tds_control.models.sve_and_write_catalog(sender, instance: AggregationDataset | SimpleDataset | DatasetScan | EnhancedCatalog, **kwargs)

Write the xml field and save the catalog after a post_save or post_delete signal in AggregationDataset, SimpleDataset, DatasetScan, and EnhancedCatalog models.

tds_control.models.update_xml_field(sender, instance: AggregationDataset | SimpleDataset | DatasetScan | EnhancedCatalog, **kwargs)

Overwrite the xml field in AggregationDataset, SimpleDataset, DatasetScan, and EnhancedCatalog models.

tds_control.models.write_all_objects_tdscatalog_in_tdsconfiguration(sender, instance: TDSCatalog, created: bool, **kwargs)

Write the xml field of the catalog after a post_save signal in TDSCatalog model.

tds_control.models.write_app_setting_and_threddsConfig(sender, instance: TDSServer, created: bool, **kwargs)

write app_setting.py and threddsConfig.xml after a post_save signal in TDSServer model.

tds_control.models.write_catalogs_in_threddsConfig(sender, instance: TDSServer, **kwargs)

Write the xml field of the catalog after a m2m_changed signal in TDSServer model.

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

Write the xml field of the catalog after a post_save signal in WMSConfig model.