home | astro/eps 12 | bio | projects | talks | photos | weather | code | links |
CodescrapsThe items on this page may make your life easier if used properly. I made some of them, and found some of them on the web; if you own something on this page and want it removed, please notify me.
|
|||
OBLATE SPHEROID LATITUDE AND LONGITUDEUse IDL functiondeprob to calculate the latitude and longitude
on an oblate spheroidal planet, given the planet's radii, the sub-earth
latitude and longitude, the north pole angle, etc. The deprob function
code is fully commented. After loading it you can run deprob_demo
to see how it works and generate some pretty spheroid images.
NICE IDL POSTSCRIPT PLOTSLines from this page of commands can be copied and pasted into your own scripts to improve PostScript plot quality.
DEGREE-RADIAN CONVERSIONThese tiny IDL functions can convert angular units. The main advantage of them is when you're typing on the command line, it is quicker to type d2r(a) than it is to type a*!dpi/180. |
COMMAND LINE EPS PRINTINGOn my current systems, if I just try to print an EPS file using "lp", a blank page comes out. These little scripts let me print EPS files from the command line. Requires the enscript command. To use these, save them somewhere in your unix path, and chmod a+x them.
Example:
BATCH-FIX TEXT FILESI'm sure there are simpler and slicker ways to convert Mac to Unix line breaks or to search and replace within several text files, but these are super easy once they're installed. Also, they save the original files in case you messed up somehow.To use these, save them somewhere in your unix path, and chmod a+x them. Perl must be installed (probably already is).
Examples:
SCIENCE / COMPUTER REFERENCE DOCUMENTS
|