error in h.cb from console

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

error in h.cb from console

Ilaria Pretto
Dear all,

I encountered this error message in running 'h.cb' from console:

error E2110: 'h.cb' : use of undefined quantity 'file1'.

The script I launch is the following (as explained in the wiki):
 
  jgrass {
        h.cb
                --igrass-map1 FS6mm
                --igrass-map2 FS6mm
                --otable-file1 "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/file1.txt"
                --otable-file2 "meanx#tbins#/ilaria/Scrivania/out/file2.txt"
                --firstmoment 1
                --lastmoment 2
                --numbins 100
 }


If someone can answer it would be very appreciated.
Cheers,
Ilaria
 





_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|

Re: error in h.cb from console

Andrea Antonello
Hi Ilaria,
I am not able to try right now, but I see that the help states

h.cb --igrass-map1 map1 --igrass-map2 map2 --otable-file1
nvalues#meanx#meany#mom_...#/file_path/#file1" --otable-file2
meanx#tbins#/file_path/#file2" --firstmoment value --lastmoment value
--numbins value

which needs a hash between file_path and file1:

#/file_path/#file1


Not sure right now, but that might be the problem,
Andrea



On Thu, Jul 2, 2009 at 9:28 AM, Ilaria Pretto<[hidden email]> wrote:

> Dear all,
>
> I encountered this error message in running 'h.cb' from console:
>
> error E2110: 'h.cb' : use of undefined quantity 'file1'.
>
> The script I launch is the following (as explained in the wiki):
>
>   jgrass {
>         h.cb
>                 --igrass-map1 FS6mm
>                 --igrass-map2 FS6mm
>                 --otable-file1
> "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/file1.txt"
>                 --otable-file2 "meanx#tbins#/ilaria/Scrivania/out/file2.txt"
>                 --firstmoment 1
>                 --lastmoment 2
>                 --numbins 100
>  }
>
> If someone can answer it would be very appreciated.
> Cheers,
> Ilaria
>
>
>
>
>
>
> _______________________________________________
> JGrass-users mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>
>
_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|

Re: error in h.cb from console

Ilaria Pretto
Andrea, thank you for your reply, but unfortunately that is not the cause of the problem.
The string 'file1' that is not recognised seems to be the one after "--otable".
 

2009/7/2 andrea antonello <[hidden email]>
Hi Ilaria,
I am not able to try right now, but I see that the help states

h.cb --igrass-map1 map1 --igrass-map2 map2 --otable-file1
nvalues#meanx#meany#mom_...#/file_path/#file1" --otable-file2
meanx#tbins#/file_path/#file2" --firstmoment value --lastmoment value
--numbins value

which needs a hash between file_path and file1:

#/file_path/#file1


Not sure right now, but that might be the problem,
Andrea



On Thu, Jul 2, 2009 at 9:28 AM, Ilaria Pretto<[hidden email]> wrote:
> Dear all,
>
> I encountered this error message in running 'h.cb' from console:
>
> error E2110: 'h.cb' : use of undefined quantity 'file1'.
>
> The script I launch is the following (as explained in the wiki):
>
>   jgrass {
>         h.cb
>                 --igrass-map1 FS6mm
>                 --igrass-map2 FS6mm
>                 --otable-file1
> "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/file1.txt"
>                 --otable-file2 "meanx#tbins#/ilaria/Scrivania/out/file2.txt"
>                 --firstmoment 1
>                 --lastmoment 2
>                 --numbins 100
>  }
>
> If someone can answer it would be very appreciated.
> Cheers,
> Ilaria
>
>
>
>
>
>
> _______________________________________________
> JGrass-users mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>
>
_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users


_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|

Re: error in h.cb from console

Ilaria Pretto
Maybe I was not clear in my explanation.

I wanted to say that as for "--igrass" the string '-map1' is red color (that I assume is the correct syntax), for the "--otable" the string '-file1' is black, like if is not recognised. I might be wrong in it, but maybe is a correct hint.

Hope you can see the colors of the following script (that is exactly what i see in my console).

  jgrass {
        h.cb
                --igrass-map1 FS6mm
                --igrass-map2 FS6mm
                --otable-file1 "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/#file1.txt"
                --otable-file2 "meanx#tbins#/ilaria/Scrivania/out/#file2.txt"
                --firstmoment 1
                --lastmoment 2
                --numbins 100
 }


Thank you
Ilaria




2009/7/2 Ilaria Pretto <[hidden email]>
Andrea, thank you for your reply, but unfortunately that is not the cause of the problem.
The string 'file1' that is not recognised seems to be the one after "--otable".
 

2009/7/2 andrea antonello <[hidden email]>

Hi Ilaria,
I am not able to try right now, but I see that the help states

h.cb --igrass-map1 map1 --igrass-map2 map2 --otable-file1
nvalues#meanx#meany#mom_...#/file_path/#file1" --otable-file2
meanx#tbins#/file_path/#file2" --firstmoment value --lastmoment value
--numbins value

which needs a hash between file_path and file1:

#/file_path/#file1


Not sure right now, but that might be the problem,
Andrea



On Thu, Jul 2, 2009 at 9:28 AM, Ilaria Pretto<[hidden email]> wrote:
> Dear all,
>
> I encountered this error message in running 'h.cb' from console:
>
> error E2110: 'h.cb' : use of undefined quantity 'file1'.
>
> The script I launch is the following (as explained in the wiki):
>
>   jgrass {
>         h.cb
>                 --igrass-map1 FS6mm
>                 --igrass-map2 FS6mm
>                 --otable-file1
> "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/file1.txt"
>                 --otable-file2 "meanx#tbins#/ilaria/Scrivania/out/file2.txt"
>                 --firstmoment 1
>                 --lastmoment 2
>                 --numbins 100
>  }
>
> If someone can answer it would be very appreciated.
> Cheers,
> Ilaria
>
>
>
>
>
>
> _______________________________________________
> JGrass-users mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>
>
_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users



_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|

Re: error in h.cb from console

Ilaria Pretto
Sorry for being so pressive, I am in a kind of late and solving this problem will highly speed-up my work.

If I change the  "#file1.txt" name in "#fileA.txt"  (--otable-file1 "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/#fileA.txt" ) the error message is still the same: "error E2110: 'h.cb' : use of undefined quantity 'file1'."

On the other side, as expected, if I change the "--otable-file1" in "--otable-file_1"  (--otable-file_1 "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/#fileA.txt" ) the error message is: "error E1002: unexpected '--otable-file_1'. "

Thank you for your help.
Ilaria




2009/7/2 Ilaria Pretto <[hidden email]>
Maybe I was not clear in my explanation.

I wanted to say that as for "--igrass" the string '-map1' is red color (that I assume is the correct syntax), for the "--otable" the string '-file1' is black, like if is not recognised. I might be wrong in it, but maybe is a correct hint.

Hope you can see the colors of the following script (that is exactly what i see in my console).


  jgrass {
        h.cb
                --igrass-map1 FS6mm
                --igrass-map2 FS6mm
                --otable-file1 "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/#file1.txt"
                --otable-file2 "meanx#tbins#/ilaria/Scrivania/out/#file2.txt"
                --firstmoment 1
                --lastmoment 2
                --numbins 100
 }


Thank you
Ilaria




2009/7/2 Ilaria Pretto <[hidden email]>

Andrea, thank you for your reply, but unfortunately that is not the cause of the problem.
The string 'file1' that is not recognised seems to be the one after "--otable".
 

2009/7/2 andrea antonello <[hidden email]>

Hi Ilaria,
I am not able to try right now, but I see that the help states

h.cb --igrass-map1 map1 --igrass-map2 map2 --otable-file1
nvalues#meanx#meany#mom_...#/file_path/#file1" --otable-file2
meanx#tbins#/file_path/#file2" --firstmoment value --lastmoment value
--numbins value

which needs a hash between file_path and file1:

#/file_path/#file1


Not sure right now, but that might be the problem,
Andrea



On Thu, Jul 2, 2009 at 9:28 AM, Ilaria Pretto<[hidden email]> wrote:
> Dear all,
>
> I encountered this error message in running 'h.cb' from console:
>
> error E2110: 'h.cb' : use of undefined quantity 'file1'.
>
> The script I launch is the following (as explained in the wiki):
>
>   jgrass {
>         h.cb
>                 --igrass-map1 FS6mm
>                 --igrass-map2 FS6mm
>                 --otable-file1
> "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/file1.txt"
>                 --otable-file2 "meanx#tbins#/ilaria/Scrivania/out/file2.txt"
>                 --firstmoment 1
>                 --lastmoment 2
>                 --numbins 100
>  }
>
> If someone can answer it would be very appreciated.
> Cheers,
> Ilaria
>
>
>
>
>
>
> _______________________________________________
> JGrass-users mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>
>
_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users




_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|

Re: error in h.cb from console

Andrea Antonello
In reply to this post by Ilaria Pretto
Hi Ilaria,
just checked the sources, but still didn't try.

It seems that the help is outdated, you need to use out1 and out2
instead of file1 and file2.

Andrea


On Thu, Jul 2, 2009 at 10:22 AM, Ilaria Pretto<[hidden email]> wrote:

> Maybe I was not clear in my explanation.
>
> I wanted to say that as for "--igrass" the string '-map1' is red color (that
> I assume is the correct syntax), for the "--otable" the string '-file1' is
> black, like if is not recognised. I might be wrong in it, but maybe is a
> correct hint.
>
> Hope you can see the colors of the following script (that is exactly what i
> see in my console).
>
>   jgrass {
>         h.cb
>                 --igrass-map1 FS6mm
>                 --igrass-map2 FS6mm
>                 --otable-file1
> "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/#file1.txt"
>                 --otable-file2
> "meanx#tbins#/ilaria/Scrivania/out/#file2.txt"
>                 --firstmoment 1
>                 --lastmoment 2
>                 --numbins 100
>  }
>
>
> Thank you
> Ilaria
>
>
>
>
> 2009/7/2 Ilaria Pretto <[hidden email]>
>>
>> Andrea, thank you for your reply, but unfortunately that is not the cause
>> of the problem.
>> The string 'file1' that is not recognised seems to be the one after
>> "--otable".
>>
>>
>> 2009/7/2 andrea antonello <[hidden email]>
>>>
>>> Hi Ilaria,
>>> I am not able to try right now, but I see that the help states
>>>
>>> h.cb --igrass-map1 map1 --igrass-map2 map2 --otable-file1
>>> nvalues#meanx#meany#mom_...#/file_path/#file1" --otable-file2
>>> meanx#tbins#/file_path/#file2" --firstmoment value --lastmoment value
>>> --numbins value
>>>
>>> which needs a hash between file_path and file1:
>>>
>>> #/file_path/#file1
>>>
>>>
>>> Not sure right now, but that might be the problem,
>>> Andrea
>>>
>>>
>>>
>>> On Thu, Jul 2, 2009 at 9:28 AM, Ilaria Pretto<[hidden email]>
>>> wrote:
>>> > Dear all,
>>> >
>>> > I encountered this error message in running 'h.cb' from console:
>>> >
>>> > error E2110: 'h.cb' : use of undefined quantity 'file1'.
>>> >
>>> > The script I launch is the following (as explained in the wiki):
>>> >
>>> >   jgrass {
>>> >         h.cb
>>> >                 --igrass-map1 FS6mm
>>> >                 --igrass-map2 FS6mm
>>> >                 --otable-file1
>>> > "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/file1.txt"
>>> >                 --otable-file2
>>> > "meanx#tbins#/ilaria/Scrivania/out/file2.txt"
>>> >                 --firstmoment 1
>>> >                 --lastmoment 2
>>> >                 --numbins 100
>>> >  }
>>> >
>>> > If someone can answer it would be very appreciated.
>>> > Cheers,
>>> > Ilaria
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > JGrass-users mailing list
>>> > [hidden email]
>>> > https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>>> >
>>> >
>>> _______________________________________________
>>> JGrass-users mailing list
>>> [hidden email]
>>> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>>
>
>
> _______________________________________________
> JGrass-users mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>
>
_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|

Re: error in h.cb from console

Ilaria Pretto
You are right Andrea, the help is definitely outdated.
If I use out1 and out2 at least it recognise it (as said before, it finally become red), but.. is not enough.

Probably the syntax is still wrong somewhere as I still have errors message.
  • With the following script:
       --otable-out1 "nvalues#meanx#meany#variance#/home/ilaria/Scrivania/out/#file1.txt"
                 --otable-out2 "meanx#tbins#/home/ilaria/Scrivania/out/#out2.txt"
the error is:
Creating output 1...
The path to the output file doesn't exist: null
(and I assure you that the path exist, proof following)

  • Whit this other one:
                 --otable-out1 "/home/ilaria/Scrivania/out/file1.txt"
                 --otable-out2 "/home/ilaria/Scrivania/out/file2.txt"
the error is:
Creating output 1...
1
And it creates an empty file the specified folder.

  • Repeating the same operation with hash both before "file1" and in second case also before "/home" it still doesn't find the output file path (for both the above cases).










2009/7/2 andrea antonello <[hidden email]>
Hi Ilaria,
just checked the sources, but still didn't try.

It seems that the help is outdated, you need to use out1 and out2
instead of file1 and file2.

Andrea


On Thu, Jul 2, 2009 at 10:22 AM, Ilaria Pretto<[hidden email]> wrote:
> Maybe I was not clear in my explanation.
>
> I wanted to say that as for "--igrass" the string '-map1' is red color (that
> I assume is the correct syntax), for the "--otable" the string '-file1' is
> black, like if is not recognised. I might be wrong in it, but maybe is a
> correct hint.
>
> Hope you can see the colors of the following script (that is exactly what i
> see in my console).
>
>   jgrass {
>         h.cb
>                 --igrass-map1 FS6mm
>                 --igrass-map2 FS6mm
>                 --otable-file1
> "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/#file1.txt"
>                 --otable-file2
> "meanx#tbins#/ilaria/Scrivania/out/#file2.txt"
>                 --firstmoment 1
>                 --lastmoment 2
>                 --numbins 100
>  }
>
>
> Thank you
> Ilaria
>
>
>
>
> 2009/7/2 Ilaria Pretto <[hidden email]>
>>
>> Andrea, thank you for your reply, but unfortunately that is not the cause
>> of the problem.
>> The string 'file1' that is not recognised seems to be the one after
>> "--otable".
>>
>>
>> 2009/7/2 andrea antonello <[hidden email]>
>>>
>>> Hi Ilaria,
>>> I am not able to try right now, but I see that the help states
>>>
>>> h.cb --igrass-map1 map1 --igrass-map2 map2 --otable-file1
>>> nvalues#meanx#meany#mom_...#/file_path/#file1" --otable-file2
>>> meanx#tbins#/file_path/#file2" --firstmoment value --lastmoment value
>>> --numbins value
>>>
>>> which needs a hash between file_path and file1:
>>>
>>> #/file_path/#file1
>>>
>>>
>>> Not sure right now, but that might be the problem,
>>> Andrea
>>>
>>>
>>>
>>> On Thu, Jul 2, 2009 at 9:28 AM, Ilaria Pretto<[hidden email]>
>>> wrote:
>>> > Dear all,
>>> >
>>> > I encountered this error message in running 'h.cb' from console:
>>> >
>>> > error E2110: 'h.cb' : use of undefined quantity 'file1'.
>>> >
>>> > The script I launch is the following (as explained in the wiki):
>>> >
>>> >   jgrass {
>>> >         h.cb
>>> >                 --igrass-map1 FS6mm
>>> >                 --igrass-map2 FS6mm
>>> >                 --otable-file1
>>> > "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/file1.txt"
>>> >                 --otable-file2
>>> > "meanx#tbins#/ilaria/Scrivania/out/file2.txt"
>>> >                 --firstmoment 1
>>> >                 --lastmoment 2
>>> >                 --numbins 100
>>> >  }
>>> >
>>> > If someone can answer it would be very appreciated.
>>> > Cheers,
>>> > Ilaria
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > JGrass-users mailing list
>>> > [hidden email]
>>> > https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>>> >
>>> >
>>> _______________________________________________
>>> JGrass-users mailing list
>>> [hidden email]
>>> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>>
>
>
> _______________________________________________
> JGrass-users mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>
>
_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users


_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|

Re: error in h.cb from console

Silvia Franceschi-2
Hi Ilaria,
it seems to me that you are doing something wrong with the syntax.
Please take a look at this link:
http://jgrasstechtips.blogspot.com/2008/09/understanding-oscalar-out-otable-out.html

if you want to create a new file with the content of the output scalar
set out1 you have just to write the path and name of the output file,
nothing else, no # or something like that. The full syntax is used in
output charts or tables when you want to have a description and some
other nice decorations on the output windows.

Let me know if it works for you or exactly what are you trying to do.

Ciao

Silvia


Ilaria Pretto wrote:

> You are right Andrea, the help is definitely outdated.
> If I use out1 and out2 at least it recognise it (as said before, it
> finally become red), but.. is not enough.
>
> Probably the syntax is still wrong somewhere as I still have errors
> message.
>
>     * With the following script:
>
>        --otable-out1
> "nvalues#meanx#meany#variance#/home/ilaria/Scrivania/out/#file1.txt"
> /                 --otable-out2
> "meanx#tbins#/home/ilaria/Scrivania/out/#out2.txt"/
> the error is:
> /Creating output 1.../
> /The path to the output file doesn't exist: null/
> (and I assure you that the path exist, proof following)
>
>     * Whit this other one:
>
>                  --otable-out1 "/home/ilaria/Scrivania/out/file1.txt"
>                  --otable-out2 "/home/ilaria/Scrivania/out/file2.txt"
> the error is:
> /Creating output 1...
> /
> /1/
> And it creates an empty file the specified folder.
>
>     * Repeating the same operation with hash both before "file1" and
>       in second case also before "/home" it still doesn't find the
>       output file path (for both the above cases).
>
>
>
>
>
>
>
>
>
>
>
> 2009/7/2 andrea antonello <[hidden email]
> <mailto:[hidden email]>>
>
>     Hi Ilaria,
>     just checked the sources, but still didn't try.
>
>     It seems that the help is outdated, you need to use out1 and out2
>     instead of file1 and file2.
>
>     Andrea
>
>
>     On Thu, Jul 2, 2009 at 10:22 AM, Ilaria
>     Pretto<[hidden email] <mailto:[hidden email]>>
>     wrote:
>     > Maybe I was not clear in my explanation.
>     >
>     > I wanted to say that as for "--igrass" the string '-map1' is red
>     color (that
>     > I assume is the correct syntax), for the "--otable" the string
>     '-file1' is
>     > black, like if is not recognised. I might be wrong in it, but
>     maybe is a
>     > correct hint.
>     >
>     > Hope you can see the colors of the following script (that is
>     exactly what i
>     > see in my console).
>     >
>     >   jgrass {
>     >         h.cb
>     >                 --igrass-map1 FS6mm
>     >                 --igrass-map2 FS6mm
>     >                 --otable-file1
>     > "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/#file1.txt"
>     >                 --otable-file2
>     > "meanx#tbins#/ilaria/Scrivania/out/#file2.txt"
>     >                 --firstmoment 1
>     >                 --lastmoment 2
>     >                 --numbins 100
>     >  }
>     >
>     >
>     > Thank you
>     > Ilaria
>     >
>     >
>     >
>     >
>     > 2009/7/2 Ilaria Pretto <[hidden email]
>     <mailto:[hidden email]>>
>     >>
>     >> Andrea, thank you for your reply, but unfortunately that is not
>     the cause
>     >> of the problem.
>     >> The string 'file1' that is not recognised seems to be the one after
>     >> "--otable".
>     >>
>     >>
>     >> 2009/7/2 andrea antonello <[hidden email]
>     <mailto:[hidden email]>>
>     >>>
>     >>> Hi Ilaria,
>     >>> I am not able to try right now, but I see that the help states
>     >>>
>     >>> h.cb --igrass-map1 map1 --igrass-map2 map2 --otable-file1
>     >>> nvalues#meanx#meany#mom_...#/file_path/#file1" --otable-file2
>     >>> meanx#tbins#/file_path/#file2" --firstmoment value
>     --lastmoment value
>     >>> --numbins value
>     >>>
>     >>> which needs a hash between file_path and file1:
>     >>>
>     >>> #/file_path/#file1
>     >>>
>     >>>
>     >>> Not sure right now, but that might be the problem,
>     >>> Andrea
>     >>>
>     >>>
>     >>>
>     >>> On Thu, Jul 2, 2009 at 9:28 AM, Ilaria
>     Pretto<[hidden email] <mailto:[hidden email]>>
>     >>> wrote:
>     >>> > Dear all,
>     >>> >
>     >>> > I encountered this error message in running 'h.cb' from console:
>     >>> >
>     >>> > error E2110: 'h.cb' : use of undefined quantity 'file1'.
>     >>> >
>     >>> > The script I launch is the following (as explained in the wiki):
>     >>> >
>     >>> >   jgrass {
>     >>> >         h.cb
>     >>> >                 --igrass-map1 FS6mm
>     >>> >                 --igrass-map2 FS6mm
>     >>> >                 --otable-file1
>     >>> > "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/file1.txt"
>     >>> >                 --otable-file2
>     >>> > "meanx#tbins#/ilaria/Scrivania/out/file2.txt"
>     >>> >                 --firstmoment 1
>     >>> >                 --lastmoment 2
>     >>> >                 --numbins 100
>     >>> >  }
>     >>> >
>     >>> > If someone can answer it would be very appreciated.
>     >>> > Cheers,
>     >>> > Ilaria
>     >>> >
>     >>> >
>     >>> >
>     >>> >
>     >>> >
>     >>> >
>     >>> > _______________________________________________
>     >>> > JGrass-users mailing list
>     >>> > [hidden email] <mailto:[hidden email]>
>     >>> > https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >>> >
>     >>> >
>     >>> _______________________________________________
>     >>> JGrass-users mailing list
>     >>> [hidden email] <mailto:[hidden email]>
>     >>> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >>
>     >
>     >
>     > _______________________________________________
>     > JGrass-users mailing list
>     > [hidden email] <mailto:[hidden email]>
>     > https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >
>     >
>     _______________________________________________
>     JGrass-users mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> JGrass-users mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>  
_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|

Re: error in h.cb from console

Ilaria Pretto
Silvia thank you for the link.

The wiki and the j-grass help has only outdated syntax. As Andrea suggested is necessary to put out1 instead of file1 but also --oscalar instead of --otable. Now is finally working.

So, the correct syntax is:

  jgrass {
        h.cb
                --igrass-map1 FS6mm
                --igrass-map2 FS6mm
                 --oscalar-out1 "/home/ilaria/Scrivania/out/file1.txt"
                 --oscalar-out2 "/home/ilaria/Scrivania/out/file2.txt"
                --firstmoment 1
                --lastmoment 2
                --numbins 100
 }

Thank you guys
Bye
Ilaria





2009/7/2 Silvia Franceschi <[hidden email]>
Hi Ilaria,
it seems to me that you are doing something wrong with the syntax.
Please take a look at this link:
http://jgrasstechtips.blogspot.com/2008/09/understanding-oscalar-out-otable-out.html

if you want to create a new file with the content of the output scalar
set out1 you have just to write the path and name of the output file,
nothing else, no # or something like that. The full syntax is used in
output charts or tables when you want to have a description and some
other nice decorations on the output windows.

Let me know if it works for you or exactly what are you trying to do.

Ciao

Silvia


Ilaria Pretto wrote:
> You are right Andrea, the help is definitely outdated.
> If I use out1 and out2 at least it recognise it (as said before, it
> finally become red), but.. is not enough.
>
> Probably the syntax is still wrong somewhere as I still have errors
> message.
>
>     * With the following script:
>
>        --otable-out1
> "nvalues#meanx#meany#variance#/home/ilaria/Scrivania/out/#file1.txt"
> /                 --otable-out2
> "meanx#tbins#/home/ilaria/Scrivania/out/#out2.txt"/
> the error is:
> /Creating output 1.../
> /The path to the output file doesn't exist: null/
> (and I assure you that the path exist, proof following)
>
>     * Whit this other one:
>
>                  --otable-out1 "/home/ilaria/Scrivania/out/file1.txt"
>                  --otable-out2 "/home/ilaria/Scrivania/out/file2.txt"
> the error is:
> /Creating output 1...
> /
> /1/
> And it creates an empty file the specified folder.
>
>     * Repeating the same operation with hash both before "file1" and
>       in second case also before "/home" it still doesn't find the
>       output file path (for both the above cases).
>
>
>
>
>
>
>
>
>
>
>
> 2009/7/2 andrea antonello <[hidden email]
> <mailto:[hidden email]>>
>
>     Hi Ilaria,
>     just checked the sources, but still didn't try.
>
>     It seems that the help is outdated, you need to use out1 and out2
>     instead of file1 and file2.
>
>     Andrea
>
>
>     On Thu, Jul 2, 2009 at 10:22 AM, Ilaria
>     Pretto<[hidden email] <mailto:[hidden email]>>
>     wrote:
>     > Maybe I was not clear in my explanation.
>     >
>     > I wanted to say that as for "--igrass" the string '-map1' is red
>     color (that
>     > I assume is the correct syntax), for the "--otable" the string
>     '-file1' is
>     > black, like if is not recognised. I might be wrong in it, but
>     maybe is a
>     > correct hint.
>     >
>     > Hope you can see the colors of the following script (that is
>     exactly what i
>     > see in my console).
>     >
>     >   jgrass {
>     >         h.cb
>     >                 --igrass-map1 FS6mm
>     >                 --igrass-map2 FS6mm
>     >                 --otable-file1
>     > "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/#file1.txt"
>     >                 --otable-file2
>     > "meanx#tbins#/ilaria/Scrivania/out/#file2.txt"
>     >                 --firstmoment 1
>     >                 --lastmoment 2
>     >                 --numbins 100
>     >  }
>     >
>     >
>     > Thank you
>     > Ilaria
>     >
>     >
>     >
>     >
>     > 2009/7/2 Ilaria Pretto <[hidden email]
>     <mailto:[hidden email]>>
>     >>
>     >> Andrea, thank you for your reply, but unfortunately that is not
>     the cause
>     >> of the problem.
>     >> The string 'file1' that is not recognised seems to be the one after
>     >> "--otable".
>     >>
>     >>
>     >> 2009/7/2 andrea antonello <[hidden email]
>     <mailto:[hidden email]>>
>     >>>
>     >>> Hi Ilaria,
>     >>> I am not able to try right now, but I see that the help states
>     >>>
>     >>> h.cb --igrass-map1 map1 --igrass-map2 map2 --otable-file1
>     >>> nvalues#meanx#meany#mom_...#/file_path/#file1" --otable-file2
>     >>> meanx#tbins#/file_path/#file2" --firstmoment value
>     --lastmoment value
>     >>> --numbins value
>     >>>
>     >>> which needs a hash between file_path and file1:
>     >>>
>     >>> #/file_path/#file1
>     >>>
>     >>>
>     >>> Not sure right now, but that might be the problem,
>     >>> Andrea
>     >>>
>     >>>
>     >>>
>     >>> On Thu, Jul 2, 2009 at 9:28 AM, Ilaria
>     Pretto<[hidden email] <mailto:[hidden email]>>
>     >>> wrote:
>     >>> > Dear all,
>     >>> >
>     >>> > I encountered this error message in running 'h.cb' from console:
>     >>> >
>     >>> > error E2110: 'h.cb' : use of undefined quantity 'file1'.
>     >>> >
>     >>> > The script I launch is the following (as explained in the wiki):
>     >>> >
>     >>> >   jgrass {
>     >>> >         h.cb
>     >>> >                 --igrass-map1 FS6mm
>     >>> >                 --igrass-map2 FS6mm
>     >>> >                 --otable-file1
>     >>> > "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/file1.txt"
>     >>> >                 --otable-file2
>     >>> > "meanx#tbins#/ilaria/Scrivania/out/file2.txt"
>     >>> >                 --firstmoment 1
>     >>> >                 --lastmoment 2
>     >>> >                 --numbins 100
>     >>> >  }
>     >>> >
>     >>> > If someone can answer it would be very appreciated.
>     >>> > Cheers,
>     >>> > Ilaria
>     >>> >
>     >>> >
>     >>> >
>     >>> >
>     >>> >
>     >>> >
>     >>> > _______________________________________________
>     >>> > JGrass-users mailing list
>     >>> > [hidden email] <mailto:[hidden email]>
>     >>> > https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >>> >
>     >>> >
>     >>> _______________________________________________
>     >>> JGrass-users mailing list
>     >>> [hidden email] <mailto:[hidden email]>
>     >>> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >>
>     >
>     >
>     > _______________________________________________
>     > JGrass-users mailing list
>     > [hidden email] <mailto:[hidden email]>
>     > https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >
>     >
>     _______________________________________________
>     JGrass-users mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> JGrass-users mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>
_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users


_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|

Re: error in h.cb from console

Silvia Franceschi-2
Syntax is wrong only in the part of the suffix out1 and out2.
The fact you use table or scalar should not be a problem, you have to
manage the different output but that is not an error.

Nice to hear you solved,

Silvia


Ilaria Pretto wrote:

> Silvia thank you for the link.
>
> The wiki and the j-grass help has only outdated syntax. As Andrea
> suggested is necessary to put out1 instead of file1 but also --oscalar
> instead of --otable. Now is finally working.
>
> So, the correct syntax is:
>
>   jgrass {
>         h.cb
>                 --igrass-map1 FS6mm
>                 --igrass-map2 FS6mm
>                  --oscalar-out1 "/home/ilaria/Scrivania/out/file1.txt"
>                  --oscalar-out2 "/home/ilaria/Scrivania/out/file2.txt"
>                 --firstmoment 1
>                 --lastmoment 2
>                 --numbins 100
>  }
>
> Thank you guys
> Bye
> Ilaria
>
>
>
>
>
> 2009/7/2 Silvia Franceschi <[hidden email]
> <mailto:[hidden email]>>
>
>     Hi Ilaria,
>     it seems to me that you are doing something wrong with the syntax.
>     Please take a look at this link:
>     http://jgrasstechtips.blogspot.com/2008/09/understanding-oscalar-out-otable-out.html
>
>     if you want to create a new file with the content of the output scalar
>     set out1 you have just to write the path and name of the output file,
>     nothing else, no # or something like that. The full syntax is used in
>     output charts or tables when you want to have a description and some
>     other nice decorations on the output windows.
>
>     Let me know if it works for you or exactly what are you trying to do.
>
>     Ciao
>
>     Silvia
>
>
>     Ilaria Pretto wrote:
>     > You are right Andrea, the help is definitely outdated.
>     > If I use out1 and out2 at least it recognise it (as said before, it
>     > finally become red), but.. is not enough.
>     >
>     > Probably the syntax is still wrong somewhere as I still have errors
>     > message.
>     >
>     >     * With the following script:
>     >
>     >        --otable-out1
>     > "nvalues#meanx#meany#variance#/home/ilaria/Scrivania/out/#file1.txt"
>     > /                 --otable-out2
>     > "meanx#tbins#/home/ilaria/Scrivania/out/#out2.txt"/
>     > the error is:
>     > /Creating output 1.../
>     > /The path to the output file doesn't exist: null/
>     > (and I assure you that the path exist, proof following)
>     >
>     >     * Whit this other one:
>     >
>     >                  --otable-out1
>     "/home/ilaria/Scrivania/out/file1.txt"
>     >                  --otable-out2
>     "/home/ilaria/Scrivania/out/file2.txt"
>     > the error is:
>     > /Creating output 1...
>     > /
>     > /1/
>     > And it creates an empty file the specified folder.
>     >
>     >     * Repeating the same operation with hash both before "file1" and
>     >       in second case also before "/home" it still doesn't find the
>     >       output file path (for both the above cases).
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     > 2009/7/2 andrea antonello <[hidden email]
>     <mailto:[hidden email]>
>     > <mailto:[hidden email]
>     <mailto:[hidden email]>>>
>     >
>     >     Hi Ilaria,
>     >     just checked the sources, but still didn't try.
>     >
>     >     It seems that the help is outdated, you need to use out1 and
>     out2
>     >     instead of file1 and file2.
>     >
>     >     Andrea
>     >
>     >
>     >     On Thu, Jul 2, 2009 at 10:22 AM, Ilaria
>     >     Pretto<[hidden email]
>     <mailto:[hidden email]> <mailto:[hidden email]
>     <mailto:[hidden email]>>>
>     >     wrote:
>     >     > Maybe I was not clear in my explanation.
>     >     >
>     >     > I wanted to say that as for "--igrass" the string '-map1'
>     is red
>     >     color (that
>     >     > I assume is the correct syntax), for the "--otable" the string
>     >     '-file1' is
>     >     > black, like if is not recognised. I might be wrong in it, but
>     >     maybe is a
>     >     > correct hint.
>     >     >
>     >     > Hope you can see the colors of the following script (that is
>     >     exactly what i
>     >     > see in my console).
>     >     >
>     >     >   jgrass {
>     >     >         h.cb
>     >     >                 --igrass-map1 FS6mm
>     >     >                 --igrass-map2 FS6mm
>     >     >                 --otable-file1
>     >     >
>     "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/#file1.txt"
>     >     >                 --otable-file2
>     >     > "meanx#tbins#/ilaria/Scrivania/out/#file2.txt"
>     >     >                 --firstmoment 1
>     >     >                 --lastmoment 2
>     >     >                 --numbins 100
>     >     >  }
>     >     >
>     >     >
>     >     > Thank you
>     >     > Ilaria
>     >     >
>     >     >
>     >     >
>     >     >
>     >     > 2009/7/2 Ilaria Pretto <[hidden email]
>     <mailto:[hidden email]>
>     >     <mailto:[hidden email]
>     <mailto:[hidden email]>>>
>     >     >>
>     >     >> Andrea, thank you for your reply, but unfortunately that
>     is not
>     >     the cause
>     >     >> of the problem.
>     >     >> The string 'file1' that is not recognised seems to be the
>     one after
>     >     >> "--otable".
>     >     >>
>     >     >>
>     >     >> 2009/7/2 andrea antonello <[hidden email]
>     <mailto:[hidden email]>
>     >     <mailto:[hidden email]
>     <mailto:[hidden email]>>>
>     >     >>>
>     >     >>> Hi Ilaria,
>     >     >>> I am not able to try right now, but I see that the help
>     states
>     >     >>>
>     >     >>> h.cb --igrass-map1 map1 --igrass-map2 map2 --otable-file1
>     >     >>> nvalues#meanx#meany#mom_...#/file_path/#file1"
>     --otable-file2
>     >     >>> meanx#tbins#/file_path/#file2" --firstmoment value
>     >     --lastmoment value
>     >     >>> --numbins value
>     >     >>>
>     >     >>> which needs a hash between file_path and file1:
>     >     >>>
>     >     >>> #/file_path/#file1
>     >     >>>
>     >     >>>
>     >     >>> Not sure right now, but that might be the problem,
>     >     >>> Andrea
>     >     >>>
>     >     >>>
>     >     >>>
>     >     >>> On Thu, Jul 2, 2009 at 9:28 AM, Ilaria
>     >     Pretto<[hidden email]
>     <mailto:[hidden email]> <mailto:[hidden email]
>     <mailto:[hidden email]>>>
>     >     >>> wrote:
>     >     >>> > Dear all,
>     >     >>> >
>     >     >>> > I encountered this error message in running 'h.cb'
>     from console:
>     >     >>> >
>     >     >>> > error E2110: 'h.cb' : use of undefined quantity 'file1'.
>     >     >>> >
>     >     >>> > The script I launch is the following (as explained in
>     the wiki):
>     >     >>> >
>     >     >>> >   jgrass {
>     >     >>> >         h.cb
>     >     >>> >                 --igrass-map1 FS6mm
>     >     >>> >                 --igrass-map2 FS6mm
>     >     >>> >                 --otable-file1
>     >     >>> >
>     "nvalues#meanx#meany#variance#/ilaria/Scrivania/out/file1.txt"
>     >     >>> >                 --otable-file2
>     >     >>> > "meanx#tbins#/ilaria/Scrivania/out/file2.txt"
>     >     >>> >                 --firstmoment 1
>     >     >>> >                 --lastmoment 2
>     >     >>> >                 --numbins 100
>     >     >>> >  }
>     >     >>> >
>     >     >>> > If someone can answer it would be very appreciated.
>     >     >>> > Cheers,
>     >     >>> > Ilaria
>     >     >>> >
>     >     >>> >
>     >     >>> >
>     >     >>> >
>     >     >>> >
>     >     >>> >
>     >     >>> > _______________________________________________
>     >     >>> > JGrass-users mailing list
>     >     >>> > [hidden email]
>     <mailto:[hidden email]>
>     <mailto:[hidden email]
>     <mailto:[hidden email]>>
>     >     >>> >
>     https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >     >>> >
>     >     >>> >
>     >     >>> _______________________________________________
>     >     >>> JGrass-users mailing list
>     >     >>> [hidden email]
>     <mailto:[hidden email]>
>     <mailto:[hidden email]
>     <mailto:[hidden email]>>
>     >     >>> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >     >>
>     >     >
>     >     >
>     >     > _______________________________________________
>     >     > JGrass-users mailing list
>     >     > [hidden email]
>     <mailto:[hidden email]>
>     <mailto:[hidden email]
>     <mailto:[hidden email]>>
>     >     > https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >     >
>     >     >
>     >     _______________________________________________
>     >     JGrass-users mailing list
>     >     [hidden email]
>     <mailto:[hidden email]>
>     <mailto:[hidden email]
>     <mailto:[hidden email]>>
>     >     https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >
>     >
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > JGrass-users mailing list
>     > [hidden email] <mailto:[hidden email]>
>     > https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>     >
>     _______________________________________________
>     JGrass-users mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> JGrass-users mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
>  
_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users