--
You received this message because you are subscribed to the Google Groups "SunPy" group.
To post to this group, send email to su...@googlegroups.com.
To unsubscribe from this group, send email to sunpy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sunpy?hl=en.
The only downside to this approach is that the way you access the original/updated header is different (property vs. method), but it does save us from having to update properties in multiple places wheneverx = sunpy.make_map('file.fits')
...hack hack hack...x.fits_header // => original headerx.get_header() // => updated headerx.save('new_file.fits') // => new fits file with updated header/data
-Joe
--
You received this message because you are subscribed to the Google Groups "SunPy" group.
To post to this group, send email to su...@googlegroups.com.
To unsubscribe from this group, send email to sunpy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sunpy?hl=en.
"Be yourself, everyone else is already taken."
- Oscar Wilde
I'm not sure if I see the value of maintaining the original FITS file header information. Presumably, you would keep the original FITS file that was used to make the map object and could always read it back in if you needed the unadulterated header. I understand not wanting to update the same information in multiple places, however, I think that writing out an updated file in a format that is agnostic to programming language is an important feature. Sorry my Python skills aren't quite up to the task yet, but I am learning quickly. (I still hate object oriented programming, but I'm sure I'll come around. Eventually.)Headers only take up a small amount of storage space, so if the consensus is to keep them both, that's fine. The only thing I worry about is confusion. People used to map objects are used to the structure tags automatically updating. In the save property I would automatically have the saved headers updated. Half the skill in programming is human engineering and saving users from ID10T errors.
--
You received this message because you are subscribed to the Google Groups "SunPy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sunpy/-/xcXka0ehqEEJ.
--
Hey David,I thought about that as well. Do you think we should just append some string (e.g. saved using SunPy xxx on yyy) to the end of the current comment string?
To unsubscribe from this group, send email to sunpy+unsubscribe@googlegroups.com.