[GRASSLIST:5841] GRASS and GMT

Hi,

I got this from the GMT mailing list... it's a good example of
integration between GRASS and GMT, the link is below...

http://169.237.35.250/~dylan/grass_user_group/

Cheers

Christian

Hello, I'm writing a shall script calling different grass command, but i need to handle datetime variables: how can it be done?
In particular I need to loop between FROMdate/TOdate by Timestep; I see it is possible use strftime() to formatting time variable and systime() to get current time, but how can be a string parsed and converted in datetime variable?
I try mktime() but i cannot get the correct use, the line

gawk "BEGIN{print strftime(\"%d %b %Y\",mktime(\"2005 12 09 12 00\")) javascript:doImageSubmit('Send')}"

return me always: 01 Jan 1970

I suppose it is a problem of formatting input, but how do i have to do?
Is maybe the case to use python or perl for scripting? but how to handle with g.parser? Is there any example of python scripting with GRASS available?

Thanks a lot.
Maxi

_
--------------------------------------
Eng. Massimiliano Cannata
Phd student
www.supsi.ch

Hello, I'm writing a shall script calling different grass
command, but i need to handle datetime variables: how can
it be done?

for the script processing?

Did you try the "date" program?

I am not sure exactly what you are trying to do, but maybe this helps:

DATE_STR=`date +"%d %b %Y"`
echo $DATE_STR

It is often useful to use julian days if you have to do any processing
based on the date:

JULIAN_DAY=`date +"%j"`
YEAR=`date +"%Y"`

see also the r.timestamp module

Hamish

Hello,

I'm trying to patch two big raster files (trying to produce a srtm map of
Brazil), in a region of 48600 rows and 51600 cols. the mas are about 1.6Gb
each. My grass was compiled with

CFLAGS="-O3 -D_FILE_OFFSET_BITS=64 -mcpu=pentiumpro -Wall" LDFLAGS="-s"

but r.patch gives me an error, like: can't write to collumn 31376...

is there a limitation of the raster size?

thanks in advance

Carlos

--
+----------------------------------------------------------+
          Carlos Henrique Grohmann - Guano
   Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
        Linux User #89721 - guano at usp dot br
+----------------------------------------------------------+

Carlos Henrique Grohmann wrote:

I'm trying to patch two big raster files (trying to produce a srtm map of
Brazil), in a region of 48600 rows and 51600 cols. the mas are about 1.6Gb
each. My grass was compiled with

CFLAGS="-O3 -D_FILE_OFFSET_BITS=64 -mcpu=pentiumpro -Wall" LDFLAGS="-s"

but r.patch gives me an error, like: can't write to collumn 31376...

is there a limitation of the raster size?

Apart from file size issues, anything which counts the total number of
cells will have problems when a map has more than 2^31 (2147483648)
cells (as yours does: 48600 * 51600 = 2507760000).

Also, I can't see anything resembling that error message in the source
code for either r.patch or libgis.

--
Glynn Clements <glynn@gclements.plus.com>