Peter,
I was able to download a 1024 x 1024 PNG file of LASCO images using the following commands. The image is attached.
In [1]: from sunpy.net import helioviewer
In [2]: hv = helioviewer.HelioviewerClient()
In [3]: f = hv.download_png('2012/07/16 10:08:00', 11.9, "[SOHO,LASCO,C2,white-light,1,100]",x1=-512*11.9, x2=512*11.9, y1=-512*11.9, y2=512*11
...: .9)
Changing the image time would allow you to get a day’s worth of C2 images.
Hope this helps,
Jack
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sunpy/65297a3a-c05a-409c-a5f7-db0a121478f6n%40googlegroups.com.
Peter,
Construction of the script requires a bit more knowledge about the original data. The script I sent prepares a PNG of the Helioviewer JPEG2000 file using the scale size and the extent of the original FITS data. In the original data, the length of one side of a pixel is 11.9 arcseconds. The original image data size is 1024 x 1024 pixels. Also, in these images the center of the Sun is at (0,0) in helioprojective Cartesian coordinates. So the full x-extent of the image in arcseconds is between x1=-512*11.9 and x2=512*11.9. The same applies to the y-extent of the image.
You can get the information on the pixel scale size and the number of pixels in the image through Helioviewer.org. If you select a SOHO LASCO C2 image, press the small “H” button in the image down. This shows the FITS header information. The size of each pixel is given by the CDELT1 and CDELT2 values. These value of CDELT1 and CDELT2 are the same for LASCO C2 data. Similarly, the NAXIS1 and NAXIS2 values give you the number of pixels on each side of the image. This information is available for all images provided by helioviewer.org.
Are you familiar with https://sungrazer.nrl.navy.mil/ ? It’s a good resource for comet reports in LASCO data.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sunpy/0e598c77-3029-461f-a027-f700380f1a95n%40googlegroups.com.
Peter,
All images from helioviewer.org have been rotated compared to their source FITS files so that solar north is in the same direction. The reason for this is that applying rotation on-the-fly is an expensive operation, but doing it once is reasonable for the main purpose of helioviewer, namely the visualization of solar image data.
To get the highest fidelity images you have to use the original FITS data. The FITS data and the image processing software are available online. The software is written in IDL and is available at https://www.lmsal.com/solarsoft/ . The FITS data are also available via the Virtual Solar Observatory.
I wrote the helioviewer LASCO data processing pipeline a few years ago, and if it might help, it is available here:
https://github.com/Helioviewer-Project/jp2gen/tree/master/idl/soho/lasco
This code also relies on the Solarsoft/IDL software. One note - I am by no means an expert on LASCO data processing. I would recommend contacting Karl Battams for more detailed information about LASCO data processing if you wish to pursue that route.
Thanks,
To view this discussion on the web visit
https://groups.google.com/d/msgid/sunpy/87481bec-6cab-45c8-acc3-a1ad0afd0335n%40googlegroups.com.