// fill array newCat();etc, and so forth.
OO("January ","../cds_images/atlas_201101.html");
OO("February ","../cds_images/atlas_201102.html");
j=j+(2011-year)is modified to the current year (in this case 2011, it was 2008).
20 8 * * * /home/master/cron/head_cat-and-mk_atlas.cron |
#!/usr/bin/csh # # batch job to process headcat and once completed to continue processing mk_atlas. # # Jeff Payne V1.0 11 Jan 2000 # Modified by A Matheson & J Rainnie 9/8/2007. Moved to Solar and updated. # /home/master/cron/head_cat_cron # /home/master/cron/mk_atlas_cron_all |
#!/usr/bin/csh source ~/.cshrc cidl<<done add_path,'/home/master/atlas/IDL_prog' .r use_eof_cat .r use_eof_data .r write_gif set_plot,'X' window,0,xs=600,ys=650 ; ; update this and the previous year's catalogue ; get_utc,utc thisyear = fix(strmid(anytim2cal(utc,form=11),0,4)) mk_head_cat,update=2,/all,year=(thisyear-1) mk_head_cat,update=2,/all,year=thisyear ; done echo "end of script" |
First read the text file /cs/lrg_data/headcat/newfits containing a list of new CDS FITS files. This file is created by the hc_update procedure called by mk_head_cat (see above) [JAR 20-Dec-2007].
IDL>f = rd_ascii(concat_dir('CDS_HEAD_CAT' , 'newfits'))and then pass that string vector into mk_atlas, viz;
IDL>mk_atlas , f , /allFor each item (eg: "/cdsfits/arch31/s12345r00.fits.Z") read the FITS file (readcdsfits). If it is a "NISAT_S" observation then call nisat_snapshot otherwise call cds_snapshot. These procedures create labelled thumbnails of the image. It plots them in the IDL 'Z' buffer device then saves the images (using TVRD function) as JPEG files in the directory /archive/private/data/cds/atlas/.
IDL>x2jpeg , '/archive/private/data/cds/atlas/' + ff + '.jpg'where "ff" is the base name of the file (eg: "s12345r00").
Not quite sure about this one yet!
Creates synoptic map atlas files.
IDL>mk_syn_atlas , /newwhich firstly gets the latest headcat;
IDL>headcat , cat , /latestand finds which observations are of the type "SYNOP" - using the tag cat.obs_prog. Then for each item calls show_synoptic which creates an image (consisting of a series of 4' x 4' rasters along the solar meridian), labels it and then plots it to the window. mk_syn_atlas then creates a jpeg image (again using x2jpeg) and saves it as (for example); '/archive/private/data/cds/atlas/synoptic/2007/syn_20070707.jpg'
Creates/updates the html files for the Atlas directory listings. These html files are saved to the directory /archive/private/data/cds/html/. The files are named according to year and month; for example that for July 2007 is "atlas_200707.html" A soft link in /usr/local/html_docs/cds_images/ links these files to "../cds_images/atlas_200707.html".
Not quite sure about this one yet!
This is called twice, once for last year and again for this year.
Not quite sure about this one yet!
Not quite sure about this one yet!
Selecting a date (eg: 19-Dec-2005) using the drop-list and clicking "Go" will load the webpage ../cds_images/fsun_mosaics/s34062.jpg. These images are located here: /archive/private/data/cds/html/fsun_mosaics and are named according to study number (eg: s34062.jpg).
These files are created by the IDL routine /home/master/site/create_mosaic.pro (this directory also includes multi_create_mosaic.pro). This routine requires a study number; eg:
OK, this is a MANUAL job. It is NOT called by the Atlas job. Here's what to do;
IDL>create_mosaic,34448where the number is the study number
The procedure mk_syn_atlas is called as part of the Atlas job.
Selecting a year (eg: 2008) using the drop-list and clicking "Go" will load the webpage ../cds_images/synoptic/2008/. The 2008 (and other) sub-directories are located here: /archive/private/data/cds/atlas/synoptic/.
This webpage lists the contents of those directories. It contains files of the form svn_yyyymmdd.jpg These are produced by the (IDL) procedure mk_syn_atlas after calling show_synoptic which actually stitches the appropriate FITS files together.
The latter procedure looks for the relevant FITS files in
/sohos1/eofcs/lrg_data/summary/ (environment variable is CDS_SUMMARY_DATA)of the form
scds_*_me_yyyymmdd_*.ftsThere should be between 5 and 8 FITS files for a given day - these will be stitched together.
These FITS files are rsynced from GSFC, by the cron job $HOME/rsync/update_cds_lrg_summ.
It appears that the creation of the 2008 headcat didn't happen automatically. Here's what I did to generate it.
First of all, make sure the routine /cs/idl/cds_util/misc/headcat.pro has the new year in its CASE statement!
This also applies to the routine /cs/idl/cds_util/misc/mk_head_cat.
IDL> help,concat_dir('$CDS_HEAD_CAT','ral_file_loc')STRING = '/cs/lrg_data/headcat/ral_file_loc' IDL>restore,concat_dir('$CDS_HEAD_CAT','ral_file_loc') IDL>help,rfl RFL STRING = Array[353075] IDL> help,rfl[10000] STRING = '/cdsfits/arch19/s10868r135.fits.Z' IDL> help,rfl[100000] STRING = '/cdsfits/arch29/s25444r63.fits.Z '