Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

eDNA to PI Migration Utility

List of code examples for the Map command

  • Last UpdatedDec 19, 2024
  • 2 minute read

Code example 1

In this code example, the eDNA point collection is read from the EDNA.HISTORY service, and a timestamped CSV map file is generated and placed in the default folder (“./Map/yyyy-MM-dd-HH-mm-ss.csv”). The CSV map file contains one row per eDNA point, and will not contain rows for Status or RawStatus info for eDNA points. The debug and error logs for the map operation are stored in the default folder (“./Logs/”).

edna2pi map EDNA.HISTORY

Code example 2

In this code example, the same map file is generated, but the error log is saved to the “Errors” folder in the same folder as the edna2pi.exe application file. The debug log is saved to C:\Windows\Temp.

edna2pi map EDNA.HISTORY --errorLog “./Errors/” --log “C:/Windows/Temp”

Code example 3

In this code example, the same map file is generated, but the generated CSV map file is saved to the “NewMaps” folder in the same folder as the edna2pi.exe application file.

edna2pi map EDNA.HISTORY --output “./NewMaps/”

Code example 4

In this code example, the same map file is generated, but it is saved as “LatestMap.csv” to the “NewMaps” folder in the same folder as the edna2pi.exe application file.

edna2pi map EDNA.HISTORY --output “./NewMaps/LatestMap.csv”

Code example 5

In this code example, the same map file is generated with the same list of eDNA points, but saved to the default "Map" folder. All diagnostic status messages are shown in the console window from which the map command is run. In the map file, the “Name” column, which contains PI tag names, contains an identical list of eDNA point names with the “FromEDNA.” prefix appended to the front of the tag name. The PointSource column is populated with “EDNA” instead of the default “L”.

edna2pi map EDNA.HISTORY --prefix “FromEDNA.” --pointSource “EDNA” --diagnostics

Code example 6

In this code example, a map file is generated with two rows per eDNA point: One row contains the eDNA point values, and the second row contains the eDNA point status information. The Name column lists a PI tag name identical to the eDNA point name for “Value” tags, and adds the default “.Quality” suffix at the end of PI tag names that contain the status quality information.

edna2pi map EDNA.HISTORY --quality Status

Code example 7

In this code example, a map file is generated that contains two rows per eDNA point: One column contains the eDNA point values, and the second row contains the eDNA point RawStatus information. The Name column contains a PI tag name that is identical to the eDNA point name for “Value” tags, and a custom “.RawStatus” suffix is added to PI tag names that contain the RawStatus quality information.

edna2pi map EDNA.HISTORY --quality RawStatus --qualitySuffix “.RawStatus”

In This Topic
TitleResults for “How to create a CRG?”Also Available in