Skip to content

Commit fa2e74b

Browse files
author
Preeti Singh
committed
fix
1 parent c4cdb3e commit fa2e74b

File tree

2 files changed

+56
-58
lines changed

2 files changed

+56
-58
lines changed

articles/energy-data-services/how-to-convert-segy-to-ovds.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Ensure you have `cURL` installed on your system. You use it to make API calls.
4646

4747
Create a legal tag for data compliance.
4848

49-
API: **Setup** > **Create Legal Tag for SDMS**
49+
**Create Legal Tag for SDMS**
5050

5151
```bash
5252
cURL --request POST \
@@ -156,7 +156,7 @@ Follow this [tutorial](tutorial-seismic-ddms.md) to Prepare Subproject that invo
156156
### Upload the File
157157

158158
There are two ways to upload a SEGY file. One option is to use the SASurl through cURL call. You need to set up cURL on your OS.
159-
The second method is to use [SDUTIL](https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-sdutil/-/tags/azure-stable). To log in to your instance for ADME via the tool, you need to generate a refresh token for the instance. See [How to generate auth token](how-to-generate-auth-token.md). Alternatively, you can modify the code of SDUTIL to use client credentials instead to log in. If you haven't already, you need to set up SDUTIL. Check the [guide](tutorial-seismic-ddms-sdutil.md) for setting up SDUTIL Download the codebase and edit the `config.yaml` at the root. Replace the contents of this config file with the following yaml.
159+
The second method is to use [SDUTIL](https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-sdutil/-/tags/azure-stable). To log in to your instance for ADME via the tool, you need to generate a refresh token for the instance. See [How to generate auth token](how-to-generate-auth-token.md). Alternatively, you can modify the code of SDUTIL to use client credentials instead to log in. If you haven't already, you need to set up SDUTIL. Check the [guide](tutorial-seismic-ddms-sdutil.md) for setting up SDUTIL. Download the codebase and edit the `config.yaml` at the root. Replace the contents of this config file with the following yaml.
160160

161161
```yaml
162162
seistore:
@@ -431,34 +431,34 @@ cURL --request PUT \
431431

432432
### Verify File Conversion
433433

434-
Use the following `cURL` command to verify file conversion:
434+
1. Use the following `cURL` command to verify file conversion:
435435

436-
```Bash
437-
cURL --request GET \
438-
--url 'http://{{seismic_ddms_host}}/utility/ls?sdpath=sd://{{tenant}}/{{vdsTestSubprojectName}}' \
439-
--header 'Authorization: Bearer {{access_token}}'
440-
```
441-
442-
**Sample Response:**
436+
```Bash
437+
cURL --request GET \
438+
--url 'http://{{seismic_ddms_host}}/utility/ls?sdpath=sd://{{tenant}}/{{vdsTestSubprojectName}}' \
439+
--header 'Authorization: Bearer {{access_token}}'
440+
```
441+
442+
**Sample Response:**
443443
```json
444-
{
445-
List of datasets
446-
}
444+
{
445+
List of datasets
446+
}
447447
```
448448

449-
1. You can see if the converted file is present using the following command in sdutil
449+
2. You can see if the converted file is present using the following command in sdutil
450450

451451
```bash
452452
python sdutil ls sd://<data-partition-id>/vdssubprojectname
453453
```
454454

455-
2. Verify the converted files are present on the specified location in DAG Trigger or not
455+
3. Verify the converted files are present on the specified location in DAG Trigger or not
456456

457457
```Markdown
458458
python sdutil ls sd://<data-partition-id>/vdssubprojectname/
459459
```
460460

461-
3. If you would like to download and inspect your VDS files, don't use the `cp` command as it doesn't work. The VDS conversion results in multiple files, therefore the `cp` command won't download all of them in one command. Use either the [SEGYExport](https://osdu.pages.opengroup.org/platform/domain-data-mgmt-services/seismic/open-vds/tools/SEGYExport/README.html) or [VDSCopy](https://osdu.pages.opengroup.org/platform/domain-data-mgmt-services/seismic/open-vds/tools/VDSCopy/README.html) tool instead. These tools use a series of REST calls accessing a [naming scheme](https://osdu.pages.opengroup.org/platform/domain-data-mgmt-services/seismic/open-vds/connection.html) to retrieve information about all the resulting VDS files.
461+
4. If you would like to download and inspect your VDS files, don't use the `cp` command as it doesn't work. The VDS conversion results in multiple files, therefore the `cp` command won't download all of them in one command. Use either the [SEGYExport](https://osdu.pages.opengroup.org/platform/domain-data-mgmt-services/seismic/open-vds/tools/SEGYExport/README.html) or [VDSCopy](https://osdu.pages.opengroup.org/platform/domain-data-mgmt-services/seismic/open-vds/tools/VDSCopy/README.html) tool instead. These tools use a series of REST calls accessing a [naming scheme](https://osdu.pages.opengroup.org/platform/domain-data-mgmt-services/seismic/open-vds/connection.html) to retrieve information about all the resulting VDS files.
462462

463463
OSDU&reg; is a trademark of The Open Group.
464464

articles/energy-data-services/how-to-convert-segy-to-zgy.md

Lines changed: 40 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.custom: template-how-to
1111

1212
# How to convert a SEG-Y file to ZGY
1313

14-
In this article, you learn how to convert SEG-Y formatted data to the ZGY format. Seismic data stored in industry standard SEG-Y format can be converted to ZGY for use in applications such as Petrel via the Seismic DMS. See here for [ZGY Conversion FAQ's](https://community.opengroup.org/osdu/platform/data-flow/ingestion/segy-to-zgy-conversion#faq) and more background can be found in the OSDU&reg; community here: [SEG-Y to ZGY conversation](https://community.opengroup.org/osdu/platform/data-flow/ingestion/segy-to-zgy-conversion). This tutorial is a step by step guideline how to perform the conversion. Note the actual production workflow may differ and use as a guide for the required set of steps to achieve the conversion.
14+
In this article, you learn how to convert SEG-Y formatted data to the ZGY format. Seismic data stored in industry standard SEG-Y format can be converted to ZGY for use in applications such as Petrel via the Seismic DMS. See here for [ZGY Conversion FAQ's](https://community.opengroup.org/osdu/platform/data-flow/ingestion/segy-to-zgy-conversion#faq) and more background can be found in the OSDU&reg; community here: [SEG-Y to ZGY conversation](https://community.opengroup.org/osdu/platform/data-flow/ingestion/segy-to-zgy-conversion). This tutorial is a step by step guideline on how to perform the conversion. Note the actual production workflow may differ and use it as a guide for the required set of steps to achieve the conversion.
1515

1616
## Prerequisites
1717
* An Azure subscription
@@ -42,13 +42,11 @@ Ensure you have `cURL` installed on your system. You use it to make API calls.
4242

4343
## Step by Step Process to convert SEG-Y file to ZGY file
4444

45-
### Create a Legal Tag
46-
4745
### Create a legal tag
4846

4947
Create a legal tag for data compliance.
5048

51-
API: **Setup** > **Create Legal Tag for SDMS**
49+
**Create Legal Tag for SDMS**
5250

5351
```bash
5452
cURL --request POST \
@@ -109,12 +107,12 @@ Conversion uses a manifest file that you upload to your storage account later in
109107

110108
1. Clone the [repo](https://community.opengroup.org/osdu/platform/data-flow/ingestion/segy-to-zgy-conversion/-/tree/master/) and navigate to the folder `doc/sample-records/volve`
111109
2. Edit the values in the `prepare-records.sh` bash script. Recall that the format of the legal tag is prefixed with the Azure Data Manager for Energy instance name and data partition name, so it looks like `<instancename>-<datapartitionname>-<legaltagname>`.
112-
```bash
113-
DATA_PARTITION_ID=<data-partition-id>
114-
ACL_OWNER=data.default.owners@<data-partition-id>.<domain>
115-
ACL_VIEWER=data.default.viewers@<data-partition-id>.<domain>
116-
LEGAL_TAG=<legal_tag_name>
117-
```
110+
```bash
111+
DATA_PARTITION_ID=<data-partition-id>
112+
ACL_OWNER=data.default.owners@<data-partition-id>.<domain>
113+
ACL_VIEWER=data.default.viewers@<data-partition-id>.<domain>
114+
LEGAL_TAG=<legal_tag_name>
115+
```
118116
3. Run the `prepare-records.sh` script.
119117
4. The output is a JSON array with all objects and is saved in the `all_records.json` file.
120118
5. Save the `filecollection_segy_id` and the `work_product_id` values in that JSON file to use in the conversion step. That way the converter knows where to look for this contents of your `all_records.json`.
@@ -197,7 +195,7 @@ Follow this [tutorial](tutorial-seismic-ddms.md) to Prepare Subproject that invo
197195
### Upload the File
198196

199197
There are two ways to upload a SEGY file. One option is to use the SASurl through cURL call. You need to set up cURL on your OS.
200-
The second method is to use [SDUTIL](https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-sdutil/-/tags/azure-stable). To log in to your instance for ADME via the tool, you need to generate a refresh token for the instance. See [How to generate auth token](how-to-generate-auth-token.md). Alternatively, you can modify the code of SDUTIL to use client credentials instead to log in. If you haven't already, you need to set up SDUTIL. Check the [guide](tutorial-seismic-ddms-sdutil.md) for setting up SDUTIL Download the codebase and edit the `config.yaml` at the root. Replace the contents of this config file with the following yaml.
198+
The second method is to use [SDUTIL](https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-sdutil/-/tags/azure-stable). To log in to your instance for ADME via the tool, you need to generate a refresh token for the instance. See [How to generate auth token](how-to-generate-auth-token.md). Alternatively, you can modify the code of SDUTIL to use client credentials instead to log in. If you haven't already, you need to set up SDUTIL. Check the [guide](tutorial-seismic-ddms-sdutil.md) for setting up SDUTIL. Download the codebase and edit the `config.yaml` at the root. Replace the contents of this config file with the following yaml.
201199
202200
```yaml
203201
seistore:
@@ -378,37 +376,37 @@ cURL --request PUT \
378376
379377
Fetch the ID token from sdutil for the uploaded file or use an access/bearer token.
380378
381-
```markdown
382-
python sdutil auth idtoken
383-
```
379+
```Markdown
380+
python sdutil auth idtoken
381+
```
384382
385-
Use the following `cURL` command to trigger workflow:
383+
Use the following `cURL` command to trigger workflow:
384+
385+
```Bash
386+
cURL -X POST "https://<DNS>/api/workflow/v1/workflow/<segy-to-zgy-conversion dag id>" \
387+
-H "Authorization: Bearer <access_token>" \
388+
-H "Content-Type: application/json" \
389+
-d '{
390+
"executionContext": {
391+
"data_partition_id": "{{DATA_PARTITION_ID}}",
392+
"sd_svc_api_key": "no",
393+
"storage_svc_api_key": "no",
394+
"filecollection_segy_id": "{{DATA_PARTITION_ID}}:dataset--FileCollection.SEGY:e4a9fc6241610b3a0327f7ace99b9c6f",
395+
"work_product_id":"{{DATA_PARTITION_ID}}:work-product--WorkProduct:819c76be31892652773f5dacd642b0e8",
396+
"id_token": "{{access_token}}"
397+
}
386398

387-
```Bash
388-
cURL -X POST "https://<DNS>/api/workflow/v1/workflow/<segy-to-zgy-conversion dag id>" \
389-
-H "Authorization: Bearer <access_token>" \
390-
-H "Content-Type: application/json" \
391-
-d '{
392-
"executionContext": {
393-
"data_partition_id": "{{DATA_PARTITION_ID}}",
394-
"sd_svc_api_key": "no",
395-
"storage_svc_api_key": "no",
396-
"filecollection_segy_id": "{{DATA_PARTITION_ID}}:dataset--FileCollection.SEGY:e4a9fc6241610b3a0327f7ace99b9c6f",
397-
"work_product_id":"{{DATA_PARTITION_ID}}:work-product--WorkProduct:819c76be31892652773f5dacd642b0e8",
398-
"id_token": "{{access_token}}"
399-
}
400-
401-
}'
402-
```
399+
}'
400+
```
403401
404-
**Sample Response:**
405-
```json
406-
{
407-
"runId": "workflow-12345",
408-
"status": "Running",
409-
"message": "Workflow triggered successfully."
410-
}
411-
```
402+
**Sample Response:**
403+
```json
404+
{
405+
"runId": "workflow-12345",
406+
"status": "Running",
407+
"message": "Workflow triggered successfully."
408+
}
409+
```
412410
413411
414412
2. Let the DAG run to the `succeeded` state. You can check the status using the workflow status call. The run ID is in the response of the previous call
@@ -429,7 +427,7 @@ python sdutil auth idtoken
429427
"message": "Workflow completed successfully."
430428
}
431429
```
432-
Use the following `cURL` command to verify file conversion:
430+
3. Use the following `cURL` command to verify file conversion:
433431
434432
```bash
435433
cURL --request GET \
@@ -445,15 +443,15 @@ python sdutil auth idtoken
445443
}
446444
```
447445
448-
3. You can see if the converted file is present using the following command in sdutil
446+
4. You can see if the converted file is present using the following command in sdutil
449447
450448
```bash
451449
python sdutil ls sd://<data-partition-id>/<subprojectname>
452450
```
453451
454452
455453
456-
4. You can download and inspect the file using the [sdutil](https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-sdutil/-/tags/azure-stable) `cp` command:
454+
5. You can download and inspect the file using the [sdutil](https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-sdutil/-/tags/azure-stable) `cp` command:
457455
458456
```bash
459457
python sdutil cp sd://<data-partition-id>/<subproject>/<filename.zgy> <local/destination/path>

0 commit comments

Comments
 (0)