IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25966


Ignore:
Timestamp:
Oct 29, 2009, 10:18:04 AM (17 years ago)
Author:
eugene
Message:

distribute skycells based on the integer values of the skycell IDs, not the string values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pantasks.pro

    r25742 r25966  
    561561  end   
    562562
    563   strhash $skycellID $count -var skyhash
     563  local j myValue skyhash
     564  list word -splitbychar . $skycellID
     565  $skyhash = 0
     566  for j 0 $word:n
     567    inthash $word:$j 46 -var myValue
     568    $skyhash = $skyhash + $myValue
     569  end
     570  # strhash $skycellID $count -var skyhash
     571
    564572  sprintf skyname "sky%02d" $skyhash
    565573
     
    613621  end   
    614622
    615   strhash $skycellID $count -var skyhash
     623  local j myValue skyhash
     624  list word -splitbychar . $skycellID
     625  $skyhash = 0
     626  for j 0 $word:n
     627    inthash $word:$j 46 -var myValue
     628    $skyhash = $skyhash + $myValue
     629  end
     630  # strhash $skycellID $count -var skyhash
     631
    616632  sprintf skyname "sky%02d" $skyhash
    617633
Note: See TracChangeset for help on using the changeset viewer.