VC matrix from Linux

announcements (new versions, changes, bugs, installation problems...) related to program MARK

VC matrix from Linux

Postby AdamGreen » Wed Apr 18, 2018 4:31 pm

Hello,

I've just recently started running Mark on Linux (and I know very little about Linux) and was hoping to get some info on getting the VC matrix out. I'm setting everything up in Windows and running the *z.tmp files in Linux using:

Code: Select all
mark i=mrkXXXXz.tmp o=mrkXXXXy.tmp


I've used Mark on CSU's supercomputer using some commands Gary put together, but those automatically output the *y.tmp (results) and *v.tmp (VC matrix) files. Any ideas on how to get both out using the standard Mark for Linux?

Thanks,
Adam
AdamGreen
 
Posts: 9
Joined: Wed Apr 25, 2012 2:33 pm
Location: Colorado State University, USGS Fort Collins Science Center

Re: VC matrix from Linux

Postby cooch » Wed Jun 27, 2018 10:20 am

AdamGreen wrote:Hello,

I've just recently started running Mark on Linux (and I know very little about Linux) and was hoping to get some info on getting the VC matrix out. I'm setting everything up in Windows and running the *z.tmp files in Linux using:

Code: Select all
mark i=mrkXXXXz.tmp o=mrkXXXXy.tmp


I've used Mark on CSU's supercomputer using some commands Gary put together, but those automatically output the *y.tmp (results) and *v.tmp (VC matrix) files. Any ideas on how to get both out using the standard Mark for Linux?

Thanks,
Adam


Not exactly sure what you're up to, but you can output the VCV from the CL in Linux

Code: Select all
./mark64 i=dipper.inp o=dipper.lst v=dipper.vcv


(I called it .vcv to make it clear what the file is). Note, though, that the VCV is output as a binary file. There are any number of ways to go from binary -> text. But, you'll need to know what is in the .vcv file, and where, to interpret what you get.
cooch
 
Posts: 1628
Joined: Thu May 15, 2003 4:11 pm
Location: Cornell University

Re: VC matrix from Linux

Postby jlaake » Wed Jun 27, 2018 12:04 pm

You may want to look at the file read.mark.binary.linux in RMark so you can work out the structure or use it to convert from binary.

--jeff
jlaake
 
Posts: 1413
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA

Re: VC matrix from Linux

Postby cooch » Wed Jun 27, 2018 12:30 pm

jlaake wrote:You may want to look at the file read.mark.binary.linux in RMark so you can work out the structure or use it to convert from binary.

--jeff


Great suggestion -- forgot about that.
cooch
 
Posts: 1628
Joined: Thu May 15, 2003 4:11 pm
Location: Cornell University

Re: VC matrix from Linux

Postby cooch » Wed Jun 27, 2018 12:55 pm

cooch wrote:
jlaake wrote:You may want to look at the file read.mark.binary.linux in RMark so you can work out the structure or use it to convert from binary.

--jeff


Great suggestion -- forgot about that.


You can find read.mark.binary.linux at Jeff's git site: https://raw.githubusercontent.com/jlaak ... ry.linux.R

If you have (say) dipper.vcv, with no derived parms, then something like the following in an R session will work

Code: Select all
source("read.mark.binary.R")
binary.output <- read.mark.binary.linux("//home//user//Desktop//dipper.vcv",NULL)

binary.output$real.vcv
cooch
 
Posts: 1628
Joined: Thu May 15, 2003 4:11 pm
Location: Cornell University

Re: VC matrix from Linux

Postby jlaake » Wed Jun 27, 2018 1:10 pm

That function is not exported but you can force use of any non-exported function from a package by using package:::function. In this case, it would be

Code: Select all
library(RMark)
binary.output <- RMark:::read.mark.binary.linux("//home//user//Desktop//dipper.vcv",NULL)
jlaake
 
Posts: 1413
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA


Return to software problems/news

Who is online

Users browsing this forum: No registered users and 2 guests

cron