Query the SDSS stars using SDSS_dataquery.py.
% sdss01 212.000 213.000 51.000 52.000 arg1 - RA_min in degrees arg2 - RA_max in degrees arg3 - DEC_min in degrees arg4 - DEC_max in degreesThe name of the output catalog is: sdss.cat, a somewhat complicated table. This file (sdss.cat) can be reduced and simplified with a python code like sdss_00.py:
% sdss_00.py sdss.cat > sdss.cdfp