CasJobs.writeFitsFileFromQuery {SciServer} | R Documentation |
Executes a quick CasJobs query and writes the result to a local Fits file (http://www.stsci.edu/institute/software_hardware/pyfits).
CasJobs.writeFitsFileFromQuery(fileName, queryString, context="MyDB")
fileName |
path to the local Fits file to be created (string). |
queryString |
sql query (string) |
context |
database context (string) |
Returns True if the fits file was created successfully. Throws an exception if the user is not logged into SciServer (use Authentication.login
for that purpose). Throws an exception if the HTTP request to the CasJobs API returns an error.
Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>
http://www.sciserver.org
http://skyserver.sdss.org/casjobs
http://www.github.com/sciserver/SciScript-R
response = CasJobs.writeFitsFileFromQuery(fileName="MyFile.fits", queryString="select 1 as foo,2 as bar", context="MyDB")