Limit on number of polygonal region vertices?

Is MIRIAD being a pain? Let us know your experience.

Moderator: Mark.Wieringa

Limit on number of polygonal region vertices?

Postby and460 » Sun Mar 23, 2014 3:08 pm

Hi guys,

In Miriad, the region of an image to be used as input to a miriad task can be supplied via a text file (i.e. region=@/path/region.file). I want to supply a polygonal region for a task to work on. In practice, is there a limit to the size of the string that can be accepted by Miriad as input, whether that be the number of supplied polygon vertices, or the number of characters in the string? For example, could I supply a region region=abspix,poly(x1,y1,x2,y2,...,x1000,y1000), or a region with 10,000 characters in the input string? Or will Miriad choke before these (rather ridiculously large) inputs are reached?

Posts: 79
Joined: Thu Sep 01, 2011 12:23 pm

Re: Limit on number of polygonal region vertices?

Postby Mark.Wieringa » Mon Mar 24, 2014 8:30 am

Hi Craig,

I had a look at the code and it looks like there is a limit of 4096 characters for the size of the region keyword.
If you need a more complex region than that you could create a mask with immask and keep adding regions until you have selected what you want.


ATCA Expert
Posts: 284
Joined: Mon Feb 08, 2010 1:37 pm

Return to MIRIAD

Who is online

Users browsing this forum: No registered users and 0 guests