{"id":21375588,"url":"https://github.com/lsst/mops_daymops","last_synced_at":"2025-07-13T09:33:29.194Z","repository":{"id":19756074,"uuid":"23013401","full_name":"lsst/mops_daymops","owner":"lsst","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-10T00:20:00.000Z","size":25197,"stargazers_count":2,"open_issues_count":1,"forks_count":10,"subscribers_count":61,"default_branch":"main","last_synced_at":"2023-07-10T01:23:23.209Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lsst.png","metadata":{"files":{"readme":"README.quickstart.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-16T07:47:06.000Z","updated_at":"2023-07-10T00:20:07.000Z","dependencies_parsed_at":"2022-08-05T05:15:26.447Z","dependency_job_id":null,"html_url":"https://github.com/lsst/mops_daymops","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsst%2Fmops_daymops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsst%2Fmops_daymops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsst%2Fmops_daymops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsst%2Fmops_daymops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsst","download_url":"https://codeload.github.com/lsst/mops_daymops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225871094,"owners_count":17537173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T09:11:38.071Z","updated_at":"2024-11-22T09:11:38.767Z","avatar_url":"https://github.com/lsst.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Here's a greatly simplified guide to running MOPS at the moment, which\nwill run findTracklets, collapseTracklets linkTracklets for you.\n\nI was using Bash when I came up with these, you may need to change a\nfew things if you're using *csh.\n\n# set up your environment\nsetlsst\nsetup mysqlpython\nsetup mops_daymops\nexport MOPS_HACKS=$MOPS_DAYMOPS_DIR/tests/experimentScripts/\n\n# get data\nmkdir myMopsRun\ncd myMopsRun\nwget --user=USER --password=PASSWORD dias_pt1_nodeep.short.astromErr\n\n\n# populate the DB for later. I assume you have the OpSim DB already.\necho \"CREATE DATABASE myMops; USE myMops; `cat fullerDiaSource.sql`;\" | mysql\necho \"LOAD DATA INFILE '$PWD/dias_pt1_nodeep.short.astromErr' INTO TABLE \n      fullerDiaSource FIELDS TERMINATED BY ' '\" | mysql myMops\n\n\n# findTracklets\npython  $MOPS_HACKS/splitByNight.py dias_pt1_nodeep.short.astromErr\n\nmkdir tracklets\n\nbash $MOPS_HACKS/runFindTracklets.maxv0.5.sh\n\ncd tracklets\n\n# collapseTracklets\nbash $MOPS_HACKS/runCollapseTracklets.sh\n\n\n##################################\n# make linkTracklets input files #\n##################################\n\n# edit mopsDatabases.py at the top to make sure\n# it points to the right DBs and tables for opSim and\n# your new myMops DB, etc.\n\nemacs $MOPS_HACKS/mopsDatabases.py\n\n# bin the tracklets by their source images.\n\nmkdir byObsHistId/\n\nfor TRACKLETS in *.tracklets.final.byDiaIds\ndo\n    python $MOPS_HACKS/binTrackletsByStartImage.py $TRACKLETS byObsHistId/\ndone\n\nmkdir linkTrackletsInfiles\n\n# edit makeLinkTrackletsInput_byImages.py so that it knows where to\n# look for your byObsHistId directory, and your linkTrackletsInfiles\n# directory.  These are set by constants at the top of the file.\nemacs $MOPS_HACKS/makeLinkTrackletsInfiles_byImages.py\n\npython $MOPS_HACKS/makeLinkTrackletsInfiles_byImages.py\n\ncd linkTrackletsInfiles\n\n\n# now make the run scripts which execute linkTracklets\n\nmkdir tracks\ncd tracks\npython makeLinkTrackletsRunScripts.py\n\n#########################\n# RUNNING LINKTRACKLETS #\n#########################\n\nfor LINKTRACKLETS_RUN_CMD in *.cpp.cmd.sh\ndo\n   bash $LINKTRACKLETS_RUN_CMD\ndone\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsst%2Fmops_daymops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsst%2Fmops_daymops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsst%2Fmops_daymops/lists"}