Welcome to iraf.net Monday, May 13 2024 @ 06:59 PM GMT
MichaelCampbell |
12/11/2008 02:07PM (Read 1616 times)
|
|
|
Status: offline
Registered: 12/11/2008
Posts: 3
|
Hi,I am trying to create lists with 100 random co-ordinates and magnitudes within the addstar function. I wish to create 100 different lists each containing 100 stars. I have set the seed function INDEF, but it doesn't appear to work. Each list is the same. I have tried putting delays in of 1 second, and 20 seconds, but it doesn't make any difference. I have also tried setting the seed = 0, as suggested in the phelp page for addstar, but it doesn't produce uniformly random numbers. The magnitude values appear to cluster around certain values. Have you any suggestions why seed= INDEF does not work? or can you provide me with a seed value that produces equally weighted magnitude probabilities?Thanks
Mike
|
|
|
|
fitz |
12/11/2008 02:07PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
The DAOPHOT code has it's own random number generator and doesn't implement the trick about using the clocktime to offset the seed, so you'll need to use a different seed each time to get a different list.A better approach may be to use the STARLIST task in the ARTDATA package to generate the files and then pass these in as the 'photfile' param. STARLIST does use the clocktime when seed=INDEF and should give you 100 unique lists and more control over the distribution.Cheers,
-Mike
|
|
|
|
| |
|
Content generated in: 0.08 seconds |
|