Skip to content

Instantly share code, notes, and snippets.

@raprasad
Last active April 7, 2016 15:11
Show Gist options
  • Save raprasad/1387646984f7c8402278d69f793e5379 to your computer and use it in GitHub Desktop.
Save raprasad/1387646984f7c8402278d69f793e5379 to your computer and use it in GitHub Desktop.
Dataverse "metadata" from a FITS file is currently stored in a general description field.

FITS file level metadata

  • Current (4/2016) handling of FITS metadata includes:

    • Extra information in the file description field which shows up on the cards
    • The addition of a FITS file tag
  • Reference document for the File level metadata BRD

Example FITS file

{
    "id": 2669235, 
    "identifier": "10065", 
    "persistentUrl": "http://hdl.handle.net/10904/10065", 
    "protocol": "hdl", 
    "authority": "10904", 
    "latestVersion": {
        "id": 69251, 
        "versionNumber": 3, 
        "versionMinorNumber": 0, 
        "versionState": "RELEASED", 
        "versionNote": "updated publication information and title", 
        "productionDate": "Production Date", 
        "lastUpdateTime": "2012-10-11T20:46:50Z", 
        "releaseTime": "2012-10-19T00:00:00Z", 
        "createTime": "2012-10-11T20:46:50Z", 
        "metadataBlocks": {
            "citation": {
                "displayName": "Citation Metadata", 
                "fields": [
                    {
                        "typeName": "title", 
                        "multiple": false, 
                        "typeClass": "primitive", 
                        "value": "GBT Ophiuchus HI Datacube"
                    }, 
                    {
                        "typeName": "author", 
                        "multiple": true, 
                        "typeClass": "compound", 
                        "value": [
                            {
                                "authorName": {
                                    "typeName": "authorName", 
                                    "multiple": false, 
                                    "typeClass": "primitive", 
                                    "value": "COMPLETE team"
                                }, 
                                "authorAffiliation": {
                                    "typeName": "authorAffiliation", 
                                    "multiple": false, 
                                    "typeClass": "primitive", 
                                    "value": "COMPLETE"
                                }
                            }
                        ]
                    }, 
                    {
                        "typeName": "datasetContact", 
                        "multiple": true, 
                        "typeClass": "compound", 
                        "value": [
                            {
                                "datasetContactName": {
                                    "typeName": "datasetContactName", 
                                    "multiple": false, 
                                    "typeClass": "primitive", 
                                    "value": "Di Li"
                                }, 
                                "datasetContactAffiliation": {
                                    "typeName": "datasetContactAffiliation", 
                                    "multiple": false, 
                                    "typeClass": "primitive", 
                                    "value": "JPL/Caltech"
                                }, 
                                "datasetContactEmail": {
                                    "typeName": "datasetContactEmail", 
                                    "multiple": false, 
                                    "typeClass": "primitive", 
                                    "value": "[email protected]"
                                }
                            }
                        ]
                    }, 
                    {
                        "typeName": "dsDescription", 
                        "multiple": true, 
                        "typeClass": "compound", 
                        "value": [
                            {
                                "dsDescriptionValue": {
                                    "typeName": "dsDescriptionValue", 
                                    "multiple": false, 
                                    "typeClass": "primitive", 
                                    "value": "<p><b>Description:</b> <br /> 21 cm HI maps obtained at the 100 m NRAO Green Bank Telescope. The line profiles of HI in Ophiuchus reveal a strong and extensive HI Narrow SelfAbsorption (HINSA; Li &amp; Goldsmith 2003) component, which is well correlated with molecular emission.</p>  <p><b>Telescope:</b><br /> <a href=\"http://www.gb.nrao.edu/GBT/GBT.shtml\">GBT</a></p>  <p><b>Status:</b><br /> Complete.</p>  <p><b>Areal Coverage:</b><br /> 5 square degrees</p>  <p><b>Noise Properties: </b><br /> 1\n-sigma rms/channel: 0.15 K</p>  <p><b>Sampling:</b><br /> On-the-fly mapping and frequency switching with a 1 MHz throw were used together with a data dumping rate of twice the Nyquist sampling rate, i.e. 4 dumps as the telescope moves over a whole beam. The 12.5 MHz total bandwidth mode of the GBT Spectrometer was used with two spectral windows, one at 1420.4 MHz for HI, the other centered at 1666.4 MHz for the two OH lambda-doubling lines (not available here). The spectral resolution is 0.32 k\nm s<sup>-1</sup>. </p>  <p><b>Comments on Reduction:</b><br /> During reduction, frequency-switched data at both frequencies (+/- frequency throw) were treated independently because of instrument baseline stability.</p>"
                                }
                            }
                        ]
                    }, 
                    {
                        "typeName": "dateOfDeposit", 
                        "multiple": false, 
                        "typeClass": "primitive", 
                        "value": "2011-09-20"
                    }
                ]
            }
        }, 
        "files": [
            {
                "description": "Ophiuchus HI FITS cube", 
                "label": "OphA_HI21cmGBT_F_1.fits", 
                "version": 1, 
                "datasetVersionId": 69251, 
                "datafile": {
                    "id": 2439185, 
                    "name": "OphA_HI21cmGBT_F_1.fits", 
                    "contentType": "text/plain; charset=US-ASCII", 
                    "filename": "287", 
                    "originalFormatLabel": "UNKNOWN", 
                    "md5": "", 
                    "description": "Ophiuchus HI FITS cube"
                }
            }, 
            {
                "description": "21 cm HI emission map of Ophiuchus", 
                "label": "OphA_HI21cmGBT_F_1.jpg", 
                "version": 1, 
                "datasetVersionId": 69251, 
                "datafile": {
                    "id": 2439184, 
                    "name": "OphA_HI21cmGBT_F_1.jpg", 
                    "contentType": "image/jpeg", 
                    "filename": "288", 
                    "originalFormatLabel": "UNKNOWN", 
                    "md5": "", 
                    "description": "21 cm HI emission map of Ophiuchus"
                }
            }
        ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment