CasJobs.writeFitsFileFromQuery: Write Fits file.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/CasJobs.r

Description

Executes a quick CasJobs query and writes the result to a local Fits file (http://www.stsci.edu/institute/software_hardware/pyfits).

Usage

1
CasJobs.writeFitsFileFromQuery(fileName, queryString, context="MyDB")

Arguments

fileName

path to the local Fits file to be created (string).

queryString

sql query (string)

context

database context (string)

Value

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.

Author(s)

Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>

References

http://www.sciserver.org
http://skyserver.sdss.org/casjobs
http://www.github.com/sciserver/SciScript-R

See Also

CasJobs.uploadCSVDataToTable.

Examples

1
response = CasJobs.writeFitsFileFromQuery(fileName="MyFile.fits", queryString="select 1 as foo,2 as bar", context="MyDB")

sciserver/SciScript-R documentation built on May 29, 2019, 3:45 p.m.