public class CVHull2Raster extends TypedAtomicActor
This actor creates a spatial raster grid usng the ConvexHull polygon. Raster points within the ConvexHull are set to a value of 1. Points outside have a value of "NO_DATA". The raster is thus a 'mask'.
'hullFileName' is a text file with the (x,y) values of the convex hull (one
pair per line, space delimited)
'rasterFileName' is the name to be given to the raster output
'numrows' is the number of rows for the raster
'numcols' is the number of columns for the raster
'xllcorner' is the x value for the lower left corner (if empty, set to the
minimum x in the convexHull)
'yllcorner' is the x value for the lower left corner (if empty set to the
minimum x in the convexHull)
'cellsize' is the (square) cellsize (if empty, 50 cells in x direction are
assumed; and nuber of y-cells (ncols) is recalculated to y-extent of
convexHull
This is a pure java implementation equivalent to the GISRasterActor based on grass JNI
Entity.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
cellsize
Cell size of the grid to be created (assumed square).
|
TypedIOPort |
hullFileName
The name of the Convex Hull file of data points.
|
Parameter |
numcols
Number of columns in the grid to be created.
|
Parameter |
numrows
Number of rows in the grid to be created.
|
TypedIOPort |
rasterFileName
The name to be given to the resulting raster grid file
|
TypedIOPort |
rasterFileResult
The output raster file result (it is in *.asc format).
|
Parameter |
useDisk
Boolean setting to determine whether or not to use disk for storing grid
data rather than putting all data in RAM arrays.
|
Parameter |
xllcorner
x-value of the lower left corner of the grid to be created.
|
Parameter |
yllcorner
y-value of the lower left corner of the grid to be created.
|
_typesValid
_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
COMPLETED, NOT_READY, STOP_ITERATING
Constructor and Description |
---|
CVHull2Raster(CompositeEntity container,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
fire()
Do nothing.
|
void |
initialize()
Initialize this actor.
|
boolean |
prefire()
Return true.
|
_containedTypeConstraints, _customTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints
_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, connectionsChanged, createReceivers, declareDelayDependency, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, postfire, preinitialize, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer, stop, stopFire, terminate, wrapup
_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName
_addPort, _description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList
isFireFunctional, isStrict, iterate, postfire, stop, stopFire, terminate
addInitializable, preinitialize, removeInitializable, wrapup
description, getContainer, getDisplayName, getFullName, getName, getName, setName
getDerivedLevel, getDerivedList, propagateValue
public Parameter xllcorner
public Parameter yllcorner
public Parameter cellsize
public Parameter useDisk
public TypedIOPort hullFileName
public TypedIOPort rasterFileName
public TypedIOPort rasterFileResult
public CVHull2Raster(CompositeEntity container, java.lang.String name) throws NameDuplicationException, IllegalActionException
public void initialize() throws IllegalActionException
AtomicActor
initialize
in interface Initializable
initialize
in class AtomicActor<TypedIOPort>
IllegalActionException
- If a derived class throws it.public boolean prefire() throws IllegalActionException
AtomicActor
prefire
in interface Executable
prefire
in class AtomicActor<TypedIOPort>
IllegalActionException
- Not thrown in this base class.public void fire() throws IllegalActionException
AtomicActor
fire
in interface Executable
fire
in class AtomicActor<TypedIOPort>
IllegalActionException
- Not thrown in this base class.