File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,15 @@ pip install .
2424Use LSDB to search catalogs by LSST tract and/or patch.
2525``` python
2626import lsdb
27+ import skymap_convert
2728from lsdb_rubin import tract_patch_search
2829
29- lsdb.catalog.Catalog.tract_patch_search = tract_patch_search
3030gaia = lsdb.read_hats(" https://data.lsdb.io/hats/gaia_dr3/gaia" )
31+ lsst_skymap = skymap_convert.ConvertedSkymapReader(preset = " lsst_skymap" )
3132
32- gaia.tract_patch_search(skymap = lsst_skymap, tract = tract_index)
33+ tract_index = 10_000
34+ lsdb.catalog.Catalog.tract_patch_search = tract_patch_search
35+ gaia.tract_patch_search(skymap_reader = lsst_skymap, tract = tract_index)
3336```
3437See the [ demo notebook] ( https://github.com/astronomy-commons/lsdb-rubin/blob/main/docs/notebooks/tract_patch_search.ipynb ) for more.
3538
@@ -40,7 +43,7 @@ LSST light curves can be tricky to plot, so we've provided an easy method for a
4043import lsdb
4144from lsdb_rubin.plot_light_curve import plot_light_curve
4245
43- dia_object = lsdb.open_catalog(" ../.. /tests/data/mock_dp1_1000" )
46+ dia_object = lsdb.open_catalog(" <your-path-to>/lsdb-rubin /tests/data/mock_dp1_1000" )
4447dia_object = dia_object.compute()
4548
4649plot_light_curve(dia_object.iloc[0 ][" diaObjectForcedSource" ])
You can’t perform that action at this time.
0 commit comments