Skip to content

Commit be864c4

Browse files
committed
Update to use Unity-py from pypi. Remove manual location of stage-in
data since updated Unity-py does this for us.
1 parent 5cc3971 commit be864c4

File tree

2 files changed

+10
-39
lines changed

2 files changed

+10
-39
lines changed

process.ipynb

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": 11,
27+
"execution_count": 2,
2828
"id": "04ac7f2d",
2929
"metadata": {
3030
"tags": [
@@ -125,8 +125,8 @@
125125
{
126126
"data": {
127127
"text/plain": [
128-
"['./SNDR.SS1330.CHIRP.20160822T0005.m06.g001.L1_AQ.std.v02_48.G.200425095850.nc',\n",
129-
" './SNDR.SS1330.CHIRP.20160822T0011.m06.g002.L1_AQ.std.v02_48.G.200425095901.nc']"
128+
"['/home/mcduffie/Devel/unity/unity-example-application/test/stage_in/./SNDR.SS1330.CHIRP.20160822T0005.m06.g001.L1_AQ.std.v02_48.G.200425095850.nc',\n",
129+
" '/home/mcduffie/Devel/unity/unity-example-application/test/stage_in/./SNDR.SS1330.CHIRP.20160822T0011.m06.g002.L1_AQ.std.v02_48.G.200425095901.nc']"
130130
]
131131
},
132132
"execution_count": 4,
@@ -141,35 +141,6 @@
141141
"data_filenames"
142142
]
143143
},
144-
{
145-
"cell_type": "code",
146-
"execution_count": 5,
147-
"id": "0671dfaf",
148-
"metadata": {},
149-
"outputs": [
150-
{
151-
"data": {
152-
"text/plain": [
153-
"['/home/mcduffie/Devel/unity/unity-example-application/test/stage_in/SNDR.SS1330.CHIRP.20160822T0005.m06.g001.L1_AQ.std.v02_48.G.200425095850.nc',\n",
154-
" '/home/mcduffie/Devel/unity/unity-example-application/test/stage_in/SNDR.SS1330.CHIRP.20160822T0011.m06.g002.L1_AQ.std.v02_48.G.200425095901.nc']"
155-
]
156-
},
157-
"execution_count": 5,
158-
"metadata": {},
159-
"output_type": "execute_result"
160-
}
161-
],
162-
"source": [
163-
"# Manually locate the full path of the files to match location of collection file\n",
164-
"import contextlib\n",
165-
"old_cwd = os.path.realpath(os.curdir)\n",
166-
"os.chdir(os.path.dirname(input_stac_collection_file))\n",
167-
"data_filenames = [ os.path.realpath(fn) for fn in data_filenames ]\n",
168-
"os.chdir(old_cwd)\n",
169-
" \n",
170-
"data_filenames"
171-
]
172-
},
173144
{
174145
"cell_type": "markdown",
175146
"id": "73e97444",
@@ -182,7 +153,7 @@
182153
},
183154
{
184155
"cell_type": "code",
185-
"execution_count": 6,
156+
"execution_count": 5,
186157
"id": "9fbac209",
187158
"metadata": {},
188159
"outputs": [],
@@ -202,7 +173,7 @@
202173
},
203174
{
204175
"cell_type": "code",
205-
"execution_count": 7,
176+
"execution_count": 6,
206177
"id": "d22c8670",
207178
"metadata": {},
208179
"outputs": [],
@@ -219,7 +190,7 @@
219190
},
220191
{
221192
"cell_type": "code",
222-
"execution_count": 8,
193+
"execution_count": 7,
223194
"id": "3344bd15",
224195
"metadata": {},
225196
"outputs": [
@@ -240,7 +211,7 @@
240211
"'<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>'"
241212
]
242213
},
243-
"execution_count": 8,
214+
"execution_count": 7,
244215
"metadata": {},
245216
"output_type": "execute_result"
246217
}
@@ -252,7 +223,7 @@
252223
},
253224
{
254225
"cell_type": "code",
255-
"execution_count": 9,
226+
"execution_count": 8,
256227
"id": "014257f3",
257228
"metadata": {},
258229
"outputs": [],
@@ -273,7 +244,7 @@
273244
},
274245
{
275246
"cell_type": "code",
276-
"execution_count": 10,
247+
"execution_count": 9,
277248
"id": "b4aa5d3b",
278249
"metadata": {},
279250
"outputs": [],

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
papermill
2-
git+https://github.com/unity-sds/unity-py.git@develop
2+
unity-sds-client==0.1.2
33
netCDF4
44
tabulate

0 commit comments

Comments
 (0)