Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sunspot/magnetogram overlays to SolarMonitor #22

Open
dpshelio opened this issue Nov 5, 2013 · 0 comments
Open

Add sunspot/magnetogram overlays to SolarMonitor #22

dpshelio opened this issue Nov 5, 2013 · 0 comments

Comments

@dpshelio
Copy link
Contributor

dpshelio commented Nov 5, 2013

Originally reported by: pohuigin (Bitbucket: pohuigin, GitHub: pohuigin)


The sunspot overlay code has been running on my (p.higgins) machine at LMSAL steadily for a month or so. The code produces new images every 6 hours.

The output is viewable here:
http://www.mmmotd.solarsurfer.org/sunspot_overlays.php

The images are uploaded here:
http://lmsal.com/~higgins/max_millennium/sunspot_overlays/

There are a couple ways that the sunspot overlay images could be added to solarmonitor:

  1. Simply grab the PNGs from the LMSAL directory every time solarmonitor runs and save them in the solarmonitor data directory tree (e.g., solarmonitor.org/data/2013/11/04/pngs/ssovr/*.png, for example).
  2. Run the overlay code locally. The code is available here:
    https://github.com/pohuigin/max_millennium/tree/master/idl
    The batch that runs the data getting/reading/image making: mmmotd_batch.pro
    The data getting: mmmotd_find_data.pro
    The reading/processing/image making: mmmotd_sunspot_overlay.pro
  3. Another option is to hack the part of the code that does the actual overlaying and put that into ARM_REGIONS.PRO on solarmonitor as another type of cut-out image to make.

In my opinion the best option is #1, because I think we should be modularising the solarmontior data product creation, not adding more for ARM_BATCH to do...

To accomplish #1, you would have to write a batch file to:
-make a new SM data directory branch for the day's overlays
-search the remote image directory at LMSAL.com/... for new images
-compare the new images to the images that have already been downloaded to SM
-If new images are found, then copy the images that are found to the local directory
-Then somehow move the new files to the live solarmonitor data directory

Also, a change to the solarmonitor front end PHP will have to be done to display these new images.
I don't know enough about how the new version of the site operates to know what change has to be made...

Also if there is a better way I could be naming the PNG files for use on solarmonitor, let me know.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant