Changes between Version 10 and Version 11 of Ask_an_expert
- Timestamp:
- Aug 10, 2009, 2:10:46 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ask_an_expert
v10 v11 26 26 1) You can use "mextract" to pull individual measurements, including magnitude (using the proper photcode) and time of the measurment (using the "time" keyword). Eventually, you will be able to use the "OBJID" keyword to pull all the measurements associated with a given object, but for now you can use the RA and DEC keywords to isolate the object (i.e., use boolean logic to pull out all measurments within about 1 arcsec of the object): 27 27 -> catdir (data catalog) 28 28 29 -> region (ra) (dec) (radius) 30 29 31 -> define values for object's position obj_ra and obj_dec 32 30 33 -> mextract -region (photcode),(photcode):err,time where (sqrt(((RA-obj_ra)*cos(DEC))^2 + (DEC-obj_dec)^2) <= 0.0003) 34 31 35 2) Now you can plot up the data: 32 36 -> set xvec = time; set yvec = (photcode); set zvec = (photcode):err 37 33 38 -> device -n lightcurve 39 34 40 -> labels -fn times 14 -x "time (sec)" -y "mag" +x "Lightcurve" 41 35 42 -> limits xvec yvec; box -lw 2 43 36 44 To plot points: 45 37 46 -> plot -x 2 -pt 1 -sz 1.5 -c black xvec yvec -dy zvec 47 38 48 To connect the points: 49 39 50 -> plot -x 0 -lt 0 -lw 1 -c green xvec yvec 40 51
