Skip to content

Commit 4cbdf97

Browse files
authored
updated porotomo tutorial notebooks
1 parent a990a09 commit 4cbdf97

3 files changed

+310
-390
lines changed

PoroTomo/PoroTomo_Distributed_Acoustic_Sensing_(DAS)_Data_SEGY.ipynb

+146-180
Large diffs are not rendered by default.

PoroTomo/PoroTomo_Distributed_Acoustic_Sensing_(DAS)_Data_hdf5.ipynb

+139-179
Large diffs are not rendered by default.

PoroTomo/PoroTomo_Distributed_Acoustic_Sensing_(DAS)_Data_hsds.ipynb

+25-31
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"metadata": {},
1313
"source": [
1414
"Prior to running this script, make sure the following are installed within your Python environment:\n",
15-
" - boto3\n",
15+
" - boto3, botocore\n",
1616
" - numpy\n",
1717
" - matplotlib\n",
1818
" - h5pyd\n",
@@ -24,11 +24,11 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": 8,
27+
"execution_count": 2,
2828
"metadata": {},
2929
"outputs": [],
3030
"source": [
31-
"import boto3, os, logging\n",
31+
"import boto3, os, logging, botocore\n",
3232
"import numpy as np\n",
3333
"import matplotlib.pyplot as plt\n",
3434
"from scipy import signal\n",
@@ -39,7 +39,7 @@
3939
"import h5pyd\n",
4040
"\n",
4141
"boto3.set_stream_logger('boto3', logging.INFO)\n",
42-
"s3 = boto3.resource('s3')\n",
42+
"s3 = boto3.resource('s3', config=botocore.client.Config(signature_version=botocore.UNSIGNED))\n",
4343
"bucket = s3.Bucket('nrel-pds-hsds')\n",
4444
"cwd = os.getcwd()"
4545
]
@@ -53,28 +53,30 @@
5353
},
5454
{
5555
"cell_type": "code",
56-
"execution_count": 6,
56+
"execution_count": 3,
5757
"metadata": {
5858
"scrolled": true
5959
},
6060
"outputs": [
6161
{
6262
"data": {
6363
"text/plain": [
64-
"{'ResponseMetadata': {'RequestId': '408073FE346B8221',\n",
65-
" 'HostId': 'cu7AuOjMxEI8oLbj1fMiSxVFOP7woDXu+VbpicxQ0f9cYuovdi175W4jPJmNCUXvsFWKmKSCFpo=',\n",
64+
"{'ResponseMetadata': {'RequestId': '41AK815ERAZ456EB',\n",
65+
" 'HostId': 'oW6gdElqQAqgVCpX8ieiDDZ+8PXMkegpYK199p+vEBmV1fMp3Y8PKHaZ83A98gThIV7eEtW6m58UGnUFe0PWhg==',\n",
6666
" 'HTTPStatusCode': 200,\n",
67-
" 'HTTPHeaders': {'x-amz-id-2': 'cu7AuOjMxEI8oLbj1fMiSxVFOP7woDXu+VbpicxQ0f9cYuovdi175W4jPJmNCUXvsFWKmKSCFpo=',\n",
68-
" 'x-amz-request-id': '408073FE346B8221',\n",
69-
" 'date': 'Tue, 22 Sep 2020 01:26:46 GMT',\n",
67+
" 'HTTPHeaders': {'x-amz-id-2': 'oW6gdElqQAqgVCpX8ieiDDZ+8PXMkegpYK199p+vEBmV1fMp3Y8PKHaZ83A98gThIV7eEtW6m58UGnUFe0PWhg==',\n",
68+
" 'x-amz-request-id': '41AK815ERAZ456EB',\n",
69+
" 'date': 'Thu, 14 Dec 2023 18:52:43 GMT',\n",
7070
" 'x-amz-bucket-region': 'us-west-2',\n",
71+
" 'x-amz-access-point-alias': 'false',\n",
7172
" 'content-type': 'application/xml',\n",
72-
" 'server': 'AmazonS3',\n",
73-
" 'connection': 'close'},\n",
74-
" 'RetryAttempts': 0}}"
73+
" 'server': 'AmazonS3'},\n",
74+
" 'RetryAttempts': 0},\n",
75+
" 'BucketRegion': 'us-west-2',\n",
76+
" 'AccessPointAlias': False}"
7577
]
7678
},
77-
"execution_count": 6,
79+
"execution_count": 3,
7880
"metadata": {},
7981
"output_type": "execute_result"
8082
}
@@ -93,7 +95,7 @@
9395
},
9496
{
9597
"cell_type": "code",
96-
"execution_count": 10,
98+
"execution_count": 4,
9799
"metadata": {},
98100
"outputs": [
99101
{
@@ -102,7 +104,7 @@
102104
"29"
103105
]
104106
},
105-
"execution_count": 10,
107+
"execution_count": 4,
106108
"metadata": {},
107109
"output_type": "execute_result"
108110
}
@@ -522,9 +524,7 @@
522524
{
523525
"cell_type": "code",
524526
"execution_count": 14,
525-
"metadata": {
526-
"scrolled": false
527-
},
527+
"metadata": {},
528528
"outputs": [
529529
{
530530
"data": {
@@ -550,9 +550,7 @@
550550
{
551551
"cell_type": "code",
552552
"execution_count": 15,
553-
"metadata": {
554-
"scrolled": false
555-
},
553+
"metadata": {},
556554
"outputs": [
557555
{
558556
"data": {
@@ -602,9 +600,7 @@
602600
{
603601
"cell_type": "code",
604602
"execution_count": 17,
605-
"metadata": {
606-
"scrolled": false
607-
},
603+
"metadata": {},
608604
"outputs": [
609605
{
610606
"data": {
@@ -692,9 +688,7 @@
692688
{
693689
"cell_type": "code",
694690
"execution_count": 20,
695-
"metadata": {
696-
"scrolled": false
697-
},
691+
"metadata": {},
698692
"outputs": [
699693
{
700694
"name": "stdout",
@@ -830,7 +824,7 @@
830824
],
831825
"metadata": {
832826
"kernelspec": {
833-
"display_name": "Python 3",
827+
"display_name": "Python 3 (ipykernel)",
834828
"language": "python",
835829
"name": "python3"
836830
},
@@ -844,9 +838,9 @@
844838
"name": "python",
845839
"nbconvert_exporter": "python",
846840
"pygments_lexer": "ipython3",
847-
"version": "3.7.4"
841+
"version": "3.11.4"
848842
}
849843
},
850844
"nbformat": 4,
851-
"nbformat_minor": 2
845+
"nbformat_minor": 4
852846
}

0 commit comments

Comments
 (0)