Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 53 additions & 16 deletions process.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,59 @@
"from unity_sds_client.resources.data_file import DataFile"
]
},
{
"cell_type": "markdown",
"id": "489f5053",
"metadata": {},
"source": [
"## Metadata Cell\n",
"\n",
"The below cell is tagged as the 'metadata' cell. This defines metadata values that are exposed by the OGC Application Package created. The keywords show below all have default values if they are not present in the cell. But it is encourage to define custom values for each application like shown below."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "92e7535d",
"metadata": {
"tags": [
"metadata"
]
},
"outputs": [],
"source": [
"# Identification of the application\n",
"id = \"mdps-example-application\"\n",
"doc = \"Example of using mdps-app-generator to produce an OGC Application pacakge\"\n",
"label = \"Example MDPS OGC Application\"\n",
"\n",
"# Information on the application\n",
"author = \"James McDuffie\"\n",
"citation = \"https://github.com/unity-sds/mdps-example-application\"\n",
"codeRepository = \"https://github.com/unity-sds/mdps-example-application\"\n",
"keywords = \"mdps, ogc, example\"\n",
"license = \"Apache Version 2\"\n",
"softwareVersion = \"1.1.0\"\n",
"version = \"1.1.0\"\n",
"releaseNotes = \"\""
]
},
{
"cell_type": "markdown",
"id": "5cb70c6e-a08b-49c4-bbef-13200a18bfda",
"metadata": {},
"source": [
"## Parameters Cell\n",
"\n",
"The below cell is tagged as a 'paramter' cell. This enables us to overwrite the below values at runtime. There are some special values in the below cell.\n",
"The below cell is tagged as the 'parameter' cell. This enables us to overwrite the below values at runtime. There are some special values in the below cell.\n",
"\n",
"* `input_stac_catalog_dir` has the `# type: stage-in` annotation. This variable tells your algorithm the name of the directory where to read inputs from. At run time it will be populated with a STAC catalog and the files it references. The application generator process will connect your variable name to the special `input` parameter in automatically generated CWL files.\n",
"* `output_stac_catalog_dir` has the `# type: stage-out` annotation. This is a directory where you write ALL of your output files along with a STAC catalog that references files you would like to persist outside of the algorithm run. The application generator process will connect your variable name to the special `output` parameter in automatically generated CWL files."
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"id": "04ac7f2d",
"metadata": {
"editable": true,
Expand All @@ -57,8 +94,8 @@
"# Filename written to the working directory\n",
"summary_table_filename = \"summary_table.txt\"\n",
"\n",
"#For eventual catalogging of this file in the unity environment\n",
"output_collection = \"urn:nasa:unity:unity:dev:unity-example-application___1\"\n",
"# For eventual cataloging of this file in the unity environment\n",
"output_collection = \"mdps-example-application___1\"\n",
"\n",
"# Examples of optional arbitrary arguments of different data types\n",
"example_argument_int = 1\n",
Expand All @@ -70,7 +107,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"id": "62471f5d-d898-46c1-89c1-b572851db551",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -99,7 +136,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"id": "2eeaa5d4",
"metadata": {},
"outputs": [
Expand All @@ -123,7 +160,7 @@
"'<table>\\n<thead>\\n<tr><th>argument_name </th><th>type </th><th>value </th></tr>\\n</thead>\\n<tbody>\\n<tr><td>example_argument_int </td><td>&lt;class &#x27;int&#x27;&gt; </td><td>1 </td></tr>\\n<tr><td>example_argument_float </td><td>&lt;class &#x27;float&#x27;&gt; </td><td>1.0 </td></tr>\\n<tr><td>example_argument_string</td><td>&lt;class &#x27;str&#x27;&gt; </td><td>string </td></tr>\\n<tr><td>example_argument_bool </td><td>&lt;class &#x27;bool&#x27;&gt; </td><td>True </td></tr>\\n<tr><td>example_argument_empty </td><td>&lt;class &#x27;NoneType&#x27;&gt;</td><td> </td></tr>\\n</tbody>\\n</table>'"
]
},
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -158,7 +195,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"id": "3a09d57c",
"metadata": {},
"outputs": [
Expand All @@ -169,7 +206,7 @@
" 'test/stage_in/SNDR.SS1330.CHIRP.20160822T0011.m06.g002.L1_AQ.std.v02_48.G.200425095901.nc']"
]
},
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -194,7 +231,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"id": "9fbac209",
"metadata": {},
"outputs": [],
Expand All @@ -214,7 +251,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"id": "d22c8670",
"metadata": {},
"outputs": [],
Expand All @@ -231,7 +268,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"id": "3344bd15",
"metadata": {},
"outputs": [
Expand All @@ -252,7 +289,7 @@
"'<table>\\n<thead>\\n<tr><th>product_name </th><th>product_name_type_id </th><th>shortname </th><th>product_version </th><th>date_created </th><th>time_coverage_start </th><th>time_coverage_end </th><th style=\"text-align: right;\"> geospatial_lat_mid</th><th style=\"text-align: right;\"> geospatial_lon_mid</th></tr>\\n</thead>\\n<tbody>\\n<tr><td>SNDR.SS1330.CHIRP.20160822T0005.m06.g001.L1_AQ.std.v02_48.G.200425095850.nc</td><td>L1_AQ </td><td>SNDR13CHRP1</td><td>v02.48.00 </td><td>2021-04-25T05:59:08Z</td><td>2016-08-22T00:05:22Z </td><td>2016-08-22T00:11:22Z</td><td style=\"text-align: right;\"> -48.6062</td><td style=\"text-align: right;\"> 12.4563 </td></tr>\\n<tr><td>SNDR.SS1330.CHIRP.20160822T0011.m06.g002.L1_AQ.std.v02_48.G.200425095901.nc</td><td>L1_AQ </td><td>SNDR13CHRP1</td><td>v02.48.00 </td><td>2021-04-25T05:59:19Z</td><td>2016-08-22T00:11:22Z </td><td>2016-08-22T00:17:22Z</td><td style=\"text-align: right;\"> -69.3979</td><td style=\"text-align: right;\"> -1.98753</td></tr>\\n</tbody>\\n</table>'"
]
},
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -264,7 +301,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"id": "014257f3",
"metadata": {},
"outputs": [],
Expand All @@ -286,7 +323,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"id": "b4aa5d3b",
"metadata": {
"editable": true,
Expand Down Expand Up @@ -341,7 +378,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
"version": "3.14.3"
}
},
"nbformat": 4,
Expand Down
12 changes: 0 additions & 12 deletions test/monolithic_app/build_app.sh

This file was deleted.

195 changes: 0 additions & 195 deletions test/monolithic_app/cmr_results.json

This file was deleted.

Loading