-
Notifications
You must be signed in to change notification settings - Fork 6
Mongo wiki
Sushant edited this page Apr 29, 2013
·
16 revisions
Importing Mongo dump files:
$ mongoimport -d spacecalnyc -c schedules backend/mongo_schedules.txt
Source names:
["XMM-Newton", "Fermi", "AGILE", "Chandra", "INTEGRAL", "NuSTAR", "RXTE", "Suzaku", "Swift", "Herschel", "Spitzer"]
Mongo schedules document (target with image):
{ u'_id': u'Swift|41419|3', u'source': u'Swift', u'target': u'1FGL J1627.8-3204', u'start': datetime.datetime(2013, 4, 24, 19, 2), u'end': datetime.datetime(2013, 4, 24, 19, 7), u'ra': 246.97547000000003, u'dec': -32.07208000000002, u'ra_str': u'16h27m54.1128s', u'dec_str': u'-32d4m19.49s', u'l': 347.41507783712035, u'b': 11.532613475108903, u'reference_url': u'http://ned.ipac.caltech.edu/cgi-bin/imgdata?objname=1FGL%20J1627.8-3204', u'images': [u'http://ned.ipac.caltech.edu/dss/1FGL_J1627.8-3204_1.gif'], }