Guest User

Untitled

a guest
Nov 15th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. ; intended to work for WISE L1b headers, not sure if there are other different
  2. ; or more general types of SIP WCS that come from different data sets
  3. ; and/or telescopes
  4.  
  5. function unflatten_sip, astr_flat
  6.  
  7. distort = struct_selecttags(astr_flat, select=['A', 'B', 'AP', 'BP'])
  8.  
  9. addstr = {name: 'SIP'}
  10.  
  11. distort = struct_addtags(addstr, distort)
  12.  
  13. astr = struct_trimtags(astr_flat, except=['A', 'B', 'AP', 'BP'])
  14.  
  15. addstr = {distort: distort}
  16. astr = struct_addtags(astr, addstr)
  17.  
  18. return, astr
  19. end
Add Comment
Please, Sign In to add comment