las2witsml 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README +12 -21
  2. data/bin/las2witsml +7 -2
  3. metadata +2 -2
data/README CHANGED
@@ -1,33 +1,24 @@
1
1
  las2witsml -- Convert Log ASCII Stanfard (LAS) files to WITSML <log> objects.
2
2
 
3
3
  Use this script to convert LAS files to WITSML logs. The script attempts to be forgiving
4
- of some commonly encountered variations. It can process most LAS v2 and v3 files.
5
- It does not stand on ceremony.
4
+ of some commonly encountered variations. It can process most LAS v2 and v3 files.
6
5
 
7
- Usage: wmls [options]
8
- -Dvariable=value Replace occurrences of %variable% with value, in the query template
9
- -v, --verbose Run verbosely
10
- -r, --url url URL of the WITSML service
11
- -u, --username USER HTTP user name
12
- -p, --password PASS HTTP password
13
- -q, --query QUERYFILE Path to file containing query, delete, add or update template
14
- -a cap|get|add|update|delete WITSML action; default is 'get'
15
- --action
16
- -o, --optionsin OPTIONSIN optionsIn string (optional)
6
+ Usage: las2witsml [-n name] [-u uid] [-b uid] [-l uid] [-x version] [-h] [-v] lasfile
7
+ -n, --namelog name Name to give the WITSML log; default 'Untitled'
8
+ -u, --uidwell uid WITSML uid of the containing well
9
+ -b, --uidwellbore uid WITSML uid of the containing wellbore
10
+ -l, --uidlog uid WITSML uid to assign the log
11
+ -x, --version version WITSML version to emit, either 1.3.1 or 1.4.1; default 1.4.1
12
+ -v, --verbose Emit diagnostic output on stderr
17
13
  -h, --help Show this message
18
14
 
19
15
  Example:
20
- wmls -q query_v1311/get_all_wells.xml -r https://witsml.wellstorm.com/witsml/services/store -u username -p mypassword -a get
21
-
22
- I've included a bunch of sample query templates originally created by Gary Masters of Energistics.
16
+ las2witsml -x 1.3.1 -u W1 -b B1 -l L1 -n Unnamed lasfile.las
23
17
 
24
18
  License: Apache 2.0
25
19
 
26
20
  History:
27
21
 
28
- 10 Mar 2011 -- initial commit.
29
- 16 Oct 2011 -- added -D option to wmls command line tool (0.1.7)
30
- 01 May 2012 -- added GetCap support (0.1.8)
31
- 01 May 2012 -- added support for capabilitiesIn parameter to all calls (0.1.9)
32
- 04 May 2012 -- added support for a headers parameter to all calls (0.1.11)
33
- 07 May 2012 -- fix headers param to get_cap (default should be {}) (0.1.13)
22
+ 12 Jun 2012 -- gemified existing code and initial commit. (0.1.1)
23
+ 14 Jun 2012 -- proper return values to shell: 0 success, 1 failure. (0.1.2)
24
+
data/bin/las2witsml CHANGED
@@ -71,8 +71,13 @@ ARGV.each do|a|
71
71
  else
72
72
  version = 1410
73
73
  end
74
-
75
- l2w.run infile, outfile, options[:uw] || "", options[:uwb] || "", options[:ul] || "", options[:name] || 'Untitled', version, options[:v] != false
74
+ begin
75
+ l2w.run infile, outfile, options[:uw] || "", options[:uwb] || "", options[:ul] || "", options[:name] || 'Untitled', version, options[:v] != false
76
+ 0
77
+ rescue => e
78
+ $stderr.puts e.backtrace
79
+ 1
80
+ end
76
81
  end
77
82
 
78
83
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: las2witsml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-12 00:00:00.000000000 Z
12
+ date: 2012-06-14 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A command line tool and a library for converting Log ASCII Standard (LAS)
15
15
  files to WITSML <log> objects.