I'm wanting to edit the metadata in jpeg2000 files and output the results. Sunpy has excellent facilities for reading in the data and metadata, but it seems that the writer is not implemented. Are there any plans to implement that writer any time soon? Any suggestions in the meantime? I've looked at glymur and can read and edit the metadata using it, but I'm still stuck at how to write out the data with the updated metadata.
--
You received this message because you are subscribed to the Google Groups "SunPy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sunpy+unsubscribe@googlegroups.com.
To post to this group, send email to su...@googlegroups.com.
Visit this group at https://groups.google.com/group/sunpy.
For more options, visit https://groups.google.com/d/optout.
JackDavid, Jon,An application of this functionality would be to write JPEG2000 files for Helioviewer. There are no show-stoppers that I am aware of. However, we have yet to try pushing Python/SunPy/Glymur created JPEG2000 files through the full Helioviewer pipeline. I'll take a look at it in the next couple of weeks. It would be useful to write Helioviewer-compliant JPEG2000 files using SunPy.
On Fri, Sep 30, 2016 at 2:40 PM, DVD PS <dps....@gmail.com> wrote:
Hi Jon,I'm wanting to edit the metadata in jpeg2000 files and output the results. Sunpy has excellent facilities for reading in the data and metadata, but it seems that the writer is not implemented. Are there any plans to implement that writer any time soon? Any suggestions in the meantime? I've looked at glymur and can read and edit the metadata using it, but I'm still stuck at how to write out the data with the updated metadata.I've not used jpeg 2000 that much... but SunPy uses glymur for it as you've already noticed.
Glymur seems to be able to write a jp2 if you have the right OpenJPEG version (>1.5)
https://glymur.readthedocs.io/en/latest/how_do_i.html#write-imagesand I've seen that we have a placeholder to write back to jp2. I've spend a bit now trying to figure out how this thing works and probably the problem is to convert the "metadata" back into XML and then write it into the file. It doesn't seem too complicate... but probably needs time.Jack, you've got more experience with this... is there any blocker that makes this "impossible"?David
--
You received this message because you are subscribed to the Google Groups "SunPy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sunpy+un...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "SunPy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sunpy/QgEr9qczfHw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sunpy+unsubscribe@googlegroups.com.
To post to this group, send email to su...@googlegroups.com.
Visit this group at https://groups.google.com/group/sunpy.
For more options, visit https://groups.google.com/d/optout.
Unhelpful comment:
SunPy's output routines for anything are poor, even FITS. :D
Stuart
To unsubscribe from this group and all its topics, send an email to sunpy+un...@googlegroups.com.
To post to this group, send email to su...@googlegroups.com.
Visit this group at https://groups.google.com/group/sunpy.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to a topic in the Google Groups "SunPy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sunpy/QgEr9qczfHw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sunpy+unsubscribe@googlegroups.com.
To post to this group, send email to su...@googlegroups.com.
Visit this group at https://groups.google.com/group/sunpy.
For more options, visit https://groups.google.com/d/optout.