Opened 17 years ago

Closed 17 years ago

#5 closed enhancement (fixed)

Allowing the subsection to be expressed as 'take x number of pixels off the edges'

Reported by: korinnem@… Owned by: Matthew Whiting
Priority: normal Milestone:
Component: FITS reader Version:
Severity: normal Keywords:
Cc: korinnem@…

Description

To batch run Duchamp on a large number of files, it would be useful to have a way of expressing that you want, say, 5 pixels off all edges (i.e. 10 all up off one side), so that when you are processing cubes of different sizes you can get rid of the edges more easily, and rerun Duchamp. At this stage, I can do an inital pass through of 40 cubes very easily, with the edges included, but it would be more tricky to figure out how to construct coding to set up the input files to include subsections when the cubes are different sizes. I would have to go through each input file and set the subsections individually, when I could use a blanket setting with sed.

Change History (3)

comment:1 Changed 17 years ago by Matthew Whiting

Owner: set to Matthew Whiting
Status: newassigned

This is a good suggestion, and would be preferable to having to know the sizes of the cubes beforehand. It should be possible to implement, but I'll have to see if I can come up with a sensible way of doing it.

comment:2 Changed 17 years ago by Matthew Whiting

Component: component1FITS reader

comment:3 Changed 17 years ago by Matthew Whiting

Resolution: fixed
Status: assignedclosed

This has been done. To remove, say, 5 pixels from all spatial edges, you can now specify the subsection as [5,5,*] -- so rather than giving x1:x2, one provides a single value, and this number of pixels is removed from the start and end of that axis.

The beta version of the code has this change (as at 25/1/07), and the next release version will incorporate it also.

Note: See TracTickets for help on using tickets.