Ciao Andrea,

I've done more work on the little language (working name is 'jiffle')
to the point where it can now run some demo scripts and create output
images.  The source code is here:
http://code.google.com/p/jai-tools/source/browse/#svn/trunk/jiffle

I've done very little testing as yet so there will be many bugs to fix
and improvements to make.  Still, I thought now would be a good time
to start thinking about r.mapcalc again.

There are several ways in which jiffle might work with r.mapcalc...

1. make jiffle a super-set of the r.mapcalc language

2. make jiffle similar enough to r.mapcalc that an interpreter class
can do on the fly translation when running a script

3. allow more substantial differences between jiffle and r.mapcalc and
have a r.mapcalc to jiffle translator

The above is my order of preference, but there's no need to nail it
down at the moment.

It would be really useful to have some simple r.mapcalc scripts and
example data to play with now.  Do you have some that you could send
me with a little description of what each does ?

cheers
Michael

2009/1/30 andrea antonello <[email protected]>:
>>> as you might note, there are variables that are used, apart of the
>>> $vars that come from the script.
>>> For example the variable 'a' is used to create variable 'aspect' which
>>> is used for variable 'cang'.
>>>
>>> Is that what you were asking for?
>>>
>>
>> Um, I didn't word my question very well...
>>
>> In that example it looks like a is a raster map (maybe temporary) - is
>> that right ?
>
> Hmm, in this perspective I would say yes, but isn't it the same?
> I.e., 'a' is a scalar local to every calculation. The calculation is
> done for every pixel. And for every pixel the rasters get scalars and
> the variables are referred to one value. So if you make a=10, that
> would be your variable, right?
>
>> What I was wondering was whether r.mapcalc scripts can also have
>> simple (scalar) local variables, or do all variables refer to rasters
>> ?
>
> Aha, no, 'a' in that case is not a map, it is really a variable, to
> which a value is associated.
>
> Andrea
>
>
>>
>> Michael
>>
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to