asap.module.schemas package
Submodules
asap.module.schemas.renderclient_schemas module
- class asap.module.schemas.renderclient_schemas.FeatureExtractionParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
SIFTfdSize
SIFT feature descriptor size – samples per row and column. 8 if excluded or None
NA
int
SIFTminScale
SIFT minimum scale – minSize * minScale < size < maxSize * maxScale. 0.5 if excluded or None
NA
float
SIFTmaxScale
SIFT maximum scale – minSize * minScale < size < maxSize * maxScale. 0.85 if excluded or None
NA
float
SIFTsteps
SIFT steps per scale octave. 3 if excluded or None
NA
int
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.FeatureRenderClipParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
clipWidth
Full scale pixels to include in clipped rendering of LEFT/RIGHT oriented tile pairs. Will not LEFT/RIGHT clip if excluded or None.
NA
int
clipHeight
Full scale pixels to include in clipped rendering of TOP/BOTTOM oriented tile pairs. Will not TOP/BOTTOM clip if excluded or None.
NA
int
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.FeatureRenderParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
renderScale
Scale at which image tiles will be rendered. 1.0 (full scale) if excluded or None
NA
float
renderWithFilter
Render tiles using default filtering (0 and 255 pixel values replaced with integer in U(64, 191), followed by default NormalizeLocalContrast). True if excluded or None
NA
bool
renderWithoutMask
Render tiles without mipMapLevel masks. True if excluded or None
NA
bool
renderFullScaleWidth
Full scale width for all rendered tiles
NA
int
renderFullScaleHeight
Full scale height for all rendered tiles
NA
int
fillWithNoise
Fill each canvas image with noise prior to rendering. True if excluded or None
NA
bool
renderFilterListName
Apply specified filter list to all renderings
NA
str
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.FeatureStorageParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
rootFeatureDirectory
Root directory for saved feature lists. Features extracted from dynamically rendered canvases if excluded or None.
NA
str
requireStoredFeatures
Whether to throw an exception in case features stored in rootFeatureDirectory cannot be found. Missing features are extracted from dynamically rendered canvases if excluded or None
NA
bool
maxFeatureCacheGb
Maximum size of feature cache, in GB. 2GB if excluded or None
NA
int
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.MatchDerivationParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
matchRod
Ratio of first to second nearest neighbors used as a cutoff in matching features. 0.92 if excluded or None
NA
float
matchModelType
Model to match for RANSAC filtering. ‘AFFINE’ if excluded or None
NA
str
matchIterations
RANSAC filter iterations. 1000 if excluded or None
NA
int
matchMaxEpsilon
no description
NA
float
matchMinInlierRatio
Minimal ratio of inliers to candidates for successful RANSAC filtering. 0.0 if excluded or None
NA
float
matchMinNumInliers
Minimum absolute number of inliers for successful RANSAC filtering. 4 if excluded or None
NA
int
matchMaxNumInliers
Maximum absolute number of inliers allowed after RANSAC filtering. unlimited if excluded or None
NA
int
matchMaxTrust
Maximum trust for filtering such that candidates with cost larger than matchMaxTrust * median cost are rejected. 3.0 if excluded or None
NA
float
matchFilter
whether to match one set of matches, or multiple sets. And, whether to keep them separate, or aggregate them. SINGLE_SET if excluded or None.
NA
str
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.MatchWebServiceParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
WebServiceParameters
key
description
default
field_type
json_type
baseDataUrl
api endpoint url e.g. http://<host>[:port]/render-ws/v1
NA
str
owner
owner of match collection
NA
str
collection
match collection name
NA
str
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.MaterializedBoxParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
stack
stack fromw which boxes will be materialized
(REQUIRED)
str
rootDirectory
directory in which materialization directory structure will be created (structure is <rootDirectory>/<project>/<stack>/<width>x<height>/<mipMapLevel>/<z>/<row>/<col>.<fmt>)
(REQUIRED)
str
width
width of flat rectangular tiles to generate
(REQUIRED)
int
height
height of flat rectangular tiles to generate
(REQUIRED)
int
maxLevel
maximum mipMapLevel to generate.
0
int
fmt
image format to generate mipmaps – PNG if not specified
NA
str
maxOverviewWidthAndHeight
maximum pixel size for width or height of overview image. If excluded or 0, no overview generated.
NA
int
skipInterpolation
whether to skip interpolation (e.g. DMG data)
NA
bool
binaryMask
whether to use binary mask (e.g. DMG data)
NA
bool
label
whether to generate single color tile labels rather than actual images
NA
bool
createIGrid
whther to create an IGrid file
NA
bool
forceGeneration
whether to regenerate existing tiles
NA
bool
renderGroup
index (1-n) identifying coarse portion of layer to render
NA
int
numberOfRenderGroups
used in conjunction with renderGroup, total number of groups being used
NA
int
filterListName
Apply specified filter list to all renderings
NA
str
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.RenderParametersMatchWebServiceParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
MatchWebServiceParameters
key
description
default
field_type
json_type
baseDataUrl
api endpoint url e.g. http://<host>[:port]/render-ws/v1
NA
str
owner
owner of match collection
NA
str
collection
match collection name
NA
str
render
no description
NA
dict
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.RenderParametersRenderWebServiceParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
RenderWebServiceParameters
key
description
default
field_type
json_type
baseDataUrl
api endpoint url e.g. http://<host>[:port]/render-ws/v1
NA
str
owner
owner of target collection
NA
str
project
project fo target collection
NA
str
render
no description
NA
dict
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.RenderWebServiceParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
WebServiceParameters
key
description
default
field_type
json_type
baseDataUrl
api endpoint url e.g. http://<host>[:port]/render-ws/v1
NA
str
owner
owner of target collection
NA
str
project
project fo target collection
NA
str
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.WebServiceParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
baseDataUrl
api endpoint url e.g. http://<host>[:port]/render-ws/v1
NA
str
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.renderclient_schemas.ZRangeParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
minZ
minimum Z integer
NA
int
maxZ
maximum Z integer
NA
int
- opts = <marshmallow.schema.SchemaOpts object>
asap.module.schemas.schemas module
- class asap.module.schemas.schemas.RenderClientParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
host
render host
(REQUIRED)
str
port
render post integer
(REQUIRED)
int
owner
render default owner
(REQUIRED)
str
project
render default project
(REQUIRED)
str
client_scripts
path to render client scripts
(REQUIRED)
str
memGB
string describing java heap memory (default 5G)
5G
str
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.schemas.RenderParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
ArgSchema
This schema is designed to be a schema_type for an ArgSchemaParser object
key
description
default
field_type
json_type
input_json
file path of input json file
NA
str
output_json
file path to output json file
NA
str
log_level
set the logging level of the module
ERROR
str
render
parameters to connect to render server
(REQUIRED)
dict
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.schemas.TemplateOutputParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
output_value
an output of the module
(REQUIRED)
str
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.schemas.TemplateParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
RenderParameters
This schema is designed to be a schema_type for an ArgSchemaParser object
key
description
default
field_type
json_type
input_json
file path of input json file
NA
str
output_json
file path to output json file
NA
str
log_level
set the logging level of the module
ERROR
str
render
parameters to connect to render server
(REQUIRED)
dict
example
an example
(REQUIRED)
str
default_val
an example with a default
a default value
str
- opts = <marshmallow.schema.SchemaOpts object>
asap.module.schemas.spark_schemas module
- class asap.module.schemas.spark_schemas.SparkOptions(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
jarfile
spark jar to call java spark command
(REQUIRED)
str
className
spark class to call
(REQUIRED)
str
driverMemory
spark driver memory (important for local spark)
6g
str
memory
Memory required for spark job
NA
str
sparkhome
Spark home directory containing bin/spark_submit
(REQUIRED)
str
spark_files
list of spark files to add to the spark submit command
NA
str
spark_conf
dictionary of key value pairs to add to spark_submit as –conf key=value
NA
?
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.spark_schemas.SparkParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
SparkOptions
key
description
default
field_type
json_type
jarfile
spark jar to call java spark command
(REQUIRED)
str
className
spark class to call
(REQUIRED)
str
driverMemory
spark driver memory (important for local spark)
6g
str
memory
Memory required for spark job
NA
str
sparkhome
Spark home directory containing bin/spark_submit
(REQUIRED)
str
spark_files
list of spark files to add to the spark submit command
NA
str
spark_conf
dictionary of key value pairs to add to spark_submit as –conf key=value
NA
?
masterUrl
spark master url. For local execution local[num_procs,num_retries]
(REQUIRED)
str
- opts = <marshmallow.schema.SchemaOpts object>
asap.module.schemas.stack_schemas module
- class asap.module.schemas.stack_schemas.InputStackParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
RenderParameters
,ZValueParameters
,OverridableParameterSchema
template schema for schemas which take input from a stack
This schema is designed to be a schema_type for an ArgSchemaParser object
key
description
default
field_type
json_type
minZ
no description
NA
int
maxZ
no description
NA
int
z
no description
NA
int
zValues
no description
NA
int
input_json
file path of input json file
NA
str
output_json
file path to output json file
NA
str
log_level
set the logging level of the module
ERROR
str
render
parameters to connect to render server
(REQUIRED)
dict
input_stack
no description
(REQUIRED)
str
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.stack_schemas.OutputStackParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
RenderParameters
,ZValueParameters
,ProcessPoolParameters
,OverridableParameterSchema
template schema for writing tilespecs to an output stack
This schema is designed to be a schema_type for an ArgSchemaParser object
key
description
default
field_type
json_type
pool_size
no description
1
int
minZ
no description
NA
int
maxZ
no description
NA
int
z
no description
NA
int
zValues
no description
NA
int
input_json
file path of input json file
NA
str
output_json
file path to output json file
NA
str
log_level
set the logging level of the module
ERROR
str
render
parameters to connect to render server
(REQUIRED)
dict
output_stack
no description
(REQUIRED)
str
close_stack
no description
False
bool
overwrite_zlayer
no description
False
bool
output_stackVersion
no description
NA
dict
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.stack_schemas.OverridableParameterSchema(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.stack_schemas.ProcessPoolParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
pool_size
no description
1
int
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.stack_schemas.RenderCycle(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
number
no description
NA
int
stepNumber
no description
NA
int
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.stack_schemas.RenderMipMapPathBuilder(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
rootPath
no description
NA
str
numberOfLevels
no description
NA
int
extension
no description
NA
str
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.stack_schemas.RenderStackVersion(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
DefaultSchema
key
description
default
field_type
json_type
createTimestamp
no description
NA
str
versionNotes
no description
NA
str
cycleNumber
no description
NA
int
cycleStepNumber
no description
NA
int
stackResolutionX
no description
NA
float
stackResolutionY
no description
NA
float
stackResolutionZ
no description
NA
float
materializedBoxRootPath
no description
NA
str
mipmapPathBuilder
no description
NA
dict
cycle
no description
NA
dict
stackResolutionValues
no description
NA
int
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.stack_schemas.StackTransitionParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
OutputStackParameters
,InputStackParameters
template schema for schemas which take input from one stack, perform (mostly render-python based) operations on tiles from that stack, and output tiles to another stack.
This schema is designed to be a schema_type for an ArgSchemaParser object
key
description
default
field_type
json_type
pool_size
no description
1
int
minZ
no description
NA
int
maxZ
no description
NA
int
z
no description
NA
int
zValues
no description
NA
int
input_json
file path of input json file
NA
str
output_json
file path to output json file
NA
str
log_level
set the logging level of the module
ERROR
str
render
parameters to connect to render server
(REQUIRED)
dict
input_stack
no description
(REQUIRED)
str
output_stack
no description
(REQUIRED)
str
close_stack
no description
False
bool
overwrite_zlayer
no description
False
bool
output_stackVersion
no description
NA
dict
- opts = <marshmallow.schema.SchemaOpts object>
- class asap.module.schemas.stack_schemas.ZValueParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]
Bases:
OverridableParameterSchema
template schema which interprets z values on which to act assumes a hierarchy such that minZ, maxZ are superceded by z which is superceded by zValues.
key
description
default
field_type
json_type
minZ
no description
NA
int
maxZ
no description
NA
int
z
no description
NA
int
zValues
no description
NA
int
- opts = <marshmallow.schema.SchemaOpts object>