How to pass a raster to a GP service as a GPRasterDataLayer?

Discussion created by sbalabanov on May 12, 2014
I am new to ArcGIS Server and the Javascript API. I have published a GP service whose main input is a raster, which the service has translated to the data type GPRasterDataLayer. How do I create this layer in javascript? There is no corresponding class for it in the API reference. I have tried passing the service an ImageServiceLayer but that is obviously not the solution, as I get an "invalid parameters" error message in the console. There is an entry in the API reference for a RasterData class, but no examples that show how to use it.

Any help or insight is appreciated.