Processes¶
Say Hello¶
Sleep¶
-
class
emu.processes.wps_sleep.
Sleep
[source]¶ sleep Sleep Process (v1.0)
Testing a long running process, in the sleep.This process will sleep for a given delay or 10 seconds if not a valid value.
Parameters: delay (float) – Delay between every update Returns: sleep_output – Sleep Output Return type: string References
Wordcounter¶
-
class
emu.processes.wps_wordcounter.
WordCounter
[source]¶ wordcounter Word Counter (v1.0)
Counts words in a given text.
Parameters: text (text/plain) – URL pointing to a text document, for example “Alice in Wonderland”: http://www.gutenberg.org/cache/epub/19033/pg19033.txt Returns: output – Word counter result Return type: application/json References
Counts ocurrences of all words in a document.
Chomsky¶
-
class
emu.processes.wps_chomsky.
Chomsky
[source]¶ chomsky Chomsky text generator (v1.0)
Generates a random chomsky text
Parameters: times (integer) – Generates a random chomsky text. Returns: output – Chomsky text Return type: text/plain Generates a random chomsky text: http://code.activestate.com/recipes/440546-chomsky-random-text-generator/
CHOMSKY is an aid to writing linguistic papers in the style of the great master. It is based on selected phrases taken from actual books and articles written by Noam Chomsky. Upon request, it assembles the phrases in the elegant stylistic patterns that Chomsky is noted for. To generate n sentences of linguistic wisdom, type:
- (CHOMSKY n) – for example
- (CHOMSKY 5) generates half a screen of linguistic truth.
NCMeta¶
-
class
emu.processes.wps_ncmeta.
NCMeta
[source]¶ ncmeta Show NetCDF Metadata (v4)
Dataset can be either a NetCDF file or an OpenDAP service.
Parameters: - dataset (application/x-netcdf, optional) – http://test.opendap.org:80/opendap/netcdf/examples/sresa1b_ncar_ccsm3_0_run1_200001.nc.nc4
- dataset_opendap (application/x-ogc-dods, optional) – http://test.opendap.org:80/opendap/netcdf/examples/sresa1b_ncar_ccsm3_0_run1_200001.nc
Returns: output – Metadata
Return type: text/plain
References
Returns metadata of a NetCDF file or OpenDAP resource.