Models¶
-
class
ncdjango.models.
Service
¶ A service maps to a single NetCDF dataset. Services contain general metadata (name, description), and information about the data extend, projection, and support for time.
-
name
¶ The service name to be presented via web interfaces.
-
description
¶ A description of the service, to be presented via web interfaces.
-
data_path
¶ The path to the NetCDF dataset, relative to NC_SERVICE_DATA_ROOT.
-
projection
¶ The data projection, as a PROJ4 string.
-
full_extent
¶ A bounding box representing the full extent of the service data.
-
initial_extent
¶ A bounding box representing the initial extent of the service.
-
supports_time
¶ Does this service support time?
-
time_start
¶ The first time step available for this service.
-
time_end
¶ The last time step available for this service.
-
time_interval
¶ The number of
time_interval_units
between each step.
-
time_interval_units
¶ - The units used for
time_interval
. Can be one of: milliseconds
seconds
minutes
hours
days
weeks
months
years
decades
centuries
- The units used for
-
calendar
¶ - The calendar to use for time calculations. Can be one of:
standard
(Standard, gregorian calendar)noleap
(Like the standard calendar, but without leap days)360
(Consistent calendar with 30-day months, 360-day years)
-
render_top_layer_only
¶ If
True
for multi-variable services, only the top layer will be rendered by default. Defaults toTrue
.
-
-
class
ncdjango.models.
Variable
¶ A variable in a map service. This is usually presented as a layer in a web interface. Each service may have one or more variables. Each variable maps to a variable in the NetCDF dataset.
-
time_stops
¶ Valid time steps for this service as a list of datetime objects. (read-only)
-
index
¶ Order of this variable in a list.
-
variable
¶ Name of the variable in the NetCDF dataset.
-
projection
¶ The data projection, as a PROJ4 string.
-
x_dimension
¶ The name of the x dimension of this variable in the NetCDF dataset.
-
y_dimension
¶ The name of the y dimension of this variable in the NetCDF dataset.
-
name
¶ The variable name to be presented via web interfaces.
-
description
¶ A description of the variable, to be presented via web interfaces.
-
renderer
¶ The default renderer to use for this variable. See https://github.com/consbio/clover/tree/master/clover/render/renderers for available renderers.
-
full_extent
¶ A bounding box representing the full extent of the variable data.
-
supports_time
¶ Does this variable support time?
-
time_dimension
¶ The name of the time dimension of this variable in the NetCDF dataset.
-
time_start
¶ The first time step available for this variable.
-
time_end
¶ The last time step available for this variable.
-
time_steps
¶ The number of time steps available for this variable.
-
-
class
ncdjango.models.
ProcessingJob
¶ An active, completed, or failed geoprocessing job.
-
status
¶ The status of the celery task for this job. (read only)
-
uuid
¶ A unique ID for this job. Usually provided to the client to query the job status.
-
job
¶ The registered name of the job. See NC_REGISTERED_JOBS.
-
user
¶ A foreign key to the
User
model, orNone
if the user is not logged in.
-
user_ip
¶ The IP address of the user who initiated the job.
-
created
¶ When the job was created.
-
celery_id
¶ The celery task ID.
-
inputs
¶ A JSON representation of the job inputs.
-
outputs
¶ A JSON representation of the job outputs.
-
-
class
ncdjango.models.
ProcessingResultService
¶ A result service is created from the raster output of a geoprocessing job. This model tracks which services are automatically generated from job results.
-
job
¶ A foreign key to the
ProcessingJob
model.
-
is_temporary
¶ Temporary services will be cleaned up when the
ncdjango.geoprocessing.celery_tasks.cleanup_temporary_services
celery task is run if they are older than NC_MAX_TEMPORARY_SERVICE_AGE.
-
created
¶ The date the result service was created.
-