Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie Cut #62

Open
mlmaskey opened this issue Aug 18, 2020 · 4 comments
Open

Cookie Cut #62

mlmaskey opened this issue Aug 18, 2020 · 4 comments

Comments

@mlmaskey
Copy link

mlmaskey commented Aug 18, 2020

Hi @msdogan and @nickrsan,
I tried to make a cookie cut from the network near the American River as follws:
cnf matrix --format csv --start 1921-10 --stop 1922-10 --ts . --to linksWY1922 --max-ub 1000000000000 --debug all --verbose D17 SR_FOL D9 C173 HGP08 A207 CVPM08G HGR08 GW_08 CVPM08S HSU207C173 HU207 HSD207 WTP207 U207 D517 C107 D85 D64 C67 HSU204C67 HGP07 A204 CVPM07G HGR07 GW_07 CVPM07S C7 C18 C19 C16 WTP205 C20 C8 C104 C105 HXI204 HNP204 HP204 HSD204 HSU204C67 HU204 WTP204 WWP204 U204 EXT_SAC INT_SAC D44 D503 D511 D513 D55 HSU_D55 D507 D509 PMP_ISOL_F

But it became unsuccessful with the following screenshot

(base) D:\PostDocResearch\UC Merced\Projects\NOAA\CALVIN\calvin\calvin\data\runBaseCookie>cnf matrix --format csv --start 1921-10 --stop 1922-10 --ts . --to linksWY1922 --max-ub 1000000000000 --debug all --verbose D17 SR_FOL D9 C173 HGP08 A207 CVPM08G HGR08 GW_08 CVPM08S HSU207C173 HU207 HSD207 WTP207 U207 D517 C107 D85 D64 C67 HSU204C67 HGP07 A204 CVPM07G HGR07 GW_07 CVPM07S C7 C18 C19 C16 WTP205 C20 C8 C104 C105 HXI204 HNP204 HP204 HSD204 HSU204C67 HU204 WTP204 WWP204 U204 EXT_SAC INT_SAC D44 D503 D511 D513 D55 HSU_D55 D507 D509 PMP_ISOL_F

*** matrix Input Parameters ***
{
  "_": [
    "matrix"
  ],
  "help": false,
  "no-header": false,
  "N": false,
  "noHeader": false,
  "verbose": true,
  "v": true,
  "format": "csv",
  "f": "csv",
  "start": "1921-10",
  "s": "1921-10",
  "stop": "1922-10",
  "t": "1922-10",
  "ts": ".",
  "S": ".",
  "to": "linksWY1922",
  "T": "linksWY1922",
  "max-ub": 1000000000000,
  "M": 1000000000000,
  "maxUb": 1000000000000,
  "debug": "all",
  "D": "all",
  "fs": ",",
  "F": ",",
  "config": "C:\\Users\\Mahesh",
  "c": "C:\\Users\\Mahesh",
  "$0": "C:\\Users\\Mahesh\\AppData\\Roaming\\npm\\node_modules\\calvin-network-tools\\bin\\cli.js",
  "data": "C:\\Users\\Mahesh\\Documents\\MustafaWorkshopCALVIN\\calvin-network-data\\data",
  "nodes": [
    "D17",
    "SR_FOL",
    "D9",
    "C173",
    "HGP08",
    "A207",
    "CVPM08G",
    "HGR08",
    "GW_08",
    "CVPM08S",
    "HSU207C173",
    "HU207",
    "HSD207",
    "WTP207",
    "U207",
    "D517",
    "C107",
    "D85",
    "D64",
    "C67",
    "HSU204C67",
    "HGP07",
    "A204",
    "CVPM07G",
    "HGR07",
    "GW_07",
    "CVPM07S",
    "C7",
    "C18",
    "C19",
    "C16",
    "WTP205",
    "C20",
    "C8",
    "C104",
    "C105",
    "HXI204",
    "HNP204",
    "HP204",
    "HSD204",
    "HSU204C67",
    "HU204",
    "WTP204",
    "WWP204",
    "U204",
    "EXT_SAC",
    "INT_SAC",
    "D44",
    "D503",
    "D511",
    "D513",
    "D55",
    "HSU_D55",
    "D507",
    "D509",
    "PMP_ISOL_F"
  ],
  "runtime": "C:\\Users\\Mahesh\\AppData\\Roaming\\npm\\node_modules\\calvin-network-tools\\HEC_Runtime"
}
**********************

Running matrix command.

Subnet:  ["A204","CVPM07G","CVPM07S","HSD204","HSU204C67","HU204","C105","C107","C173","C67","C7","C8","D64","D85","D9","GW_07","HGP07","HGR07","SR_FOL","EXT_SAC","HNP204","HP204","HXI204","INT_SAC","U204","WTP204","WWP204","C16","C18","C19","HSU_D55","WTP205","C104","C20","D44","D503","D507","D511","D513","D517","D55","PMP_ISOL_F","D17","D509","A207","CVPM08G","CVPM08S","HSD207","HSU207C173","HU207","GW_08","HGP08","HGR08","U207","WTP207","C173-HSU207C173","C173-WTP207","D507-D509","EXT_SAC-HGR08","HGP08-U204","HSD207-D517","C104-C105","C16-C20","C18-C20","C19-C20","C7-C20","C8-C104","A204-HU204","CVPM07S-HSD204","HSU204C67-A204","HU204-CVPM07G","HU204-CVPM07S","C105-C107","C105-WTP204","C173-C107","C67-C7","C67-HSU204C67","C7-C8","C8-WTP204","CVPM07G-HGR07","D64-C8","D64-WTP204","D85-D64","D9-C173","D9-D85","GW_07-HGP07","HGP07-A204","HGP07-U204","HGR07-GW_07","HSD204-C7","SR_FOL-D9","SR_FOL-WTP204","HNP204-HXI204","HP204-U204","HXI204-EXT_SAC","INT_SAC-WWP204","U204-HXI204","U204-INT_SAC","WTP204-U204","WWP204-HNP204","WWP204-HP204","WWP204-HGR07","HSU_D55-WTP205","D17-SR_FOL","D17-WTP204","D55-HSU_D55","C104-D44","C20-D55","D44-D503","D503-D511","D503-PMP_ISOL_F","D511-D513","D511-D55","D55-D507","WWP204-D44","A207-HU207","CVPM08S-HSD207","HSU207C173-A207","HU207-CVPM08G","HU207-CVPM08S","CVPM08G-HGR08","GW_08-HGP08","HGP08-A207","HGP08-U207","HGR08-GW_08","WTP207-U207","WWP204-HGR08"]
removing: CN5
removing: CN4
removing: CN3
removing: CN1
C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\nodejs\matrix\utils\split.js:7
    if(id === network.edge.out[i].properties.hobbes.id) {
                                  ^

TypeError: Cannot read property 'properties' of undefined
    at Object.isInbound (C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\nodejs\matrix\utils\split.js:7:35)
    at module.exports (C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\nodejs\matrix\link.js:40:16)
    at C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\nodejs\matrix\index.js:110:22
    at Array.forEach (<anonymous>)
    at onSubnetReady (C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\nodejs\matrix\index.js:103:13)
    at C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\nodejs\matrix\index.js:78:7
    at C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\nodejs\matrix\utils\expand.js:31:8
    at C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\node_modules\async\lib\async.js:52:16
    at C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\node_modules\async\lib\async.js:269:32
    at C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\node_modules\async\lib\async.js:44:16

(base) D:\PostDocResearch\UC Merced\Projects\NOAA\CALVIN\calvin\calvin\data\runBaseCookie

Do you have any thoughts about it? I also wonder while making subnet, whether we can list the nodes randomly. If not, what will be the best way to deal with branches.

Thank you...
@mlmaskey

@msdogan
Copy link
Member

msdogan commented Aug 18, 2020

Hi @mlmaskey, I would suggest starting from a very small subnetwork and export and gradually add new nodes to see where it is going to break. I would not recommend selecting nodes randomly because of connectivity. If you run in debug mode, unconnected matrices would run, but it will not run without debug mode. I am actually not a big fan of creating subnetworks and running the model. If you like to reduce runtime, I suggest excluding Southern California, where all its operations can actually be represented on a single link with boundary conditions.

@mlmaskey
Copy link
Author

Okay I will try like that. But I am not sure how to exclude Southern California.
It seems HEC runtime is specifically designed for the network we have only. That could be the reason we can't make a cookie cut. I am not sure I am right.

@mlmaskey
Copy link
Author

I also have a question on the link d17-sr_fol since we have inflow to the lake. Which one is the rim flow?

@msdogan
Copy link
Member

msdogan commented Aug 18, 2020

You need to take a look at CALVIN schematic. For Folsom, there two inflows: North and Middle Fork American River Inflows are represented on D17-SR_FOL and South Fork American River inflows are represented on Inflow-SR_FOL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants