Closed Adrien63ro closed 9 months ago
Can you please upload the meshflow
workflow you're using?
I also notice that your landcover fraction .csv
file has an extra index column. Removing it could be the solution. Let me know.
@Adrien63ro I have tested Kasra's suggestion and it works. In your landsat file, you have a redundant column, the first column. please delete that column. the file you have is like:
,COMID,lat,lon,frac_1,frac_2,frac_3,frac_4,frac_5,frac_6,frac_7,frac_8,frac_9,frac_10,frac_11,frac_12,frac_13,frac_14,frac_15,frac_16,frac_17,frac_18,frac_19
1,72030083,48.7895340694417,-67.520446876425,0.15151220219793,1e-05,1e-05,1e-05,1e-05,0.465744662255012,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,0.282836374672032,1e-05,0.099906760875026,1e-05,1e-05
2,72030124,49.0428112709292,-54.7841663389144,0.32172392370621,0,0,0,0,0.238985142746144,0,0.278923476155061,0,0,0,0,0,0.093989125103776,0,0,0,0.0663783322888093,0
it should be like this:
COMID,lat,lon,frac_1,frac_2,frac_3,frac_4,frac_5,frac_6,frac_7,frac_8,frac_9,frac_10,frac_11,frac_12,frac_13,frac_14,frac_15,frac_16,frac_17,frac_18,frac_19
72030083,48.78953407,-67.52044688,0.151512202,1.00E-05,1.00E-05,1.00E-05,1.00E-05,0.465744662,1.00E-05,1.00E-05,1.00E-05,1.00E-05,1.00E-05,1.00E-05,1.00E-05,1.00E-05,0.282836375,1.00E-05,0.099906761,1.00E-05,1.00E-05
72030124,49.04281127,-54.78416634,0.321723924,0,0,0,0,0.238985143,0,0.278923476,0,0,0,0,0,0.093989125,0,0,0,0.066378332,0
you can just open your file with excel and remove the first column, or you can do this in python using pandas (suggested). Let us know if after this change you are successful. We close this issue after your confirmation.
Hi guys,
Yes indeed ! This was the problem. I removed the first column and mesh_flow.ipynb is now working. I just don’t know why I got this column. Anyway, this issue is solved.
Thanks again for your help that is very appreciated.
Have a good afternoon,
Adrien
De : Shervan Gharari @.> Envoyé : 13 février 2024 01:17 À : kasra-keshavarz/meshflow @.> Cc : Adrien Pierre @.>; Mention @.> Objet : Re: [kasra-keshavarz/meshflow] Error when running exp1.run() in mesf_flow.ipynb (Issue #15)
@Adrien63rohttps://github.com/Adrien63ro I have tested Kasra's suggestion and it works. In your landsat file, you have a redundant column, the first column. please delete that column. the file you have is like:
,COMID,lat,lon,frac_1,frac_2,frac_3,frac_4,frac_5,frac_6,frac_7,frac_8,frac_9,frac_10,frac_11,frac_12,frac_13,frac_14,frac_15,frac_16,frac_17,frac_18,frac_19
1,72030083,48.7895340694417,-67.520446876425,0.15151220219793,1e-05,1e-05,1e-05,1e-05,0.465744662255012,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,0.282836374672032,1e-05,0.099906760875026,1e-05,1e-05
2,72030124,49.0428112709292,-54.7841663389144,0.32172392370621,0,0,0,0,0.238985142746144,0,0.278923476155061,0,0,0,0,0,0.093989125103776,0,0,0,0.0663783322888093,0
it should be like this:
COMID,lat,lon,frac_1,frac_2,frac_3,frac_4,frac_5,frac_6,frac_7,frac_8,frac_9,frac_10,frac_11,frac_12,frac_13,frac_14,frac_15,frac_16,frac_17,frac_18,frac_19
72030083,48.78953407,-67.52044688,0.151512202,1.00E-05,1.00E-05,1.00E-05,1.00E-05,0.465744662,1.00E-05,1.00E-05,1.00E-05,1.00E-05,1.00E-05,1.00E-05,1.00E-05,1.00E-05,0.282836375,1.00E-05,0.099906761,1.00E-05,1.00E-05
72030124,49.04281127,-54.78416634,0.321723924,0,0,0,0,0.238985143,0,0.278923476,0,0,0,0,0,0.093989125,0,0,0,0.066378332,0
you can just open your file with excel and remove the first column, or you can do this in python using pandas (suggested). Let us know if after this change you are successful. We close this issue after your confirmation.
— Reply to this email directly, view it on GitHubhttps://github.com/kasra-keshavarz/meshflow/issues/15#issuecomment-1940489328, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATM4WUREVVOEB7RU4NM3VULYTMAMLAVCNFSM6AAAAABDFF7XWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBQGQ4DSMZSHA. You are receiving this because you were mentioned.Message ID: @.***>
Hello everybody, Here is an error that occurred while running _meshflow.ipynb (see below). It seems the problem comes from different dimensions. Please find attached the files used in my case (domain shapefiles, modified landcover file, 3 remapped .nc files).
Thank you for your help
Adrien files_east.zip
Here is the error message :