Welcome to iraf.net Thursday, April 18 2024 @ 09:41 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 Changing size of images in
   
suma99
 08/24/2015 05:52PM (Read 1851 times)  
+----
Newbie

Status: offline


Registered: 08/24/2015
Posts: 4
Hello!

I am trying to change the size of the simulated image through the "gallist" and "mkobjects" functions in the "artdata" package. The image always come out to be 512 x 512 in size, but I would like the images to be bigger or smaller sometimes. This is what I had tried:

artdata\$this->_split2($m[0]) gallist g10.dat xmin=1.0 xmax=600.0 ymin=1.0 ymax=600.0
Number of galaxies in the output list (3): 3
artdata\$this->_split2($m[0]) mkobjects g10 obj=g10.dat

This is what comes out in the g10.dat file created by "gallist":

# Mon 12:14:49 24-Aug-2015
# begin g10.dat
# spatial uniform
# xmin 1.
# xmax 600.
# ymin 1.
# ymax 600.
# luminosity powlaw
# power 0.6
# minmag -7.
# maxmag 0.
# eradius 20.
# sradius 1.
# egalmix 0.4
# ar 0.3
# absorption 1.2
# z 0.05
# nssample 100
# sorder 10
# sseed 2
# nlsample 100
# lorder 10
# lseed 2
# ngals 3
124.493 108.009 -0.723 expdisk 5.05 0.260 214.0
289.019 211.092 -0.056 expdisk 3.09 0.369 344.6
398.673 517.682 -1.238 expdisk 3.67 0.942 323.3

This is a bit of the header of the image g10.fits that is created by "mkobjects":
SIMPLE = T / Fits standard
BITPIX = -32 / Bits per pixel
NAXIS = 2 / Number of axes
NAXIS1 = 512 / Axis length
NAXIS2 = 512 / Axis length
EXTEND = F / File may contain extensions
ORIGIN = 'NOAO-IRAF FITS Image Kernel July 2003' / FITS file originator
DATE = '2015-08-24T16:15:31' / Date FITS file was generated
IRAF-TLM= '2015-08-24T16:15:31' / Time of last modification
DATAMIN = 1.000000E3 / Minimum data value
DATAMAX = 1.032664E3 / Maximum data value
DATE-OBS= '1990-01-01T00:00:00'
etc....

Is it possible to change the size of the simulated images? Could someone please provide the correct way I should type into the program to change the size of the 512x512 image?

 
Profile Email
 Quote
fitz
 08/24/2015 05:56PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
In MKOBJECTS, set the 'ncols' and 'nlines' parameter to be the size of the image you want.

 
Profile Email
 Quote
suma99
 08/24/2015 06:03PM  
+----
Newbie

Status: offline


Registered: 08/24/2015
Posts: 4
Quote by: fitz

In MKOBJECTS, set the 'ncols' and 'nlines' parameter to be the size of the image you want.



Thank you, that worked! Just in case it might help anyone else, the input to make 1000 x 1000 simulated image was:

artdata\$this->_split2($m[0]) gallist g11.dat
Number of galaxies in the output list (3): 3
artdata\$this->_split2($m[0]) mkobjects g11 obj=g11.dat ncols=1000 nlines=1000


 
Profile Email
 Quote
   
Content generated in: 0.12 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login