Data Services:Ingest:sac

From CedarWiki

Jump to: navigation, search

Sacramento Peak 557.7 nm Photometer (sac) Ingest

  • Received data from Gonzalo Hernandez in November 2007 as an ascii zipped file labelled sac_cln_cedar.Z. This is a new instrument and all the data there is.
    • Copied data into ~emery/cedar/wrdata/sac (new directory)
    • Uncompressed on a unix machine with: uncompress sac_cln_cedar.Z
    • Copied 13 line header about data at Sacrament Peak, NM (32 43' N, 105 45' W) (which is lat code 153=3272 and lon code 156=-10575) and examples into head_sac and printed out
  • Determined kinst from List of Ground Based Instruments in annual catalog: fixed single channel photometers are between 4600 and 5000. Choose 4600's to be SH and 4700's to be NH, with kinst=4700+lat=4733
    • Updated kinst.updat, kinst.list, kinst.file, kinst.groups in ~bozo/is/docs so Roy Barnes codes will work for me. Must also inform Jose Garcia of new kinst.
  • Determined 1-D and 2-D parameter codes: 5 1-D are 10 (year), 21 (day number), 153 (latitude), 156 (longitude) and 2400 (wavelength) while 3 2-D are 34 (UT fractional hour), 28 (beginning UT hhmm), 2500 (emission in R). The UT time is ASSUMED to be the start time since many are on the hour and half hour. Check to see if the UT ever goes over 24 UT - not for this location at night.
  • Wrote sac.f to read the original ascii file and turn it into a CEDAR DB ascii format file, sac530510a.asc. In code, found UT limits (wanted above), max number of points in a day (64 on 590111, 600107, 600108, 601215, 610116 for 10 min data), max R (2272 R on 580902; or 1626 R on 580424 with 580902 all larger - is this good data or not?)
    • Converted to .cbf with: chr2is sac530510a.asc sac.cbf -- after several iterations this was OK.
  • In /cedar/d/emery/dbplots/sac (new directory), wrote sac_gscr and sac.pro from ehp example to plot 60 days at once of emission.
    • Ran sac_gscr (output html.store) and sac.pro (.ps files) several times until correct
    • Ran togif to convert .ps plots to .gif and copied .gif files to new directory /htdocs/instruments/GIF/sac. cd ../; cvs add sac; cd sac; cvs add *; cvs commit -m 'new' *; su ...; cd /project/cedar/html; cvs checkout /cedar/htdocs/instruments/GIF/sac
  • Wrote brief metadata in sac_head and htdocs/instruments/sac.html
    • Added html.store list of .gif files in /GIF/sac to sac.html; cvs add sac.html; cvs commit -m 'new' sac.html; su ..; cvs update sac.html
  • Sent sac.let04mar to Gonzalo with sac_head as an attachment - asked specifically about 580902
Personal tools