How to Rename DCA Wrangler Models in Petro.ai – Part 2
Database, Cloud, & IT

How to Rename DCA Wrangler Models in Petro.ai – Part 2

Shota Ota  •  

Last week, we discussed how to delete specific DCA Wrangler models. This week, we will look at how to rename them.

What if you accidentally hit save before naming the model correctly? Or if your model evolves into something more than you first intended?

You can just follow these steps to update your model name.

Let’s get started!

You will need a couple of things:

1. Well Decline Curve or Type Curve models created with the DCA Wrangler

2. Robo 3T (free) or Studio 3T (easier use, not free).

3. Valid Petro.ai Database Connection.

Quick FYI – Petro.ai Collection (Tables)

prod.WellDeclineCurveModels – Decline Curve Models saved using Single-Well or Multi-Well mode

prod.TypeCurveModels – Type Curve Models saved using Type Curve mode

Robo 3T and Studio 3T

Code for Single-Well/Multi-Well (Robo 3T)

    /* This script will RENAME all well decline curve models listed below. Insert your current model name in currentName. Insert your new model name in newName. */ var currentName = "Q1Modelss"; var newName = "Q1Model"; db.getCollection("prod.WellDeclineCurveModels").updateMany( { modelName: currentName }, { $set: { modelName: newName } } );

Code for Single-Well/Multi-Well (Studio 3T)

    //Define Database Below use petroai; /* This script will RENAME all well decline curve models listed below. Insert your current model name in currentName. Insert your new model name in newName. */ var currentName = "Q1Modelss"; var newName = "Q1Model"; db.getCollection("prod.WellDeclineCurveModels").updateMany( { modelName: currentName }, { $set: { modelName: newName } } );

Examples:

Robo 3T

Studio 3T – IntelliShell

Code for Type Curves (Robo 3T)

    /* This script will RENAME all type curve model listed below. Insert your current model name in currentName. Insert your new model name in newName. */ var currentName = "Q1TypeCurvess"; var newName = "Q1TypeCurves"; db.getCollection("prod.TypeCurveModels").updateMany( { modelName: currentName }, { $set: { modelName: newName } } ); 

Code for Type Curves (Studio 3T)

    //Define Database Below use petroai; /* This script will RENAME all type curve model listed below. Insert your current model name in currentName. Insert your new model name in newName. */ var currentName = "Q1TypeCurvess"; var newName = "Q1TypeCurves"; db.getCollection("prod.TypeCurveModels").updateMany( { modelName: currentName }, { $set: { modelName: newName } } ); 

Examples:

Robo 3T

Studio 3T – IntelliShell

DONE!

PETRO
TEXAS
114 Main Street Ste. 400
Houston, TX 77002
CANADA
4-5609 Avenue du Parc
Montreal QC, H2V 4S8