README.PostEdit
author A.M. Thurnherr <athurnherr@yahoo.com>
Fri, 06 Mar 2015 15:51:10 -0500
changeset 32 9b972ce37c3b
parent 16 ff157f4445ce
permissions -rw-r--r--
merged 1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     1
======================================================================
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     2
                    R E A D M E . P O S T E D I T 
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     3
                    doc: Wed Jun 13 20:30:10 2012
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     4
                    dlm: Thu Jun 14 18:22:13 2012
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     5
                    (c) 2012 A.M. Thurnherr
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     6
                    uE-Info: 95 50 NIL 0 0 72 3 2 8 NIL ofnI
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     7
======================================================================
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     8
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
     9
=Summary=
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    10
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    11
This README explains how to post-edit the shear output from b[LADCPproc]
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    12
before feeding it to [LADCPintsh], e.g. for removing data collected when
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    13
the ADCP was very shallow and possibly affected by the ship's magnetic
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    14
field.
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    15
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    16
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    17
=Nitty-Gritty=
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    18
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    19
The default output from [LADCPproc] is a so-called time-depth-series
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    20
(.tds) file with one record per valid shear sample. Each record
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    21
contains the following fields:
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    22
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    23
ens		ensemble number the shear sample is from
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    24
elapsed		elapsed time in seconds of the present ensemble
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    25
CTD_depth	depth of CTD at the time the ensemble was recorded
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    26
downcast	a boolean flag set to 1 (nan) for down(up)cast records
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    27
depth		"nominal" depth of shear sample (center depth in gridded profile)
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    28
u_z		vertical shear of zonal velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    29
v_z		vertical shear of meridional velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    30
w_z		vertical shear of vertical velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    31
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    32
This is the "general" output of [LADCPproc]. For standard processing,
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    33
the shear is bin-averaged in depth space. While this can easily be
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    34
accomplished, e.g. with a Matlab script, for convenience the binned
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    35
output can be requested with the -p option of [LADCPproc]. The binned
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    36
output cannot be post-edited!
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    37
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    38
The .tds data can be post-edited. Matlab users can import these files
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    39
with [loadANTS.m] (see [README.Output]), edit the structures, bin the
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    40
shear in depth space, and export the new structures as ANTS files with
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    41
[struct2ANTS.m]. For example, to remove all data collected with the
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    42
ADCP shallower than 5m, simply delete the records for which CTD_depth
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    43
<= 5. Or, you can bin your shear data with different statistics (e.g.
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    44
median), instead of the arithmetic mean used by [LADCPproc] -p.
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    45
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    46
Inconveniently, [LADCPintsh] at present requires its shear input to be
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    47
in the format generated by the -p option of [LADCPproc], with the
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    48
following fields (Matlab version):
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    49
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    50
depth		center depth of bin
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    51
dc_elapsed	mean elapsed time of downcast shear samples in present bin
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    52
dc_nsamp	number of downcast shear samples in bin
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    53
dc_u_z		bin-averaged downcast vertical shear of zonal velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    54
dc_u_z_sig	corresponding standard deviation
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    55
dc_v_z		same for meridional velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    56
dc_v_z_sig
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    57
dc_w_z		same for vertical velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    58
dc_w_z_sig
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    59
uc_elapsed	mean elapsed time of upcast shear samples in present bin
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    60
uc_nsamp	number of upcast shear samples in bin
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    61
uc_u_z		bin-averaged upcast vertical shear of zonal velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    62
uc_u_z_sig	corresponding standard deviation
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    63
uc_v_z		same for meridional velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    64
uc_v_z_sig
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    65
uc_w_z		same for vertical velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    66
uc_w_z_sig
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    67
elapsed		mean elapsed time of mean dn/upcast shear samples in present bin
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    68
nsamp	    	number of mean dn/upcast shear samples in bin
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    69
u_z	     	bin-averaged mean dn/upcast vertical shear of zonal velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    70
u_z_sig      	corresponding standard deviation
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    71
v_z	     	same for meridional velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    72
v_z_sig
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    73
w_z	     	same for vertical velocity
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    74
w_z_sig
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    75
Sv		bin-averaged acoustic volume scattering coefficient
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    76
Sv.nsamp	number of samples in bin
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    77
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    78
Note that the .tds file does not contain acoustic backscatter
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    79
information, i.e. the Sv field should be set to nan and the Sv.nsamp to
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    80
zero.
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    81
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    82
After binning the shear data, Matlab users can create a structure with
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    83
the fields listed above. Metadata (scalars in the .tds import
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    84
structure) should be copied verbatim from the .tds import structure.
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    85
Each of the listed fields is a vector and they must all have the same
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    86
length. (Since the down- and upcasts do not usually cover exactly the
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    87
same depth range, padding is almost always required.) The resulting
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    88
structure can then be exported with [struct2ANTS.m]; the 'dependencies'
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    89
argument should be set to the filename(s) of the .tds file(s) from
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    90
which the binned shear profile was constructed.
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    91
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    92
The only option for non-Matlab users is to create an ASCII file with
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    93
the required columns (nan values are permitted) in the order listed
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    94
above and prepend this with the header from the corresponding
ff157f4445ce V1.0 beta7
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
diff changeset
    95
[LADCPproc] output file produced by the -p option.