This folder defines a Google Cloud Function.
This function is used to lookup the FITS header from a file in the storage bucket.
This endpoint looks for one parameters, bucket_path
. If
bucket_path
is present then the header information will be pulled from the file
and returned as a json document.
Endpoint: /get-fits-header
Payload: JSON message of the form:
{
bucket_path: str,
}
Response:
The JSON response will contain the success
flag as well as the FITS headers as key/value pairs.
{
success: <bool>,
header: {
<FITSHEAD>: <any>
}
}
See Deployment in main README for preferred deployment method.