Spaces:
Sleeping
Sleeping
Commit ·
f1d7cf8
1
Parent(s): 33815f1
increase catalog and fix RGB clump selection
Browse filesFiles changed (22)
- .pre-commit-config.yaml+1
- data/A2744_F1228/clumps_pixels.csvAdded+939
- data/A2744_F1228/clumps_properties.csvAdded+24
- data/jellyfish_1/clumps_pixels.csvAdded+6544
- data/jellyfish_1/clumps_properties.csvAdded+70
- data/jellyfish_5/clumps_pixels.csvAdded+325
- data/jellyfish_5/clumps_properties.csvAdded+7
- pyproject.toml+2
- src/jellyscope/data/data_store.py+94-29
- src/jellyscope/model/schemas.py+7
- src/jellyscope/visualization/rgb_composite.py+44-10
- src/jellyscope/web/routes.py+104-49
- src/jellyscope/web/static/app.js+99-18
- src/jellyscope/web/templates/index.html+11-1
- tests/data/test_clumps.py+23-22
- tests/data/test_data_store.pyAdded+87
- tests/data/test_datacube.py+6-5
- tests/spec_analysis/test_spectral.py+9-5
- tests/spec_analysis/test_statistics.py+7-4
- tests/visualization/test_rgb_composite.py+95
- tests/web/test_routes.py+39-22
- uv.lock+71
12 unmodified lines13141516171812 unmodified linesadditional_dependencies:- numpy>=1.26- pandas-stubs- fastapi>=0.115- pydantic>=2.9- httpx>=0.2712 unmodified lines1314151617181912 unmodified linesadditional_dependencies:- numpy>=1.26- pandas-stubs- types-Pillow- fastapi>=0.115- pydantic>=2.9- httpx>=0.27
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939clump_id,x,y0,63,130,64,130,65,130,66,130,67,130,63,140,64,140,65,140,66,140,67,140,68,140,69,140,70,140,63,150,64,150,65,150,66,150,67,150,68,150,69,150,70,150,71,150,63,160,64,160,65,160,66,160,67,160,68,160,69,160,70,160,71,160,72,160,63,170,64,170,65,170,66,170,67,170,68,170,69,170,70,170,71,170,72,170,73,170,74,170,64,180,65,180,66,180,67,180,68,180,69,180,70,180,71,180,72,180,73,180,74,180,68,190,69,190,70,190,71,190,72,190,73,190,74,190,75,190,70,200,71,200,72,200,73,200,74,200,75,200,76,200,77,200,70,210,71,210,72,210,73,210,74,210,75,210,76,210,77,210,72,220,73,220,74,220,75,220,76,220,77,220,78,220,73,230,74,230,75,230,76,230,77,230,78,230,74,240,75,240,76,240,77,240,78,240,75,250,76,250,77,250,78,250,79,250,75,260,76,260,77,260,78,260,79,260,76,270,77,270,78,270,79,270,80,270,76,280,77,280,78,280,79,280,80,280,77,290,78,290,79,290,80,291,76,911,77,911,75,921,76,921,77,921,78,921,74,931,75,931,76,931,77,931,78,931,79,931,74,941,75,941,76,941,77,941,78,941,79,941,74,951,75,951,76,951,77,951,78,951,79,951,80,951,74,961,75,961,76,961,77,961,78,961,79,961,80,961,74,971,75,971,76,971,77,971,78,971,79,971,80,971,75,981,76,981,77,981,78,981,79,981,80,981,81,981,76,991,77,991,78,991,79,991,80,991,81,991,77,1001,78,1001,79,1001,80,1001,81,1001,78,1011,79,1011,80,1012,116,1192,117,1192,118,1192,116,1202,117,1202,118,1202,119,1202,116,1212,117,1212,118,1212,119,1212,120,1212,115,1222,116,1222,117,1222,118,1222,119,1222,120,1222,115,1232,116,1232,117,1232,118,1232,119,1232,116,1242,117,1242,118,1242,119,1242,117,1252,118,1253,130,1323,131,1323,132,1323,129,1333,130,1333,131,1333,132,1333,133,1333,129,1343,130,1343,131,1343,132,1343,133,1343,134,1343,129,1353,130,1353,131,1353,132,1353,133,1353,134,1353,129,1363,130,1363,131,1363,132,1363,133,1363,134,1363,135,1363,129,1373,130,1373,131,1373,132,1373,133,1373,134,1373,135,1373,136,1373,129,1383,130,1383,131,1383,132,1383,133,1383,134,1383,130,1393,131,1393,132,1393,133,1393,134,1393,131,1403,132,1403,133,1403,134,1403,135,1403,132,1413,133,1413,134,1413,135,1413,136,1413,132,1423,133,1423,134,1423,135,1423,136,1423,132,1433,133,1433,134,1433,135,1433,136,1433,132,1443,133,1443,134,1443,135,1443,136,1443,132,1453,133,1453,134,1453,135,1453,132,1463,133,1463,134,1463,135,1463,133,1473,134,1474,113,1484,114,1484,113,1494,114,1494,115,1494,116,1494,112,1504,113,1504,114,1504,115,1504,116,1504,117,1504,118,1504,112,1514,113,1514,114,1514,115,1514,116,1514,117,1514,118,1514,119,1514,112,1524,113,1524,114,1524,115,1524,116,1524,117,1524,118,1524,119,1524,113,1534,114,1534,115,1534,116,1534,117,1534,118,1534,119,1534,113,1544,114,1544,115,1544,116,1544,117,1544,118,1544,119,1544,120,1544,114,1554,115,1554,116,1554,117,1554,118,1554,119,1554,120,1554,114,1564,115,1564,116,1564,117,1564,118,1564,119,1564,120,1564,115,1574,116,1574,117,1574,118,1574,119,1574,120,1574,116,1584,117,1584,118,1584,119,1584,114,1594,115,1594,116,1594,117,1594,113,1604,114,1604,115,1604,116,1604,117,1604,112,1614,113,1614,114,1614,115,1614,116,1614,117,1614,111,1624,112,1624,113,1624,114,1624,115,1624,116,1624,117,1624,111,1634,112,1634,113,1634,114,1634,115,1634,116,1634,117,1634,118,1634,111,1644,112,1644,113,1644,114,1644,115,1644,116,1644,117,1644,118,1644,111,1654,112,1654,113,1654,114,1654,115,1654,116,1654,117,1654,118,1654,111,1664,112,1664,113,1664,114,1664,115,1664,116,1664,117,1664,118,1664,111,1674,112,1674,113,1674,114,1674,115,1674,116,1674,117,1674,118,1674,111,1684,112,1684,113,1684,114,1684,115,1684,116,1684,117,1684,113,1694,114,1694,115,1694,116,1694,117,1694,115,1704,116,1705,129,1595,130,1595,131,1595,132,1595,128,1605,129,1605,130,1605,131,1605,132,1605,133,1605,128,1615,129,1615,130,1615,131,1615,132,1615,133,1615,134,1615,135,1615,136,1615,128,1625,129,1625,130,1625,131,1625,132,1625,133,1625,134,1625,135,1625,136,1625,128,1635,129,1635,130,1635,131,1635,132,1635,133,1635,134,1635,135,1635,136,1635,129,1645,130,1645,131,1645,132,1645,133,1645,134,1645,135,1645,136,1645,130,1655,131,1655,132,1655,133,1655,134,1655,135,1655,130,1665,131,1665,132,1665,133,1665,134,1665,135,1665,131,1675,132,1675,133,1676,79,646,78,656,79,656,80,656,76,666,77,666,78,666,79,666,80,666,75,676,76,676,77,676,78,676,79,676,80,676,81,676,74,686,75,686,76,686,77,686,78,686,79,686,80,686,74,696,75,696,76,696,77,696,78,696,79,696,80,696,74,706,75,706,76,706,77,706,78,706,79,706,80,706,74,716,75,716,76,716,77,716,78,716,79,716,80,716,74,726,75,726,76,726,77,726,78,726,79,726,80,726,74,736,75,736,76,736,77,736,78,736,79,736,80,736,75,746,76,746,77,746,78,746,79,746,76,756,77,756,78,757,82,1057,79,1067,80,1067,81,1067,82,1067,78,1077,79,1077,80,1077,81,1077,82,1077,83,1077,77,1087,78,1087,79,1087,80,1087,81,1087,82,1087,83,1087,77,1097,78,1097,79,1097,80,1097,81,1097,82,1097,83,1097,77,1107,78,1107,79,1107,80,1107,81,1107,82,1107,77,1117,78,1117,79,1117,80,1117,81,1117,82,1117,79,1127,80,1127,81,1128,78,1278,79,1278,80,1278,77,1288,78,1288,79,1288,80,1288,81,1288,78,1298,79,1298,80,1298,81,1298,82,1298,78,1308,79,1308,80,1308,81,1308,82,1309,111,1349,112,1349,113,1349,114,1349,115,1349,116,1349,117,1349,111,1359,112,1359,113,1359,114,1359,115,1359,116,1359,117,1359,110,1369,111,1369,112,1369,113,1369,114,1369,115,1369,116,1369,117,1369,110,1379,111,1379,112,1379,113,1379,114,1379,115,1379,116,1379,117,1379,110,1389,111,1389,112,1389,113,1389,114,1389,115,1389,116,1389,117,1389,110,1399,111,1399,112,1399,113,1399,114,1399,115,1399,116,1399,110,1409,111,1409,112,1409,113,1409,114,1409,115,1409,110,1419,111,1419,112,1419,113,1419,114,1419,115,1419,110,1429,111,1429,112,1429,113,1429,114,1429,115,1429,109,1439,110,1439,111,1439,112,1439,113,1439,114,1439,115,1439,109,1449,110,1449,111,1449,112,1449,113,1449,114,1449,115,1449,110,1459,111,1459,112,1459,113,1459,114,1459,111,1469,112,1469,113,14610,100,6910,101,6910,102,6910,103,6910,100,7010,101,7010,102,7010,103,7010,104,7010,99,7110,100,7110,101,7110,102,7110,103,7110,104,7110,100,7210,101,7210,102,7210,103,7210,104,7210,100,7310,101,7310,102,7310,103,7310,104,7310,102,7411,46,14411,47,14411,45,14511,46,14511,47,14511,48,14511,45,14611,46,14611,47,14611,48,14611,46,14711,47,14712,131,7712,130,7812,131,7812,132,7812,130,7912,131,7912,132,7912,129,8012,130,8012,131,8012,132,8012,133,8012,129,8112,130,8112,131,8112,132,8112,133,8112,129,8212,130,8212,131,8212,132,8212,133,8212,134,8212,130,8312,131,8312,132,8312,133,8312,134,8312,133,8413,53,5613,54,5613,51,5713,52,5713,53,5713,54,5713,55,5713,56,5713,50,5813,51,5813,52,5813,53,5813,54,5813,55,5813,56,5813,50,5913,51,5913,52,5913,53,5913,54,5913,55,5913,56,5913,51,6013,52,6013,53,6013,54,6013,55,6013,56,6013,53,6113,54,6113,55,6114,48,7614,46,7714,47,7714,48,7714,49,7714,50,7714,45,7814,46,7814,47,7814,48,7814,49,7814,50,7814,51,7814,52,7814,53,7814,45,7914,46,7914,47,7914,48,7914,49,7914,50,7914,51,7914,52,7914,53,7914,45,8014,46,8014,47,8014,48,8014,49,8014,50,8014,51,8014,46,8114,47,8114,48,8114,49,8114,50,8114,51,8114,48,8214,49,8214,50,8215,110,20215,111,20215,112,20215,109,20315,110,20315,111,20315,112,20315,110,20415,111,20415,112,20415,111,20515,112,20516,136,15116,137,15116,138,15116,136,15216,137,15217,60,12817,57,12917,60,12917,61,12917,62,12917,57,13017,58,13017,59,13017,60,13017,61,13017,62,13017,58,13117,59,13117,60,13117,61,13117,62,13117,63,13117,59,13217,60,13217,61,13217,62,13218,79,7818,80,7818,79,7918,80,7918,81,7918,79,8018,80,8018,81,8018,79,8118,80,8119,49,10119,48,10219,49,10219,50,10219,48,10319,49,10319,50,10320,56,9820,57,9820,55,9920,56,9920,57,9920,58,9920,55,10020,56,10020,57,10020,58,10020,59,10020,55,10120,56,10120,57,10120,58,10120,56,10220,57,10221,36,9621,38,9621,39,9621,36,9721,37,9721,38,9721,39,9721,36,9821,37,9821,38,9821,39,9821,37,9921,38,9922,53,4422,54,4422,55,4422,53,4522,54,4522,55,4522,56,4522,54,4622,55,4622,56,4622,56,47123456789101112131415161718192021222324clump_id,area_pix,area_arcsec2,r_eff_arcsec,x0,y0,area_kpc2,r_eff_kpc,inside,component0,121,0.04839999999999903,0.12412170838050514,71.78512396694215,19.93388429752066,0.9381502164936455,0.5464636205964593,False,outside1,60,0.023999999999999515,0.08740387444736544,77.38333333333334,96.18333333333334,0.4651984544596589,0.38480809125059906,True,disk2,29,0.011599999999999767,0.06076507779746437,117.44827586206897,121.89655172413794,0.22484591965550182,0.2675269689104867,True,disk3,81,0.032399999999999346,0.10155412503859511,132.58024691358025,138.93827160493828,0.6280179135205395,0.4471065986698302,True,disk4,144,0.05759999999999884,0.13540550005146015,115.28472222222223,159.14583333333334,1.1164762907031813,0.5961421315597737,True,disk5,60,0.023999999999999515,0.08740387444736544,131.91666666666666,162.81666666666666,0.4651984544596589,0.38480809125059906,True,disk6,66,0.02639999999999947,0.0916699568847499,77.3030303030303,69.9090909090909,0.5117182999056248,0.40359013095109536,False,outside7,40,0.015999999999999678,0.07136496464611013,80.025,108.8,0.31013230297310596,0.3141944908194385,True,disk8,18,0.007199999999999855,0.04787307364817144,79.55555555555556,128.66666666666666,0.13955953633789767,0.21076807188845945,True,disk9,85,0.033999999999999315,0.10403141895720093,112.94117647058823,139.45882352941177,0.6590311438178501,0.45801324039838986,True,disk10,26,0.010399999999999791,0.05753627391751535,101.8076923076923,71.1923076923077,0.20158599693251888,0.2533116968081736,False,outside11,12,0.004799999999999903,0.0390882009522332,46.5,145.5,0.09303969089193179,0.1720914100656563,False,outside12,29,0.011599999999999767,0.06076507779746437,131.3448275862069,80.82758620689656,0.22484591965550182,0.2675269689104867,False,outside13,31,0.01239999999999975,0.06282549314314154,53.32258064516129,58.58064516129032,0.2403525348041571,0.27659824294000285,False,outside14,40,0.015999999999999678,0.07136496464611013,48.6,79.15,0.31013230297310596,0.3141944908194385,False,outside15,12,0.004799999999999903,0.0390882009522332,110.91666666666667,203.33333333333334,0.09303969089193179,0.1720914100656563,False,outside16,5,0.0019999999999999597,0.025231325220201346,136.8,151.4,0.038766537871638244,0.11108452753493972,True,disk17,21,0.008399999999999831,0.051708829458263585,60.095238095238095,130.38095238095238,0.16281945906088063,0.22765553690208212,True,disk18,10,0.003999999999999919,0.03568248232305506,79.8,79.5,0.07753307574327649,0.15709724540971925,True,disk19,7,0.0027999999999999436,0.02985410660720893,49.0,102.28571428571429,0.05427315302029354,0.1314369855129259,False,outside20,17,0.0067999999999998634,0.046524264916812316,56.64705882352941,100.0,0.13180622876357004,0.20482974802515053,True,disk21,13,0.005199999999999896,0.04068428945128178,37.53846153846154,97.38461538461539,0.10079299846625944,0.17911841856693025,False,outside22,11,0.004399999999999911,0.037424103185095176,54.63636363636363,45.18181818181818,0.08528638331760413,0.1647649810088713,False,outside1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544clump_id,x,y0,365,1080,362,1090,363,1090,364,1090,365,1090,366,1090,367,1090,368,1090,361,1100,362,1100,363,1100,364,1100,365,1100,366,1100,367,1100,368,1100,369,1100,361,1110,362,1110,363,1110,364,1110,365,1110,366,1110,367,1110,368,1110,369,1110,361,1120,362,1120,363,1120,364,1120,365,1120,366,1120,367,1120,368,1120,361,1130,362,1130,363,1130,364,1130,365,1130,366,1130,367,1130,368,1130,369,1130,360,1140,361,1140,362,1140,363,1140,364,1140,365,1140,366,1140,367,1140,368,1140,369,1140,360,1150,361,1150,362,1150,363,1150,364,1150,365,1150,366,1150,367,1150,368,1150,369,1150,370,1150,360,1160,361,1160,362,1160,363,1160,364,1160,365,1160,366,1160,367,1160,368,1160,369,1160,370,1160,360,1170,361,1170,362,1170,363,1170,364,1170,365,1170,366,1170,367,1170,368,1170,362,1180,366,1181,254,1581,253,1591,254,1591,255,1591,252,1601,253,1601,254,1601,255,1601,256,1601,251,1611,252,1611,253,1611,254,1611,255,1611,256,1611,257,1611,249,1621,250,1621,251,1621,252,1621,253,1621,254,1621,255,1621,256,1621,257,1621,258,1621,248,1631,249,1631,250,1631,251,1631,252,1631,253,1631,254,1631,255,1631,256,1631,257,1631,258,1631,247,1641,248,1641,249,1641,250,1641,251,1641,252,1641,253,1641,254,1641,255,1641,256,1641,257,1641,246,1651,247,1651,248,1651,249,1651,250,1651,251,1651,252,1651,253,1651,254,1651,255,1651,256,1651,246,1661,247,1661,248,1661,249,1661,250,1661,251,1661,252,1661,253,1661,254,1661,255,1661,245,1671,246,1671,247,1671,248,1671,249,1671,250,1671,251,1671,252,1671,253,1671,254,1671,245,1681,246,1681,247,1681,248,1681,249,1681,250,1681,251,1681,252,1681,244,1691,245,1691,246,1691,247,1691,248,1691,249,1691,250,1691,251,1691,245,1701,246,1701,247,1701,248,1701,249,1701,250,1702,420,1712,421,1712,422,1712,423,1712,419,1722,420,1722,421,1722,422,1722,423,1722,424,1722,418,1732,419,1732,420,1732,421,1732,422,1732,423,1732,424,1732,425,1732,417,1742,418,1742,419,1742,420,1742,421,1742,422,1742,423,1742,424,1742,425,1742,426,1742,416,1752,417,1752,418,1752,419,1752,420,1752,421,1752,422,1752,423,1752,424,1752,425,1752,426,1752,416,1762,417,1762,418,1762,419,1762,420,1762,421,1762,422,1762,423,1762,424,1762,425,1762,416,1772,417,1772,418,1772,419,1772,420,1772,421,1772,422,1772,423,1772,424,1772,425,1772,416,1782,417,1782,418,1782,419,1782,420,1782,421,1782,422,1782,423,1782,424,1782,425,1782,426,1782,416,1792,417,1792,418,1792,419,1792,420,1792,421,1792,422,1792,423,1792,424,1792,425,1792,426,1792,416,1802,417,1802,418,1802,419,1802,420,1802,421,1802,422,1802,423,1802,424,1802,425,1802,417,1812,418,1812,419,1812,420,1812,421,1812,422,1812,423,1812,424,1812,417,1822,418,1822,419,1822,420,1822,421,1822,422,1823,327,1113,328,1113,329,1113,330,1113,331,1113,340,1113,341,1113,342,1113,343,1113,308,1123,309,1123,310,1123,311,1123,321,1123,322,1123,323,1123,324,1123,325,1123,326,1123,327,1123,328,1123,329,1123,330,1123,331,1123,332,1123,333,1123,334,1123,335,1123,336,1123,337,1123,338,1123,339,1123,340,1123,341,1123,342,1123,343,1123,344,1123,345,1123,306,1133,307,1133,308,1133,309,1133,310,1133,311,1133,312,1133,316,1133,317,1133,318,1133,319,1133,320,1133,321,1133,322,1133,323,1133,324,1133,325,1133,326,1133,327,1133,328,1133,329,1133,330,1133,331,1133,332,1133,333,1133,334,1133,335,1133,336,1133,337,1133,338,1133,339,1133,340,1133,341,1133,342,1133,343,1133,344,1133,345,1133,306,1143,307,1143,308,1143,309,1143,310,1143,311,1143,312,1143,313,1143,314,1143,315,1143,316,1143,317,1143,318,1143,319,1143,320,1143,321,1143,322,1143,323,1143,324,1143,325,1143,326,1143,327,1143,328,1143,329,1143,330,1143,331,1143,332,1143,333,1143,334,1143,335,1143,336,1143,337,1143,338,1143,339,1143,340,1143,341,1143,342,1143,343,1143,344,1143,345,1143,306,1153,307,1153,308,1153,309,1153,310,1153,311,1153,312,1153,313,1153,314,1153,315,1153,316,1153,317,1153,318,1153,319,1153,320,1153,321,1153,322,1153,323,1153,324,1153,325,1153,326,1153,327,1153,328,1153,329,1153,330,1153,331,1153,332,1153,333,1153,334,1153,335,1153,336,1153,337,1153,338,1153,339,1153,340,1153,341,1153,342,1153,343,1153,344,1153,345,1153,306,1163,307,1163,308,1163,309,1163,310,1163,311,1163,312,1163,313,1163,314,1163,315,1163,316,1163,317,1163,318,1163,319,1163,320,1163,321,1163,322,1163,323,1163,324,1163,325,1163,326,1163,327,1163,328,1163,329,1163,330,1163,331,1163,332,1163,333,1163,334,1163,335,1163,336,1163,337,1163,338,1163,339,1163,340,1163,341,1163,342,1163,343,1163,344,1163,345,1163,306,1173,307,1173,308,1173,309,1173,310,1173,311,1173,312,1173,316,1173,317,1173,318,1173,319,1173,320,1173,321,1173,322,1173,323,1173,324,1173,325,1173,326,1173,327,1173,328,1173,333,1173,334,1173,335,1173,336,1173,337,1173,338,1173,339,1173,340,1173,341,1173,342,1173,343,1173,344,1173,307,1183,308,1183,309,1183,310,1183,311,1183,318,1183,319,1183,320,1183,321,1183,322,1183,323,1183,324,1183,325,1183,336,1183,337,1183,338,1183,339,1183,340,1183,341,1183,342,1183,343,1183,344,1183,339,1193,340,1193,341,1193,342,1193,343,1193,341,1204,334,1314,335,1314,336,1314,337,1314,333,1324,334,1324,335,1324,336,1324,337,1324,338,1324,333,1334,334,1334,335,1334,336,1334,337,1334,338,1334,332,1344,333,1344,334,1344,335,1344,336,1344,337,1344,338,1344,332,1354,333,1354,334,1354,335,1354,336,1354,337,1354,338,1354,333,1364,334,1364,335,1364,336,1364,337,1366,121,696,122,696,123,696,119,706,120,706,121,706,122,706,123,706,124,706,118,716,119,716,120,716,121,716,122,716,123,716,124,716,125,716,117,726,118,726,119,726,120,726,121,726,122,726,123,726,124,726,125,726,117,736,118,736,119,736,120,736,121,736,122,736,123,736,124,736,117,746,118,746,119,746,120,746,121,746,122,746,123,746,124,746,125,746,116,756,117,756,118,756,119,756,120,756,121,756,122,756,123,756,124,756,125,756,115,766,116,766,117,766,118,766,119,766,120,766,121,766,122,766,123,766,124,766,125,766,115,776,116,776,117,776,118,776,119,776,120,776,121,776,122,776,123,776,124,776,125,776,115,786,116,786,117,786,118,786,119,786,120,786,121,786,122,786,123,786,124,786,115,796,116,796,117,796,118,796,119,796,120,796,121,796,122,796,123,796,124,796,115,806,116,806,117,806,118,806,119,806,120,806,121,806,122,806,123,806,124,806,115,816,116,816,117,816,118,816,119,816,120,816,121,816,122,816,123,816,115,826,116,826,117,826,118,826,119,826,120,826,121,826,116,836,117,836,118,836,119,837,6,4497,7,4497,8,4497,5,4507,6,4507,7,4507,8,4507,9,4507,10,4507,11,4507,20,4507,21,4507,22,4507,4,4517,5,4517,6,4517,7,4517,8,4517,9,4517,10,4517,11,4517,19,4517,20,4517,21,4517,22,4517,23,4517,24,4517,25,4517,4,4527,5,4527,6,4527,7,4527,8,4527,9,4527,10,4527,11,4527,12,4527,18,4527,19,4527,20,4527,21,4527,22,4527,23,4527,24,4527,25,4527,26,4527,27,4527,3,4537,4,4537,5,4537,6,4537,7,4537,8,4537,9,4537,10,4537,11,4537,12,4537,13,4537,16,4537,17,4537,18,4537,19,4537,20,4537,21,4537,22,4537,23,4537,24,4537,25,4537,26,4537,27,4537,3,4547,4,4547,5,4547,6,4547,7,4547,8,4547,9,4547,10,4547,11,4547,12,4547,13,4547,14,4547,15,4547,16,4547,17,4547,18,4547,19,4547,20,4547,21,4547,22,4547,23,4547,24,4547,25,4547,26,4547,27,4547,28,4547,3,4557,4,4557,5,4557,6,4557,7,4557,8,4557,9,4557,10,4557,11,4557,12,4557,13,4557,14,4557,15,4557,16,4557,17,4557,18,4557,19,4557,20,4557,21,4557,22,4557,23,4557,24,4557,25,4557,26,4557,27,4557,28,4557,3,4567,4,4567,5,4567,6,4567,7,4567,8,4567,9,4567,10,4567,11,4567,12,4567,13,4567,14,4567,15,4567,16,4567,17,4567,18,4567,19,4567,20,4567,21,4567,22,4567,23,4567,24,4567,25,4567,26,4567,27,4567,28,4567,29,4567,3,4577,4,4577,5,4577,6,4577,7,4577,8,4577,9,4577,10,4577,11,4577,12,4577,13,4577,14,4577,15,4577,16,4577,17,4577,18,4577,19,4577,20,4577,21,4577,22,4577,23,4577,24,4577,25,4577,26,4577,27,4577,28,4577,29,4577,3,4587,4,4587,5,4587,6,4587,7,4587,8,4587,9,4587,10,4587,11,4587,12,4587,14,4587,15,4587,16,4587,17,4587,18,4587,19,4587,20,4587,21,4587,22,4587,23,4587,24,4587,25,4587,26,4587,27,4587,28,4587,29,4587,4,4597,5,4597,6,4597,7,4597,8,4597,9,4597,10,4597,11,4597,16,4597,17,4597,18,4597,19,4597,20,4597,21,4597,22,4597,23,4597,24,4597,25,4597,26,4597,27,4597,28,4597,29,4597,8,4607,17,4607,18,4607,19,4607,20,4607,21,4607,22,4607,23,4607,24,4607,25,4607,26,4607,27,4607,28,4607,29,4607,18,4617,19,4617,20,4617,21,4617,22,4617,23,4617,24,4617,25,4617,26,4617,27,4617,28,4617,29,4617,19,4627,20,4627,21,4627,22,4627,23,4627,24,4627,25,4627,26,4627,27,4627,28,4627,29,4627,20,4637,21,4637,22,4637,23,4637,24,4637,25,4637,26,4637,27,4637,21,4647,22,4647,23,4647,24,4647,25,4647,26,4648,239,4098,240,4098,241,4098,242,4098,243,4098,238,4108,239,4108,240,4108,241,4108,242,4108,243,4108,244,4108,237,4118,238,4118,239,4118,240,4118,241,4118,242,4118,243,4118,244,4118,236,4128,237,4128,238,4128,239,4128,240,4128,241,4128,242,4128,243,4128,244,4128,235,4138,236,4138,237,4138,238,4138,239,4138,240,4138,241,4138,242,4138,243,4138,244,4138,235,4148,236,4148,237,4148,238,4148,239,4148,240,4148,241,4148,242,4148,243,4148,244,4148,245,4148,234,4158,235,4158,236,4158,237,4158,238,4158,239,4158,240,4158,241,4158,242,4158,243,4158,244,4158,245,4158,234,4168,235,4168,236,4168,237,4168,238,4168,239,4168,240,4168,241,4168,242,4168,243,4168,244,4168,245,4168,234,4178,235,4178,236,4178,237,4178,238,4178,239,4178,240,4178,241,4178,242,4178,243,4178,244,4178,234,4188,235,4188,236,4188,237,4188,238,4188,239,4188,240,4188,241,4188,242,4188,243,4188,244,4188,234,4198,235,4198,236,4198,237,4198,238,4198,239,4198,240,4198,241,4198,242,4198,243,4198,244,4198,233,4208,234,4208,235,4208,236,4208,237,4208,238,4208,239,4208,240,4208,241,4208,242,4208,243,4208,244,4208,233,4218,234,4218,235,4218,236,4218,237,4218,238,4218,239,4218,240,4218,241,4218,242,4218,243,4218,244,4218,233,4228,234,4228,235,4228,236,4228,237,4228,238,4228,239,4228,240,4228,241,4228,242,4228,243,4228,244,4228,233,4238,234,4238,235,4238,236,4238,237,4238,238,4238,239,4238,240,4238,241,4238,242,4238,243,4238,244,4238,245,4238,233,4248,234,4248,235,4248,236,4248,237,4248,238,4248,239,4248,240,4248,241,4248,242,4248,243,4248,244,4248,245,4248,233,4258,234,4258,235,4258,236,4258,237,4258,238,4258,239,4258,240,4258,241,4258,242,4258,243,4258,244,4258,233,4268,234,4268,235,4268,236,4268,237,4268,238,4268,239,4268,240,4268,241,4268,242,4268,243,4268,244,4268,233,4278,234,4278,235,4278,236,4278,237,4278,238,4278,239,4278,240,4278,241,4278,242,4278,243,4278,233,4288,234,4288,235,4288,236,4288,237,4288,238,4288,239,4288,240,4288,241,4288,242,4288,243,4288,233,4298,234,4298,235,4298,236,4298,237,4298,238,4298,239,4298,240,4298,241,4298,242,4298,243,4298,233,4308,234,4308,235,4308,236,4308,237,4308,238,4308,239,4308,240,4308,241,4308,242,4308,243,4308,233,4318,234,4318,235,4318,236,4318,237,4318,238,4318,239,4318,240,4318,241,4318,242,4318,243,4318,233,4328,234,4328,235,4328,236,4328,237,4328,238,4328,239,4328,240,4328,241,4328,242,4328,243,4328,233,4338,234,4338,235,4338,236,4338,237,4338,238,4338,239,4338,240,4338,241,4338,242,4338,233,4348,234,4348,235,4348,236,4348,237,4348,238,4348,239,4348,240,4348,241,4348,242,4348,234,4358,235,4358,236,4358,237,4358,238,4358,239,4358,240,4358,241,4358,242,4358,235,4368,236,4368,237,4368,238,4368,239,4368,240,4368,241,4368,242,4368,236,4378,237,4378,238,4378,239,4378,240,4378,241,4378,236,4388,237,4388,238,4388,239,4388,240,4388,241,4388,238,4398,239,4398,240,4399,190,3029,191,3029,188,3039,189,3039,190,3039,191,3039,192,3039,193,3039,194,3039,195,3039,188,3049,189,3049,190,3049,191,3049,192,3049,193,3049,194,3049,195,3049,196,3049,186,3059,187,3059,188,3059,189,3059,190,3059,191,3059,192,3059,193,3059,194,3059,195,3059,196,3059,197,3059,185,3069,186,3069,187,3069,188,3069,189,3069,190,3069,191,3069,192,3069,193,3069,194,3069,195,3069,196,3069,197,3069,198,3069,184,3079,185,3079,186,3079,187,3079,188,3079,189,3079,190,3079,191,3079,192,3079,193,3079,194,3079,195,3079,196,3079,197,3079,198,3079,184,3089,185,3089,186,3089,187,3089,188,3089,189,3089,190,3089,191,3089,192,3089,193,3089,194,3089,195,3089,196,3089,197,3089,198,3089,184,3099,185,3099,186,3099,187,3099,188,3099,189,3099,190,3099,191,3099,192,3099,193,3099,194,3099,195,3099,196,3099,197,3099,198,3099,199,3099,184,3109,185,3109,186,3109,187,3109,188,3109,189,3109,190,3109,191,3109,192,3109,193,3109,194,3109,195,3109,196,3109,197,3109,198,3109,199,3109,185,3119,186,3119,187,3119,188,3119,189,3119,190,3119,191,3119,192,3119,193,3119,194,3119,195,3119,196,3119,197,3119,198,3119,186,3129,187,3129,188,3129,189,3129,190,3129,191,3129,192,3129,193,3129,194,3129,195,3129,196,3129,197,3129,198,3129,186,3139,187,3139,188,3139,189,3139,190,3139,191,3139,192,3139,193,3139,194,3139,195,3139,196,3139,197,3139,187,3149,188,3149,189,3149,190,3149,191,3149,192,3149,193,3149,194,3149,195,3149,196,3149,191,3159,192,3159,194,3159,195,3159,195,3169,196,3169,196,3179,197,31710,183,11010,182,11110,183,11110,184,11110,185,11110,186,11110,187,11110,182,11210,183,11210,184,11210,185,11210,186,11210,187,11210,188,11210,182,11310,183,11310,184,11310,185,11310,186,11310,187,11310,188,11310,182,11410,183,11410,184,11410,185,11410,186,11410,187,11410,188,11410,182,11510,183,11510,184,11510,185,11510,186,11510,187,11510,188,11510,189,11510,182,11610,183,11610,184,11610,185,11610,186,11610,187,11610,188,11610,189,11610,190,11610,182,11710,183,11710,184,11710,185,11710,186,11710,187,11710,188,11710,189,11710,190,11710,181,11810,182,11810,183,11810,184,11810,185,11810,186,11810,187,11810,188,11810,189,11810,190,11810,191,11810,182,11910,183,11910,184,11910,185,11910,186,11910,187,11910,188,11910,189,11910,190,11910,191,11910,182,12010,183,12010,184,12010,185,12010,186,12010,187,12010,188,12010,189,12010,190,12010,191,12010,192,12010,182,12110,183,12110,184,12110,185,12110,186,12110,187,12110,188,12110,189,12110,190,12110,191,12110,192,12110,182,12210,183,12210,184,12210,185,12210,186,12210,187,12210,188,12210,189,12210,190,12210,191,12210,192,12210,182,12310,183,12310,184,12310,185,12310,186,12310,187,12310,188,12310,189,12310,190,12310,191,12310,192,12310,193,12310,183,12410,184,12410,185,12410,186,12410,187,12410,188,12410,189,12410,190,12410,191,12410,192,12410,193,12410,183,12510,184,12510,185,12510,186,12510,187,12510,188,12510,189,12510,190,12510,191,12510,192,12510,193,12510,183,12610,184,12610,185,12610,186,12610,187,12610,188,12610,189,12610,190,12610,191,12610,192,12610,193,12610,183,12710,184,12710,185,12710,186,12710,187,12710,188,12710,189,12710,190,12710,191,12710,192,12710,193,12710,183,12810,184,12810,185,12810,186,12810,187,12810,188,12810,189,12810,190,12810,191,12810,192,12810,193,12810,184,12910,185,12910,186,12910,187,12910,188,12910,189,12910,190,12910,191,12910,192,12910,193,12910,194,12910,184,13010,185,13010,186,13010,187,13010,188,13010,189,13010,190,13010,191,13010,192,13010,193,13010,194,13010,184,13110,185,13110,186,13110,187,13110,188,13110,189,13110,190,13110,191,13110,192,13110,193,13110,194,13110,184,13210,185,13210,186,13210,187,13210,188,13210,189,13210,190,13210,191,13210,192,13210,193,13210,194,13210,185,13310,186,13310,187,13310,188,13310,189,13310,190,13310,191,13310,192,13310,193,13310,194,13310,185,13410,186,13410,187,13410,188,13410,189,13410,190,13410,191,13410,192,13410,193,13410,185,13510,186,13510,187,13510,188,13510,189,13510,190,13510,191,13510,192,13510,193,13510,186,13610,187,13610,188,13610,189,13610,190,13610,191,13610,192,13610,193,13610,187,13710,188,13710,189,13710,190,13710,191,13710,192,13710,188,13810,189,13810,190,13810,191,13811,417,23911,418,23911,419,23911,420,23911,421,23911,424,23911,417,24011,418,24011,419,24011,420,24011,421,24011,422,24011,423,24011,424,24011,425,24011,426,24011,427,24011,428,24011,417,24111,418,24111,419,24111,420,24111,421,24111,422,24111,423,24111,424,24111,425,24111,426,24111,427,24111,428,24111,429,24111,430,24111,417,24211,418,24211,419,24211,420,24211,421,24211,422,24211,423,24211,424,24211,425,24211,426,24211,427,24211,428,24211,429,24211,430,24211,431,24211,432,24211,433,24211,417,24311,418,24311,419,24311,420,24311,421,24311,422,24311,423,24311,424,24311,425,24311,426,24311,427,24311,428,24311,429,24311,430,24311,431,24311,432,24311,433,24311,434,24311,418,24411,419,24411,420,24411,421,24411,422,24411,423,24411,424,24411,425,24411,426,24411,427,24411,428,24411,429,24411,430,24411,431,24411,432,24411,433,24411,434,24411,435,24411,419,24511,420,24511,421,24511,422,24511,423,24511,424,24511,425,24511,426,24511,427,24511,428,24511,429,24511,430,24511,431,24511,432,24511,433,24511,434,24511,435,24511,436,24511,420,24611,421,24611,422,24611,423,24611,424,24611,425,24611,426,24611,427,24611,428,24611,429,24611,430,24611,431,24611,432,24611,433,24611,434,24611,435,24611,436,24611,437,24611,422,24711,423,24711,424,24711,425,24711,426,24711,427,24711,428,24711,429,24711,430,24711,431,24711,433,24711,434,24711,435,24711,436,24711,437,24712,475,18812,476,18812,477,18812,478,18812,474,18912,475,18912,476,18912,477,18912,478,18912,479,18912,474,19012,475,19012,476,19012,477,19012,478,19012,479,19012,474,19112,475,19112,476,19112,477,19112,478,19112,479,19112,474,19212,475,19212,476,19212,477,19212,478,19212,479,19212,474,19312,475,19312,476,19312,477,19312,478,19312,476,19412,477,19413,230,12713,229,12813,230,12813,231,12813,232,12813,234,12813,235,12813,236,12813,237,12813,238,12813,228,12913,229,12913,230,12913,231,12913,232,12913,233,12913,234,12913,235,12913,236,12913,237,12913,238,12913,239,12913,240,12913,228,13013,229,13013,230,13013,231,13013,232,13013,233,13013,234,13013,235,13013,236,13013,237,13013,238,13013,239,13013,240,13013,241,13013,242,13013,228,13113,229,13113,230,13113,231,13113,232,13113,233,13113,234,13113,235,13113,236,13113,237,13113,238,13113,239,13113,240,13113,241,13113,242,13113,243,13113,228,13213,229,13213,230,13213,231,13213,232,13213,233,13213,234,13213,235,13213,236,13213,237,13213,238,13213,239,13213,240,13213,241,13213,242,13213,243,13213,228,13313,229,13313,230,13313,231,13313,232,13313,233,13313,234,13313,235,13313,236,13313,237,13313,238,13313,239,13313,240,13313,241,13313,242,13313,243,13313,228,13413,229,13413,230,13413,231,13413,232,13413,233,13413,234,13413,235,13413,236,13413,237,13413,238,13413,239,13413,240,13413,241,13413,242,13413,243,13413,227,13513,228,13513,229,13513,230,13513,231,13513,232,13513,233,13513,234,13513,235,13513,236,13513,237,13513,238,13513,239,13513,240,13513,241,13513,242,13513,243,13513,227,13613,228,13613,229,13613,230,13613,231,13613,232,13613,233,13613,234,13613,235,13613,236,13613,237,13613,238,13613,239,13613,240,13613,241,13613,242,13613,243,13613,227,13713,228,13713,233,13713,234,13713,235,13713,236,13713,237,13713,238,13713,239,13713,240,13713,241,13713,242,13713,243,13713,235,13813,236,13813,237,13813,238,13813,239,13813,240,13813,241,13813,236,13913,237,13913,238,13913,239,13913,240,13913,241,13913,239,14013,240,14013,241,14013,240,14113,241,14114,94,28314,95,28314,96,28314,94,28414,95,28414,96,28414,90,28514,91,28514,92,28514,93,28514,94,28514,95,28514,96,28514,90,28614,91,28614,92,28614,93,28614,94,28614,95,28614,96,28614,97,28614,90,28714,91,28714,92,28714,93,28714,94,28714,95,28714,96,28714,97,28714,90,28814,91,28814,92,28814,93,28814,94,28814,95,28814,96,28814,97,28814,89,28914,90,28914,91,28914,92,28914,93,28914,94,28914,95,28914,96,28914,97,28914,89,29014,90,29014,91,29014,92,29014,93,29014,94,29014,95,29014,96,29014,97,29014,88,29114,89,29114,90,29114,91,29114,92,29114,93,29114,94,29114,95,29114,96,29114,97,29114,88,29214,89,29214,90,29214,91,29214,92,29214,93,29214,94,29214,95,29214,96,29214,97,29214,88,29314,89,29314,90,29314,91,29314,92,29314,93,29314,94,29314,95,29314,96,29314,97,29314,88,29414,89,29414,90,29414,91,29414,92,29414,93,29414,94,29414,95,29414,96,29414,97,29414,88,29514,89,29514,90,29514,91,29514,92,29514,93,29514,94,29514,95,29514,96,29514,97,29514,88,29614,89,29614,90,29614,91,29614,92,29614,93,29614,94,29614,95,29614,96,29614,87,29714,88,29714,89,29714,90,29714,91,29714,92,29714,93,29714,94,29714,95,29714,96,29714,87,29814,88,29814,89,29814,90,29814,91,29814,92,29814,93,29814,94,29814,95,29814,87,29914,88,29914,89,29914,90,29914,91,29914,92,29914,93,29914,94,29914,95,29914,87,30014,88,30014,89,30014,90,30014,91,30014,92,30014,93,30014,94,30014,95,30014,96,30014,88,30114,89,30114,90,30114,91,30114,92,30114,93,30114,94,30114,95,30114,96,30114,87,30214,88,30214,89,30214,90,30214,91,30214,92,30214,93,30214,94,30214,87,30314,88,30314,89,30314,90,30314,91,30314,92,30314,93,30314,94,30314,88,30414,89,30414,90,30414,91,30414,92,30414,93,30414,94,30414,88,30514,89,30514,90,30514,91,30514,92,30514,93,30514,94,30514,89,30614,90,30614,91,30614,92,30614,93,30614,90,30714,91,30714,92,30715,312,27015,314,27015,315,27015,316,27015,317,27015,318,27015,319,27015,320,27015,311,27115,312,27115,313,27115,314,27115,315,27115,316,27115,317,27115,318,27115,319,27115,320,27115,310,27215,311,27215,312,27215,313,27215,314,27215,315,27215,316,27215,317,27215,318,27215,319,27215,320,27215,310,27315,311,27315,312,27315,313,27315,314,27315,315,27315,316,27315,317,27315,318,27315,319,27315,320,27315,309,27415,310,27415,311,27415,312,27415,313,27415,314,27415,315,27415,316,27415,317,27415,318,27415,319,27415,320,27415,307,27515,308,27515,309,27515,310,27515,311,27515,312,27515,313,27515,314,27515,315,27515,316,27515,317,27515,318,27515,319,27515,320,27515,307,27615,308,27615,309,27615,310,27615,311,27615,312,27615,313,27615,314,27615,315,27615,316,27615,317,27615,318,27615,319,27615,308,27715,309,27715,310,27715,314,27715,315,27715,316,27715,317,27715,318,27715,319,27715,316,27815,317,27815,318,27815,319,27815,318,27916,125,26316,126,26316,127,26316,124,26416,125,26416,126,26416,127,26416,128,26416,122,26516,123,26516,124,26516,125,26516,126,26516,127,26516,128,26516,121,26616,122,26616,123,26616,124,26616,125,26616,126,26616,127,26616,128,26616,119,26716,120,26716,121,26716,122,26716,123,26716,124,26716,125,26716,126,26716,127,26716,128,26716,117,26816,118,26816,119,26816,120,26816,121,26816,122,26816,123,26816,124,26816,125,26816,126,26816,127,26816,117,26916,118,26916,119,26916,120,26916,121,26916,122,26916,123,26916,124,26916,125,26916,126,26916,116,27016,117,27016,118,27016,119,27016,120,27016,121,27016,122,27016,123,27016,124,27016,125,27016,116,27116,117,27116,118,27116,119,27116,120,27116,121,27116,122,27116,123,27116,124,27116,116,27216,117,27216,118,27216,119,27216,120,27216,121,27216,122,27216,123,27216,117,27316,118,27316,119,27316,120,27316,121,27316,122,27316,118,27416,119,27416,120,27416,121,27416,118,27516,119,27516,120,27517,69,41217,70,41217,64,41317,65,41317,66,41317,67,41317,68,41317,69,41317,70,41317,61,41417,62,41417,63,41417,64,41417,65,41417,66,41417,67,41417,68,41417,69,41417,70,41417,60,41517,61,41517,62,41517,63,41517,64,41517,65,41517,66,41517,67,41517,68,41517,69,41517,60,41617,61,41617,62,41617,63,41617,64,41617,65,41617,66,41617,67,41617,68,41617,60,41717,61,41717,62,41717,63,41717,64,41717,65,41717,66,41717,67,41717,68,41717,60,41817,61,41817,62,41817,63,41817,64,41817,67,41817,61,41917,62,41918,343,20218,344,20218,341,20318,342,20318,343,20318,344,20318,340,20418,341,20418,342,20418,343,20418,344,20418,339,20518,340,20518,341,20518,342,20518,343,20518,339,20618,340,20618,341,20618,342,20618,340,20718,341,20719,259,20819,256,20919,257,20919,258,20919,259,20919,260,20919,254,21019,255,21019,256,21019,257,21019,258,21019,259,21019,260,21019,253,21119,254,21119,255,21119,256,21119,257,21119,258,21119,259,21119,260,21119,253,21219,254,21219,255,21219,256,21219,257,21219,258,21219,259,21219,260,21219,261,21219,253,21319,254,21319,255,21319,256,21319,257,21319,258,21319,259,21319,260,21319,261,21319,253,21419,254,21419,255,21419,256,21419,257,21419,258,21419,259,21419,260,21419,253,21519,254,21519,255,21519,256,21519,257,21519,258,21519,259,21519,253,21619,254,21619,255,21619,256,21619,257,21619,258,21619,252,21719,253,21719,254,21719,255,21719,256,21719,252,21819,253,21819,254,21820,434,22720,435,22720,436,22720,437,22720,438,22720,439,22720,440,22720,441,22720,442,22720,443,22720,444,22720,445,22720,446,22720,447,22720,434,22820,435,22820,436,22820,437,22820,438,22820,439,22820,440,22820,441,22820,442,22820,443,22820,444,22820,445,22820,446,22820,447,22820,448,22820,449,22820,433,22920,434,22920,435,22920,436,22920,437,22920,438,22920,439,22920,440,22920,441,22920,442,22920,443,22920,444,22920,445,22920,446,22920,447,22920,448,22920,449,22920,450,22920,451,22920,452,22920,453,22920,454,22920,455,22920,456,22920,433,23020,434,23020,435,23020,436,23020,437,23020,438,23020,439,23020,440,23020,441,23020,442,23020,443,23020,444,23020,445,23020,446,23020,447,23020,448,23020,449,23020,450,23020,451,23020,452,23020,453,23020,454,23020,455,23020,456,23020,457,23020,458,23020,433,23120,434,23120,435,23120,436,23120,437,23120,438,23120,439,23120,440,23120,441,23120,442,23120,443,23120,444,23120,445,23120,446,23120,447,23120,448,23120,449,23120,450,23120,451,23120,452,23120,453,23120,454,23120,455,23120,456,23120,457,23120,458,23120,459,23120,460,23120,433,23220,434,23220,435,23220,436,23220,437,23220,438,23220,439,23220,440,23220,441,23220,442,23220,443,23220,444,23220,445,23220,446,23220,447,23220,448,23220,449,23220,450,23220,451,23220,452,23220,453,23220,454,23220,455,23220,456,23220,457,23220,458,23220,459,23220,460,23220,461,23220,434,23320,435,23320,436,23320,437,23320,438,23320,439,23320,440,23320,441,23320,442,23320,443,23320,444,23320,445,23320,446,23320,447,23320,448,23320,449,23320,450,23320,451,23320,452,23320,453,23320,454,23320,455,23320,456,23320,457,23320,458,23320,459,23320,460,23320,461,23320,434,23420,435,23420,436,23420,437,23420,438,23420,439,23420,440,23420,441,23420,442,23420,443,23420,444,23420,445,23420,446,23420,447,23420,448,23420,449,23420,450,23420,451,23420,452,23420,453,23420,454,23420,455,23420,456,23420,457,23420,458,23420,459,23420,460,23420,461,23420,462,23420,436,23520,437,23520,438,23520,439,23520,440,23520,441,23520,442,23520,443,23520,444,23520,445,23520,446,23520,447,23520,448,23520,449,23520,450,23520,451,23520,452,23520,453,23520,454,23520,455,23520,456,23520,457,23520,458,23520,459,23520,460,23520,461,23520,462,23520,463,23520,438,23620,439,23620,440,23620,441,23620,442,23620,443,23620,444,23620,445,23620,446,23620,447,23620,448,23620,449,23620,450,23620,451,23620,452,23620,453,23620,454,23620,455,23620,456,23620,457,23620,458,23620,459,23620,460,23620,461,23620,462,23620,440,23720,441,23720,442,23720,443,23720,444,23720,445,23720,446,23720,447,23720,448,23720,449,23720,450,23720,451,23720,452,23720,453,23720,454,23720,455,23720,456,23720,457,23720,458,23720,459,23720,460,23720,461,23720,450,23820,451,23820,452,23820,453,23820,454,23820,455,23820,456,23820,457,23820,458,23820,459,23820,460,23820,451,23920,452,23920,453,23920,454,23920,455,23920,456,23920,457,23920,458,23920,459,23920,460,23921,422,18921,423,18921,424,18921,421,19021,422,19021,423,19021,424,19021,425,19021,426,19021,420,19121,421,19121,422,19121,423,19121,424,19121,425,19121,426,19121,427,19121,420,19221,421,19221,422,19221,423,19221,424,19221,425,19221,426,19221,427,19221,428,19221,419,19321,420,19321,421,19321,422,19321,423,19321,424,19321,425,19321,426,19321,427,19321,428,19321,429,19321,419,19421,420,19421,421,19421,422,19421,423,19421,424,19421,425,19421,426,19421,427,19421,428,19421,429,19421,419,19521,420,19521,421,19521,422,19521,423,19521,424,19521,425,19521,426,19521,427,19521,428,19521,429,19521,419,19621,420,19621,421,19621,422,19621,423,19621,424,19621,425,19621,426,19621,427,19621,428,19621,429,19621,418,19721,419,19721,420,19721,421,19721,422,19721,423,19721,424,19721,425,19721,426,19721,427,19721,428,19721,429,19721,419,19821,420,19821,421,19821,422,19821,423,19821,424,19821,425,19821,426,19821,427,19821,428,19821,429,19821,423,19921,424,19921,425,19921,426,19921,427,19921,428,19921,429,19922,325,22522,326,22522,323,22622,324,22622,325,22622,326,22622,327,22622,328,22622,329,22622,323,22722,324,22722,325,22722,326,22722,327,22722,328,22722,329,22722,330,22722,322,22822,323,22822,324,22822,325,22822,326,22822,327,22822,328,22822,329,22822,330,22822,331,22822,322,22922,323,22922,324,22922,325,22922,326,22922,327,22922,328,22922,329,22922,330,22922,331,22922,332,22922,321,23022,322,23022,323,23022,324,23022,325,23022,326,23022,327,23022,328,23022,329,23022,330,23022,331,23022,332,23022,321,23122,322,23122,323,23122,324,23122,325,23122,326,23122,327,23122,328,23122,329,23122,330,23122,331,23122,332,23122,320,23222,321,23222,322,23222,323,23222,324,23222,325,23222,326,23222,327,23222,328,23222,329,23222,330,23222,331,23222,332,23222,319,23322,320,23322,321,23322,322,23322,323,23322,324,23322,325,23322,326,23322,327,23322,328,23322,329,23322,330,23322,331,23322,332,23322,333,23322,318,23422,319,23422,320,23422,321,23422,322,23422,323,23422,324,23422,325,23422,326,23422,327,23422,328,23422,329,23422,330,23422,331,23422,332,23422,333,23422,318,23522,319,23522,320,23522,321,23522,322,23522,323,23522,324,23522,325,23522,326,23522,327,23522,328,23522,329,23522,330,23522,331,23522,332,23522,333,23522,318,23622,319,23622,320,23622,321,23622,322,23622,323,23622,324,23622,325,23622,326,23622,327,23622,328,23622,329,23622,330,23622,331,23622,332,23622,333,23622,334,23622,318,23722,319,23722,320,23722,321,23722,322,23722,323,23722,324,23722,325,23722,326,23722,327,23722,328,23722,329,23722,330,23722,331,23722,332,23722,333,23722,334,23722,335,23722,318,23822,319,23822,320,23822,321,23822,322,23822,323,23822,324,23822,325,23822,326,23822,327,23822,328,23822,329,23822,330,23822,331,23822,332,23822,333,23822,334,23822,335,23822,336,23822,318,23922,319,23922,320,23922,321,23922,322,23922,323,23922,324,23922,325,23922,326,23922,327,23922,328,23922,329,23922,330,23922,331,23922,332,23922,333,23922,334,23922,335,23922,336,23922,337,23922,318,24022,319,24022,320,24022,321,24022,322,24022,323,24022,324,24022,325,24022,326,24022,327,24022,328,24022,329,24022,330,24022,331,24022,332,24022,333,24022,334,24022,335,24022,336,24022,337,24022,319,24122,320,24122,321,24122,322,24122,323,24122,324,24122,325,24122,326,24122,327,24122,328,24122,329,24122,330,24122,331,24122,332,24122,333,24122,334,24122,335,24122,336,24122,337,24122,319,24222,320,24222,321,24222,322,24222,323,24222,324,24222,325,24222,326,24222,327,24222,328,24222,329,24222,330,24222,331,24222,332,24222,333,24222,334,24222,335,24222,336,24222,320,24322,321,24322,322,24322,323,24322,324,24322,325,24322,326,24322,327,24322,328,24322,329,24322,330,24322,331,24322,332,24322,333,24322,334,24322,320,24422,321,24422,322,24422,323,24422,324,24422,325,24422,326,24422,327,24422,328,24422,329,24422,330,24422,331,24422,332,24422,333,24422,320,24522,321,24522,322,24522,323,24522,324,24522,325,24522,326,24522,327,24522,328,24522,329,24522,330,24522,331,24522,332,24522,321,24622,322,24622,323,24622,324,24622,325,24622,326,24622,327,24622,328,24622,329,24622,330,24622,331,24622,322,24722,323,24722,324,24722,325,24722,326,24722,327,24722,328,24722,329,24722,330,24722,323,24822,324,24822,325,24822,326,24822,327,24822,328,24823,356,15323,357,15323,356,15423,357,15423,358,15423,359,15423,360,15423,361,15423,362,15423,363,15423,355,15523,356,15523,357,15523,358,15523,359,15523,360,15523,361,15523,362,15523,363,15523,364,15523,355,15623,356,15623,357,15623,358,15623,359,15623,360,15623,361,15623,362,15623,363,15623,364,15623,365,15623,355,15723,356,15723,357,15723,358,15723,359,15723,360,15723,361,15723,362,15723,363,15723,364,15723,365,15723,354,15823,355,15823,356,15823,357,15823,358,15823,359,15823,360,15823,361,15823,362,15823,363,15823,364,15823,365,15823,354,15923,355,15923,356,15923,357,15923,358,15923,359,15923,360,15923,361,15923,362,15923,363,15923,364,15923,365,15923,354,16023,355,16023,356,16023,357,16023,358,16023,359,16023,360,16023,361,16023,362,16023,363,16023,364,16023,365,16023,353,16123,354,16123,355,16123,356,16123,357,16123,358,16123,359,16123,360,16123,361,16123,362,16123,363,16123,364,16123,353,16223,354,16223,355,16223,356,16223,357,16223,358,16223,359,16223,360,16223,361,16223,362,16223,363,16223,364,16223,353,16323,354,16323,355,16323,356,16323,357,16323,358,16323,359,16323,360,16323,361,16323,362,16323,363,16323,364,16323,366,16323,353,16423,354,16423,355,16423,356,16423,357,16423,358,16423,359,16423,360,16423,361,16423,362,16423,363,16423,364,16423,365,16423,366,16423,367,16423,353,16523,354,16523,355,16523,356,16523,357,16523,358,16523,359,16523,360,16523,361,16523,362,16523,363,16523,364,16523,365,16523,366,16523,367,16523,353,16623,354,16623,355,16623,356,16623,357,16623,358,16623,359,16623,360,16623,361,16623,362,16623,363,16623,364,16623,365,16623,366,16623,367,16623,354,16723,355,16723,356,16723,357,16723,358,16723,359,16723,360,16723,361,16723,362,16723,363,16723,364,16723,365,16723,354,16823,355,16823,356,16823,357,16823,358,16823,359,16823,360,16823,361,16823,362,16823,363,16823,364,16823,356,16923,357,16923,358,16923,359,16923,360,16923,361,16923,362,16923,363,16923,364,16923,358,17023,359,17023,360,17023,361,17023,362,17023,363,17023,364,17023,361,17123,362,17124,43,38624,44,38624,45,38624,46,38624,47,38624,42,38724,43,38724,44,38724,45,38724,46,38724,47,38724,48,38724,41,38824,42,38824,43,38824,44,38824,45,38824,46,38824,47,38824,48,38824,41,38924,42,38924,43,38924,44,38924,45,38924,46,38924,47,38924,32,39024,33,39024,40,39024,41,39024,42,39024,43,39024,44,39024,45,39024,46,39024,31,39124,32,39124,33,39124,34,39124,35,39124,36,39124,37,39124,38,39124,39,39124,40,39124,41,39124,42,39124,43,39124,44,39124,45,39124,31,39224,32,39224,33,39224,34,39224,35,39224,36,39224,37,39224,38,39224,39,39224,40,39224,41,39224,42,39224,43,39224,44,39224,45,39224,31,39324,32,39324,33,39324,34,39324,35,39324,36,39324,37,39324,38,39324,39,39324,40,39324,41,39324,42,39324,43,39324,44,39324,31,39424,32,39424,33,39424,34,39424,35,39424,36,39424,37,39424,38,39424,39,39424,40,39424,41,39424,42,39424,43,39424,31,39524,32,39524,33,39524,34,39524,35,39524,36,39524,37,39524,38,39524,39,39524,40,39524,41,39524,42,39524,43,39524,44,39524,31,39624,32,39624,33,39624,34,39624,35,39624,36,39624,37,39624,38,39624,39,39624,40,39624,41,39624,42,39624,43,39624,44,39624,30,39724,31,39724,32,39724,33,39724,34,39724,35,39724,36,39724,37,39724,38,39724,39,39724,40,39724,41,39724,42,39724,43,39724,44,39724,45,39724,30,39824,31,39824,32,39824,33,39824,34,39824,35,39824,36,39824,37,39824,38,39824,39,39824,40,39824,41,39824,42,39824,43,39824,44,39824,45,39824,31,39924,32,39924,33,39924,34,39924,35,39924,36,39924,37,39924,38,39924,39,39924,40,39924,41,39924,42,39924,43,39924,44,39924,45,39924,46,39924,32,40024,33,40024,34,40024,35,40024,36,40024,37,40024,38,40024,39,40024,40,40024,41,40024,42,40024,43,40024,44,40024,45,40024,46,40024,33,40124,34,40124,35,40124,36,40124,37,40124,38,40124,39,40124,40,40124,41,40124,42,40124,43,40124,44,40124,45,40124,46,40124,47,40124,34,40224,35,40224,36,40224,37,40224,38,40224,39,40224,40,40224,41,40224,42,40224,43,40224,44,40224,45,40224,46,40224,47,40224,35,40324,36,40324,37,40324,38,40324,39,40324,40,40324,41,40324,42,40324,43,40324,44,40324,45,40324,46,40324,47,40324,48,40324,36,40424,37,40424,38,40424,39,40424,40,40424,41,40424,42,40424,43,40424,44,40424,45,40424,46,40424,47,40424,48,40424,49,40424,36,40524,37,40524,38,40524,39,40524,40,40524,41,40524,42,40524,43,40524,44,40524,45,40524,46,40524,47,40524,48,40524,49,40524,50,40524,37,40624,38,40624,39,40624,40,40624,41,40624,42,40624,43,40624,44,40624,45,40624,46,40624,47,40624,48,40624,49,40624,50,40624,38,40724,39,40724,40,40724,41,40724,42,40724,43,40724,44,40724,45,40724,46,40724,47,40724,48,40724,49,40724,50,40724,51,40724,39,40824,40,40824,41,40824,42,40824,43,40824,44,40824,45,40824,46,40824,47,40824,48,40824,49,40824,50,40824,51,40824,39,40924,40,40924,41,40924,42,40924,43,40924,44,40924,45,40924,46,40924,47,40924,48,40924,49,40924,50,40924,51,40924,52,40924,40,41024,41,41024,42,41024,43,41024,44,41024,45,41024,46,41024,47,41024,48,41024,49,41024,50,41024,51,41024,41,41124,42,41124,43,41124,44,41124,45,41124,46,41124,47,41124,48,41124,49,41124,50,41124,42,41224,43,41224,44,41224,45,41224,46,41224,47,41224,48,41224,49,41224,50,41224,42,41324,43,41324,44,41324,45,41324,46,41324,47,41324,48,41324,49,41324,43,41424,44,41424,45,41424,46,41424,47,41424,48,41424,49,41424,44,41524,45,41524,46,41524,47,41524,48,41525,275,28725,276,28725,277,28725,272,28825,273,28825,274,28825,275,28825,276,28825,277,28825,278,28825,271,28925,272,28925,273,28925,274,28925,275,28925,276,28925,277,28925,278,28925,279,28925,270,29025,271,29025,272,29025,273,29025,274,29025,275,29025,276,29025,277,29025,278,29025,269,29125,270,29125,271,29125,272,29125,273,29125,274,29125,275,29125,276,29125,277,29125,278,29125,279,29125,268,29225,269,29225,270,29225,271,29225,272,29225,273,29225,274,29225,275,29225,276,29225,277,29225,278,29225,268,29325,269,29325,270,29325,271,29325,272,29325,273,29325,274,29325,275,29325,276,29325,277,29325,278,29325,279,29325,267,29425,268,29425,269,29425,270,29425,271,29425,272,29425,273,29425,274,29425,275,29425,276,29425,277,29425,278,29425,279,29425,267,29525,268,29525,269,29525,270,29525,271,29525,272,29525,273,29525,274,29525,275,29525,276,29525,277,29525,278,29525,279,29525,280,29525,267,29625,268,29625,269,29625,270,29625,271,29625,272,29625,273,29625,274,29625,275,29625,276,29625,277,29625,278,29625,279,29625,280,29625,268,29725,269,29725,270,29725,271,29725,272,29725,273,29725,274,29725,275,29725,276,29725,277,29725,278,29725,279,29725,280,29725,268,29825,269,29825,270,29825,271,29825,272,29825,273,29825,274,29825,275,29825,276,29825,277,29825,278,29825,279,29825,280,29825,269,29925,270,29925,271,29925,272,29925,273,29925,274,29925,275,29925,276,29925,277,29925,278,29925,279,29925,280,29925,269,30025,270,30025,271,30025,272,30025,273,30025,274,30025,275,30025,276,30025,277,30025,278,30025,279,30025,280,30025,269,30125,270,30125,271,30125,272,30125,273,30125,274,30125,275,30125,276,30125,277,30125,278,30125,279,30125,280,30125,270,30225,271,30225,272,30225,273,30225,274,30225,275,30225,276,30225,277,30225,278,30225,279,30225,271,30325,272,30325,273,30325,274,30325,275,30325,276,30325,277,30325,278,30325,272,30425,273,30425,274,30425,275,30425,276,30425,277,30425,273,30525,274,30525,275,30525,276,30526,4,31226,5,31226,6,31226,3,31326,4,31326,5,31326,3,31426,4,31426,5,31426,3,31526,4,31526,5,31526,3,31626,4,31626,5,31626,6,31626,3,31726,4,31726,5,31726,6,31726,3,31826,4,31826,5,31826,3,31926,4,31926,5,31926,3,32026,4,32026,5,32026,3,32126,4,32126,5,32126,3,32226,3,32327,161,41927,162,41927,154,42027,155,42027,156,42027,157,42027,158,42027,159,42027,160,42027,161,42027,162,42027,153,42127,154,42127,155,42127,156,42127,157,42127,158,42127,159,42127,160,42127,161,42127,162,42127,163,42127,153,42227,154,42227,155,42227,156,42227,157,42227,158,42227,159,42227,160,42227,161,42227,162,42227,163,42227,164,42227,165,42227,166,42227,153,42327,154,42327,155,42327,156,42327,157,42327,158,42327,159,42327,160,42327,161,42327,162,42327,163,42327,164,42327,165,42327,166,42327,153,42427,154,42427,155,42427,156,42427,157,42427,158,42427,159,42427,160,42427,161,42427,162,42427,163,42427,164,42427,165,42427,153,42527,154,42527,155,42527,156,42527,157,42527,158,42527,159,42527,160,42527,161,42527,162,42527,163,42527,164,42527,154,42627,155,42627,156,42627,157,42627,158,42627,159,42627,160,42627,161,42627,162,42627,163,42627,155,42727,156,42727,157,42727,158,42727,159,42727,160,42727,161,42727,162,42727,157,42827,158,42828,200,24728,201,24728,202,24728,203,24728,204,24728,207,24728,208,24728,199,24828,200,24828,201,24828,202,24828,203,24828,204,24828,205,24828,206,24828,207,24828,208,24828,209,24828,210,24828,211,24828,198,24928,199,24928,200,24928,201,24928,202,24928,203,24928,204,24928,205,24928,206,24928,207,24928,208,24928,209,24928,210,24928,211,24928,212,24928,213,24928,198,25028,199,25028,200,25028,201,25028,202,25028,203,25028,204,25028,205,25028,206,25028,207,25028,208,25028,209,25028,210,25028,211,25028,212,25028,213,25028,214,25028,215,25028,216,25028,198,25128,199,25128,200,25128,201,25128,202,25128,203,25128,204,25128,205,25128,206,25128,207,25128,208,25128,209,25128,210,25128,211,25128,212,25128,213,25128,214,25128,215,25128,216,25128,198,25228,199,25228,200,25228,201,25228,202,25228,203,25228,204,25228,205,25228,206,25228,207,25228,208,25228,209,25228,210,25228,211,25228,212,25228,213,25228,214,25228,215,25228,216,25228,199,25328,200,25328,201,25328,202,25328,203,25328,204,25328,205,25328,206,25328,207,25328,208,25328,209,25328,210,25328,211,25328,212,25328,213,25328,214,25328,215,25328,216,25328,217,25328,199,25428,200,25428,201,25428,202,25428,203,25428,204,25428,205,25428,206,25428,207,25428,208,25428,209,25428,210,25428,211,25428,212,25428,213,25428,214,25428,215,25428,216,25428,217,25428,201,25528,202,25528,203,25528,204,25528,205,25528,206,25528,207,25528,208,25528,209,25528,210,25528,211,25528,212,25528,213,25528,214,25528,215,25528,216,25528,202,25628,203,25628,204,25628,205,25628,206,25628,207,25628,208,25628,209,25628,210,25628,211,25628,212,25628,213,25628,214,25628,215,25628,203,25728,204,25728,205,25728,206,25728,207,25728,208,25728,209,25728,210,25728,211,25728,212,25728,213,25728,214,25728,206,25828,207,25828,208,25828,209,25828,210,25828,211,25828,212,25828,209,25929,228,29529,225,29629,226,29629,227,29629,228,29629,229,29629,230,29629,225,29729,226,29729,227,29729,228,29729,229,29729,230,29729,231,29729,224,29829,225,29829,226,29829,227,29829,228,29829,229,29829,230,29829,231,29829,223,29929,224,29929,225,29929,226,29929,227,29929,228,29929,229,29929,230,29929,231,29929,222,30029,223,30029,224,30029,225,30029,226,30029,227,30029,228,30029,229,30029,230,30029,231,30029,232,30029,222,30129,223,30129,224,30129,225,30129,226,30129,227,30129,228,30129,229,30129,230,30129,231,30129,232,30129,222,30229,223,30229,224,30229,225,30229,226,30229,227,30229,228,30229,229,30229,230,30229,231,30229,232,30229,222,30329,223,30329,224,30329,225,30329,226,30329,227,30329,228,30329,229,30329,230,30329,231,30329,222,30429,223,30429,224,30429,225,30429,226,30429,227,30429,228,30429,229,30429,230,30429,231,30429,222,30529,223,30529,224,30529,225,30529,226,30529,227,30529,228,30529,229,30529,230,30529,231,30529,224,30629,225,30629,226,30629,227,30629,228,30629,229,30629,230,30629,225,30729,226,30729,227,30729,228,30730,66,33030,67,33030,65,33130,66,33130,67,33130,68,33130,69,33130,64,33230,65,33230,66,33230,67,33230,68,33230,69,33230,70,33230,63,33330,64,33330,65,33330,66,33330,67,33330,68,33330,69,33330,70,33330,71,33330,62,33430,63,33430,64,33430,65,33430,66,33430,67,33430,68,33430,69,33430,70,33430,71,33430,62,33530,63,33530,64,33530,65,33530,66,33530,67,33530,68,33530,69,33530,70,33530,71,33530,63,33630,64,33630,65,33630,66,33630,67,33630,68,33630,69,33630,70,33630,63,33730,64,33730,65,33730,66,33730,67,33730,68,33730,69,33730,64,33830,65,33830,66,33830,67,33830,68,33830,65,33930,66,33930,67,33931,68,48831,69,48831,68,48931,69,48931,70,48931,67,49031,68,49031,69,49031,70,49031,71,49031,72,49031,73,49031,67,49131,68,49131,69,49131,70,49131,71,49131,72,49131,73,49131,66,49231,67,49231,68,49231,69,49231,70,49231,71,49231,72,49231,73,49231,74,49231,75,49231,76,49231,64,49331,65,49331,66,49331,67,49331,68,49331,69,49331,70,49331,71,49331,72,49331,73,49331,74,49331,75,49331,76,49331,64,49431,65,49431,66,49431,67,49431,68,49431,69,49431,70,49431,71,49431,72,49431,73,49431,74,49431,75,49431,76,49431,63,49531,64,49531,65,49531,66,49531,67,49531,68,49531,69,49531,70,49531,71,49531,72,49531,73,49531,74,49531,75,49531,76,49531,63,49631,64,49631,65,49631,66,49631,67,49631,68,49631,69,49631,70,49631,71,49631,72,49631,73,49631,74,49631,75,49631,76,49631,77,49631,63,49731,64,49731,65,49731,66,49731,67,49731,68,49731,69,49731,70,49731,71,49731,72,49731,73,49731,74,49731,75,49731,76,49731,77,49731,78,49731,63,49831,64,49831,65,49831,66,49831,67,49831,68,49831,69,49831,70,49831,71,49831,72,49831,73,49831,74,49831,75,49831,76,49831,63,49931,64,49931,65,49931,66,49931,67,49931,68,49931,69,49931,70,49931,71,49931,72,49931,63,50031,64,50031,65,50031,66,50031,67,50031,68,50031,69,50031,70,50031,72,50031,63,50131,64,50131,65,50131,66,50131,67,50131,68,50131,69,50131,63,50231,64,50231,65,50231,66,50231,67,50231,68,50231,69,50231,64,50331,65,50331,66,50331,67,50331,68,50331,64,50431,65,50431,66,50431,67,50431,68,50431,64,50531,65,50531,66,50531,67,50531,65,50631,66,50631,67,50631,66,50731,67,50732,170,32732,168,32832,169,32832,170,32832,171,32832,172,32832,168,32932,169,32932,170,32932,171,32932,172,32932,173,32932,174,32932,175,32932,168,33032,169,33032,170,33032,171,33032,172,33032,173,33032,174,33032,175,33032,176,33032,168,33132,169,33132,170,33132,171,33132,172,33132,173,33132,174,33132,175,33132,176,33132,168,33232,169,33232,170,33232,171,33232,172,33232,173,33232,174,33232,175,33232,176,33232,168,33332,169,33332,170,33332,171,33332,172,33332,173,33332,174,33332,175,33332,176,33332,167,33432,168,33432,169,33432,170,33432,171,33432,172,33432,173,33432,174,33432,175,33432,176,33432,167,33532,168,33532,169,33532,170,33532,171,33532,172,33532,173,33532,174,33532,175,33532,176,33532,167,33632,168,33632,169,33632,170,33632,171,33632,172,33632,173,33632,174,33632,168,33732,169,33732,170,33732,171,33732,172,33732,173,33732,168,33832,169,33832,170,33832,171,33832,172,33832,173,33832,168,33932,169,33932,170,33932,171,33932,172,33932,168,34032,169,34032,170,34032,171,34033,170,38733,171,38733,172,38733,170,38833,171,38833,172,38833,173,38833,170,38933,171,38933,172,38933,173,38933,174,38933,169,39033,170,39033,171,39033,172,39033,173,39033,174,39033,175,39033,167,39133,168,39133,169,39133,170,39133,171,39133,172,39133,173,39133,174,39133,175,39133,176,39133,167,39233,168,39233,169,39233,170,39233,171,39233,172,39233,173,39233,174,39233,175,39233,176,39233,167,39333,168,39333,169,39333,170,39333,171,39333,172,39333,173,39333,174,39333,175,39333,176,39333,168,39433,169,39433,170,39433,171,39433,172,39433,173,39433,174,39433,175,39433,176,39433,168,39533,169,39533,170,39533,171,39533,172,39533,173,39533,174,39533,175,39533,176,39533,168,39633,169,39633,170,39633,171,39633,172,39633,173,39633,174,39633,175,39633,168,39733,169,39733,170,39733,173,39733,174,39734,258,10834,259,10834,260,10834,261,10834,262,10834,263,10834,258,10934,259,10934,260,10934,261,10934,262,10934,263,10934,264,10934,258,11034,259,11034,260,11034,261,11034,262,11034,263,11034,264,11034,265,11034,266,11034,258,11134,259,11134,260,11134,261,11134,262,11134,263,11134,264,11134,265,11134,266,11134,267,11134,258,11234,259,11234,260,11234,261,11234,262,11234,263,11234,264,11234,265,11234,266,11234,267,11234,268,11234,259,11334,260,11334,261,11334,262,11334,263,11334,264,11334,265,11334,266,11334,267,11334,268,11334,269,11334,260,11434,261,11434,262,11434,263,11434,264,11434,265,11434,266,11434,267,11434,268,11434,269,11434,260,11534,261,11534,262,11534,263,11534,264,11534,265,11534,266,11534,267,11534,268,11534,269,11534,261,11634,262,11634,263,11634,264,11634,265,11634,266,11634,267,11634,268,11634,269,11634,270,11634,261,11734,262,11734,263,11734,264,11734,265,11734,266,11734,267,11734,268,11734,269,11734,270,11734,261,11834,262,11834,263,11834,264,11834,265,11834,266,11834,267,11834,268,11834,269,11834,270,11834,271,11834,261,11934,262,11934,263,11934,264,11934,265,11934,266,11934,267,11934,268,11934,269,11934,270,11934,271,11934,260,12034,261,12034,262,12034,263,12034,264,12034,265,12034,266,12034,267,12034,268,12034,269,12034,270,12034,271,12034,272,12034,260,12134,261,12134,262,12134,263,12134,264,12134,265,12134,266,12134,267,12134,268,12134,269,12134,270,12134,271,12134,272,12134,273,12134,261,12234,262,12234,263,12234,264,12234,265,12234,266,12234,267,12234,268,12234,269,12234,270,12234,271,12234,272,12234,273,12234,263,12334,264,12334,265,12334,266,12334,267,12334,268,12334,269,12334,270,12334,271,12334,272,12334,273,12334,263,12434,264,12434,265,12434,266,12434,267,12434,268,12434,269,12434,270,12434,271,12434,272,12434,263,12534,264,12534,265,12534,266,12534,267,12534,268,12534,269,12534,270,12534,271,12534,264,12634,265,12634,266,12634,267,12634,268,12634,269,12634,270,12634,271,12634,264,12734,265,12734,266,12734,267,12734,268,12734,269,12734,270,12734,265,12834,266,12834,267,12834,268,12834,269,12834,270,12834,266,12934,267,12934,268,12934,269,12934,267,13034,268,13035,268,13235,269,13235,270,13235,268,13335,269,13335,270,13335,271,13335,268,13435,269,13435,270,13435,271,13435,268,13535,269,13535,270,13535,271,13535,269,13635,270,13635,271,13635,270,13736,376,19136,377,19136,375,19236,376,19236,377,19236,378,19236,374,19336,375,19336,376,19336,377,19336,378,19336,374,19436,375,19436,376,19436,377,19436,378,19436,373,19536,374,19536,375,19536,376,19536,377,19536,378,19536,379,19536,373,19636,374,19636,375,19636,376,19636,377,19636,378,19636,379,19636,373,19736,374,19736,375,19736,376,19736,377,19736,378,19736,375,19837,187,20237,188,20237,185,20337,186,20337,187,20337,188,20337,184,20437,185,20437,186,20437,187,20437,184,20537,185,20537,186,20537,184,20637,185,20637,186,20637,184,20737,185,20738,432,20538,433,20538,434,20538,430,20638,431,20638,432,20638,433,20638,434,20638,429,20738,430,20738,431,20738,432,20738,433,20738,434,20738,435,20738,428,20838,429,20838,430,20838,431,20838,432,20838,433,20838,434,20838,435,20838,427,20938,428,20938,429,20938,430,20938,431,20938,432,20938,433,20938,434,20938,435,20938,427,21038,428,21038,429,21038,430,21038,431,21038,432,21038,433,21038,434,21038,435,21038,427,21138,428,21138,429,21138,430,21138,431,21138,432,21138,433,21138,434,21138,427,21238,428,21238,429,21238,430,21238,431,21238,432,21238,433,21238,426,21338,427,21338,428,21338,429,21338,430,21338,431,21338,422,21438,423,21438,424,21438,425,21438,426,21438,427,21438,428,21438,429,21438,430,21438,421,21538,422,21538,423,21538,424,21538,425,21538,426,21538,420,21638,421,21638,422,21638,423,21638,424,21638,425,21638,426,21638,420,21738,421,21738,422,21738,423,21738,424,21738,425,21738,419,21838,420,21838,421,21838,422,21838,423,21838,424,21838,420,21938,421,21938,422,21938,423,21939,273,15639,274,15639,275,15639,276,15639,277,15639,278,15639,271,15739,272,15739,273,15739,274,15739,275,15739,276,15739,277,15739,278,15739,279,15739,280,15739,269,15839,270,15839,271,15839,272,15839,273,15839,274,15839,275,15839,276,15839,277,15839,278,15839,279,15839,280,15839,281,15839,266,15939,267,15939,268,15939,269,15939,270,15939,271,15939,272,15939,273,15939,274,15939,275,15939,276,15939,277,15939,278,15939,279,15939,280,15939,281,15939,266,16039,267,16039,268,16039,269,16039,270,16039,271,16039,272,16039,273,16039,274,16039,275,16039,276,16039,277,16039,278,16039,279,16039,280,16039,281,16039,265,16139,266,16139,267,16139,268,16139,269,16139,270,16139,271,16139,272,16139,273,16139,274,16139,275,16139,276,16139,277,16139,278,16139,279,16139,267,16239,268,16239,269,16239,270,16239,271,16239,272,16239,273,16239,274,16239,275,16239,276,16239,277,16241,468,541,469,541,466,641,467,641,468,641,469,641,470,641,471,641,465,741,466,741,467,741,468,741,469,741,470,741,471,741,472,741,464,841,465,841,466,841,467,841,468,841,469,841,470,841,471,841,472,841,463,941,464,941,465,941,466,941,467,941,468,941,469,941,470,941,471,941,472,941,473,941,462,1041,463,1041,464,1041,465,1041,466,1041,467,1041,468,1041,469,1041,470,1041,471,1041,472,1041,473,1041,474,1041,462,1141,463,1141,464,1141,465,1141,466,1141,467,1141,468,1141,469,1141,470,1141,471,1141,472,1141,473,1141,474,1141,463,1241,464,1241,465,1241,466,1241,467,1241,468,1241,469,1241,470,1241,471,1241,472,1241,473,1241,474,1241,463,1341,464,1341,465,1341,466,1341,467,1341,468,1341,469,1341,470,1341,471,1341,472,1341,473,1341,474,1341,464,1441,465,1441,466,1441,467,1441,468,1441,469,1441,470,1441,471,1441,472,1441,473,1441,474,1441,466,1541,467,1541,468,1541,469,1541,470,1541,471,1541,472,1541,473,1541,469,1641,470,1641,471,1642,458,12942,457,13042,458,13042,459,13042,457,13142,458,13142,459,13142,457,13242,458,13242,459,13242,457,13342,458,13342,459,13342,460,13342,456,13442,457,13442,458,13442,459,13442,460,13442,456,13542,457,13542,458,13542,459,13542,460,13542,461,13542,456,13642,457,13642,458,13642,459,13642,460,13642,461,13642,456,13742,457,13742,458,13742,459,13742,460,13742,461,13742,462,13742,456,13842,457,13842,458,13842,459,13842,460,13842,461,13842,462,13842,456,13942,457,13942,458,13942,459,13942,460,13942,461,13942,456,14042,457,14042,458,14042,459,14042,460,14044,245,23644,246,23644,247,23644,248,23644,243,23744,244,23744,245,23744,246,23744,247,23744,248,23744,241,23844,242,23844,243,23844,244,23844,245,23844,246,23844,247,23844,248,23844,240,23944,241,23944,242,23944,243,23944,244,23944,245,23944,246,23944,247,23944,239,24044,240,24044,241,24044,242,24044,243,24044,244,24044,245,24044,246,24044,247,24044,248,24044,239,24144,240,24144,241,24144,242,24144,243,24144,244,24144,245,24144,246,24144,247,24144,248,24144,239,24244,240,24244,241,24244,242,24244,243,24244,244,24244,245,24244,246,24244,241,24344,242,24344,243,24344,244,24344,242,24444,243,24444,244,24445,189,34345,190,34345,189,34445,190,34445,191,34445,189,34545,190,34545,191,34545,192,34545,189,34645,190,34645,191,34645,192,34645,189,34745,190,34745,191,34745,192,34745,189,34845,190,34845,191,34845,192,34845,189,34945,190,34945,191,34945,189,35045,190,35046,224,26446,225,26446,226,26446,227,26446,223,26546,224,26546,225,26546,226,26546,227,26546,223,26646,224,26646,225,26646,226,26646,227,26646,228,26646,224,26746,225,26746,226,26746,227,26747,261,29847,262,29847,263,29847,260,29947,261,29947,262,29947,263,29947,260,30047,261,30047,262,30047,263,30047,260,30147,261,30147,262,30149,8,39049,6,39149,7,39149,8,39149,9,39149,10,39149,6,39249,7,39249,8,39249,9,39249,10,39249,11,39249,6,39349,7,39349,8,39349,9,39349,10,39349,11,39349,12,39349,8,39449,9,39449,10,39449,11,39449,12,39449,8,39549,9,39549,10,39549,11,39549,12,39549,13,39549,8,39649,9,39649,10,39649,11,39649,12,39649,13,39649,9,39749,10,39749,11,39749,12,39749,13,39749,10,39849,11,39849,12,39849,13,39850,492,23050,493,23050,494,23050,491,23150,492,23150,493,23150,494,23150,495,23150,491,23250,492,23250,493,23250,494,23250,495,23250,492,23350,493,23350,494,23350,492,23451,318,7751,317,7851,318,7851,319,7851,320,7851,317,7951,318,7951,319,7951,320,7951,321,7951,317,8051,318,8051,319,8051,320,8051,317,8151,318,8151,319,8151,320,8151,319,8252,136,33952,137,33952,134,34052,135,34052,136,34052,137,34052,138,34052,133,34152,134,34152,135,34152,136,34152,137,34152,138,34152,139,34152,132,34252,133,34252,134,34252,135,34252,136,34252,137,34252,138,34252,139,34252,140,34252,132,34352,133,34352,134,34352,135,34352,136,34352,137,34352,138,34352,139,34352,140,34352,132,34452,133,34452,134,34452,135,34452,136,34452,137,34452,138,34452,139,34452,140,34452,129,34552,130,34552,131,34552,132,34552,133,34552,134,34552,135,34552,136,34552,137,34552,138,34552,139,34552,140,34552,141,34552,129,34652,130,34652,131,34652,132,34652,133,34652,134,34652,135,34652,136,34652,137,34652,138,34652,139,34652,140,34652,141,34652,129,34752,130,34752,131,34752,132,34752,133,34752,134,34752,135,34752,136,34752,137,34752,138,34752,139,34752,140,34752,129,34852,130,34852,131,34852,132,34852,133,34852,134,34852,135,34852,136,34852,137,34852,138,34852,139,34852,140,34852,130,34952,131,34952,132,34952,133,34952,134,34952,135,34952,136,34952,137,34952,138,34952,139,34952,129,35052,130,35052,131,35052,132,35052,133,35052,134,35052,135,35052,136,35052,137,35052,138,35052,139,35052,129,35152,130,35152,131,35152,132,35152,133,35152,134,35152,135,35152,137,35152,138,35152,128,35252,129,35252,130,35252,131,35252,132,35252,133,35252,134,35252,127,35352,128,35352,129,35352,130,35352,131,35352,132,35352,133,35352,127,35452,128,35452,129,35452,130,35452,131,35452,130,35553,150,34653,151,34653,152,34653,153,34653,149,34753,150,34753,151,34753,152,34753,153,34753,149,34853,150,34853,151,34853,152,34853,153,34853,148,34953,149,34953,150,34953,151,34953,152,34953,153,34953,147,35053,148,35053,149,35053,150,35053,151,35053,152,35053,153,35053,147,35153,148,35153,149,35153,150,35153,151,35153,152,35153,153,35153,147,35253,148,35253,149,35253,150,35253,151,35253,152,35253,153,35253,147,35353,148,35353,149,35353,150,35353,151,35353,152,35353,153,35353,150,35453,151,35453,152,35455,134,4855,135,4855,136,4855,134,4955,135,4955,136,4955,137,4955,133,5055,134,5055,135,5055,136,5055,137,5055,138,5055,133,5155,134,5155,135,5155,136,5155,137,5155,138,5155,133,5255,134,5255,135,5255,136,5255,137,5255,138,5255,133,5355,134,5355,135,5355,136,5355,137,5355,132,5455,133,5455,134,5455,135,5455,136,5455,132,5555,133,5555,134,5555,135,5555,136,5555,133,5655,134,5655,135,5656,454,6956,455,6956,454,7056,455,7056,456,7056,453,7156,454,7156,455,7156,456,7156,452,7256,453,7256,454,7256,455,7256,456,7256,453,7356,454,7356,455,7356,456,7356,453,7456,454,7456,455,7456,456,7457,204,17657,205,17657,203,17757,204,17757,205,17757,206,17757,203,17857,204,17857,205,17857,206,17857,207,17857,204,17957,205,17957,206,17957,207,17957,204,18057,205,18058,360,13058,361,13058,358,13158,359,13158,360,13158,361,13158,362,13158,363,13158,356,13258,357,13258,358,13258,359,13258,360,13258,361,13258,362,13258,363,13258,364,13258,356,13358,357,13358,358,13358,359,13358,360,13358,361,13358,362,13358,363,13358,364,13358,365,13358,355,13458,356,13458,357,13458,358,13458,359,13458,360,13458,361,13458,362,13458,363,13458,364,13458,365,13458,366,13458,353,13558,354,13558,355,13558,356,13558,357,13558,358,13558,359,13558,360,13558,361,13558,362,13558,363,13558,364,13558,365,13558,366,13558,352,13658,353,13658,354,13658,355,13658,356,13658,357,13658,358,13658,359,13658,360,13658,361,13658,362,13658,363,13658,364,13658,365,13658,366,13658,352,13758,353,13758,354,13758,355,13758,356,13758,357,13758,358,13758,359,13758,360,13758,361,13758,362,13758,363,13758,364,13758,365,13758,352,13858,353,13858,354,13858,355,13858,356,13858,357,13858,358,13858,359,13858,360,13858,361,13858,362,13858,363,13858,364,13858,365,13858,351,13958,352,13958,353,13958,354,13958,355,13958,356,13958,357,13958,358,13958,359,13958,360,13958,361,13958,362,13958,363,13958,350,14058,351,14058,352,14058,353,14058,354,14058,355,14058,356,14058,349,14158,350,14158,351,14158,352,14159,310,8659,311,8659,310,8759,311,8759,312,8759,310,8859,311,8859,312,8859,310,8959,311,8959,312,8960,486,23760,484,23860,485,23860,486,23860,487,23860,488,23860,489,23860,491,23860,492,23860,493,23860,494,23860,495,23860,480,23960,481,23960,482,23960,483,23960,484,23960,485,23960,486,23960,487,23960,488,23960,489,23960,490,23960,491,23960,492,23960,493,23960,494,23960,495,23960,496,23960,473,24060,474,24060,475,24060,476,24060,477,24060,479,24060,480,24060,481,24060,482,24060,483,24060,484,24060,485,24060,486,24060,487,24060,488,24060,489,24060,490,24060,491,24060,492,24060,493,24060,494,24060,495,24060,496,24060,473,24160,474,24160,475,24160,476,24160,477,24160,478,24160,479,24160,480,24160,481,24160,482,24160,483,24160,484,24160,485,24160,486,24160,487,24160,488,24160,489,24160,490,24160,491,24160,492,24160,493,24160,494,24160,495,24160,496,24160,475,24260,476,24260,477,24260,478,24260,479,24260,480,24260,481,24260,482,24260,487,24260,488,24260,489,24260,490,24260,491,24260,492,24260,493,24260,494,24260,495,24260,496,24260,478,24360,479,24360,491,24360,492,24360,493,24360,494,24361,105,30761,106,30761,103,30861,104,30861,105,30861,106,30861,107,30861,103,30961,104,30961,105,30961,106,30961,107,30961,103,31061,104,31061,105,31061,106,31061,107,31061,103,31161,104,31161,105,31161,106,31161,104,31261,105,31263,250,7263,251,7263,252,7263,250,7363,251,7363,252,7363,253,7363,249,7463,250,7463,251,7463,252,7463,253,7463,250,7563,251,7563,252,7563,253,7563,254,7563,251,7663,252,7665,384,17565,385,17565,384,17665,385,17665,386,17665,384,17765,385,17765,386,17765,384,17865,385,17867,88,26367,89,26367,90,26367,91,26367,88,26467,89,26467,90,26467,91,26467,87,26567,88,26567,89,26567,90,26567,91,26567,87,26667,88,26667,89,26667,90,26667,86,26767,87,26767,88,26767,89,26767,90,26767,86,26867,87,26867,88,26867,89,26867,90,26867,86,26967,87,26967,88,26968,70,23668,71,23668,72,23668,73,23668,69,23768,70,23768,71,23768,72,23768,73,23768,68,23868,69,23868,70,23868,71,23868,72,23868,73,23868,68,23968,69,23968,70,23968,71,23968,72,23968,73,23968,74,23968,68,24068,69,24068,70,24068,71,24068,72,24068,73,24068,74,24068,68,24168,69,24168,70,24168,71,24168,72,24168,73,24168,74,24168,68,24268,69,24268,70,24268,71,24268,72,24268,73,24268,74,24268,68,24368,69,24368,70,24368,71,24368,72,24368,73,24368,74,24368,68,24468,69,24468,70,24468,71,24468,72,24468,73,24468,74,24468,73,24568,74,24569,198,26469,199,26469,200,26469,198,26569,199,26569,200,26569,198,26669,199,26669,200,26670,306,16470,307,16470,302,16570,303,16570,304,16570,305,16570,306,16570,307,16570,301,16670,302,16670,303,16670,304,16670,305,16670,306,16670,307,16670,301,16770,302,16770,303,16770,304,16770,305,16770,306,16770,301,16870,302,16870,303,16870,304,16871,188,27371,189,27371,188,27471,189,27471,190,27471,191,27471,188,27571,189,27571,190,27571,191,27571,192,27571,188,27671,189,27671,190,27671,191,27671,192,27671,193,27671,188,27771,189,27771,190,27771,191,27771,192,27771,193,27771,188,27871,189,27871,190,27871,191,27871,192,27872,87,19572,88,19572,89,19572,85,19672,86,19672,87,19672,88,19672,89,19672,84,19772,85,19772,86,19772,87,19772,88,19772,89,19772,84,19872,85,19872,86,19872,87,19872,88,19872,84,19972,85,19972,86,19972,87,19972,84,20072,85,20072,86,20072,87,20072,84,20172,85,20172,86,20172,87,20172,84,20272,85,20272,86,20272,87,20273,163,30973,164,30973,165,30973,162,31073,163,31073,164,31073,165,31073,161,31173,162,31173,163,31173,164,31173,165,31173,162,31273,163,31273,164,31273,165,31273,163,31373,164,31374,98,23074,97,23174,98,23174,99,23174,96,23274,97,23274,98,23274,99,23274,97,23374,98,23374,99,23375,265,27675,266,27675,267,27675,265,27775,266,27775,267,27775,268,27775,263,27875,264,27875,265,27875,266,27875,267,27875,268,27875,263,27975,264,27975,265,27975,266,27975,267,27975,268,27975,263,28075,264,28075,265,28075,266,28075,267,28075,268,28075,265,28175,266,28175,267,28175,266,28277,182,29177,183,29177,184,29177,185,29177,181,29277,182,29277,183,29277,184,29277,185,29277,181,29377,182,29377,183,29377,184,29377,181,29477,182,29477,183,29477,184,29477,182,29512345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970clump_id,area_pix,area_arcsec2,r_eff_arcsec,x0,y0,area_kpc2,r_eff_kpc,inside,component0,86,0.034399999999999306,0.10464157913908878,364.7674418604651,113.29069767441861,0.6888224198364515,0.4682509861804716,True,disk1,101,0.04039999999999919,0.11340070282773773,251.16831683168317,164.75247524752476,0.8089658651567628,0.5074463838324409,True,disk2,105,0.041999999999999156,0.115624457705621,420.8666666666667,176.78095238095239,0.8410041172421793,0.5173972601777647,False,outside3,255,0.10199999999999794,0.18018770321735608,326.84705882352944,114.83529411764705,2.042438570445292,0.8063053943115011,True,disk4,35,0.013999999999999718,0.06675581178124479,335.22857142857146,133.62857142857143,0.28033470574739305,0.2987194474416073,True,disk6,125,0.04999999999999899,0.12615662610100672,120.048,76.248,1.0011953776692608,0.564526692649373,False,outside7,275,0.10999999999999778,0.18712051592547588,16.883636363636363,456.1890909090909,2.202629830872374,0.8373284007902799,False,outside8,311,0.1243999999999975,0.19899183360445413,238.7684887459807,423.5594855305466,2.4909740996411216,0.8904502693264436,False,outside9,164,0.06559999999999867,0.14450303987686988,191.609756097561,308.9573170731707,1.3135683355020702,0.6466233736637544,False,outside10,265,0.10599999999999786,0.18368682025524077,187.55849056603773,124.55849056603773,2.122534200658833,0.821963271583905,True,disk11,136,0.05439999999999891,0.1315904928495895,425.93382352941177,243.46323529411765,1.089300570904156,0.5888422036033424,False,outside12,35,0.013999999999999718,0.06675581178124479,476.42857142857144,190.77142857142857,0.28033470574739305,0.2987194474416073,False,outside13,167,0.06679999999999865,0.14581872443920496,235.52095808383234,133.38922155688624,1.3375970245661326,0.6525108096035059,True,disk14,199,0.0795999999999984,0.1591774699517153,92.15075376884423,295.0502512562814,1.5939030412494635,0.7122886322609077,False,outside15,93,0.03719999999999925,0.10881694613449126,314.64516129032256,273.9247311827957,0.7448893609859301,0.48693495224202993,False,outside16,94,0.037599999999999245,0.10940041919714151,121.95744680851064,268.8723404255319,0.7528989240072843,0.4895458822303147,False,outside17,55,0.021999999999999558,0.0836828387188392,64.72727272727273,415.41818181818184,0.44052596617447487,0.37446464473165086,False,outside18,22,0.008799999999999822,0.05292567428401174,341.59090909090907,204.5,0.17621038646978993,0.23683223611155765,True,disk19,68,0.027199999999999454,0.09304852983362463,256.3529411764706,213.05882352941177,0.544650285452078,0.4163743152167531,True,disk20,290,0.11599999999999766,0.19215604803731517,447.50344827586207,232.79310344827587,2.3227732761926854,0.8598614406842793,False,outside21,100,0.039999999999999196,0.11283791670955012,423.98,194.56,0.8009563021354088,0.5049280239508517,False,outside22,321,0.1283999999999974,0.2021657473114521,326.58255451713393,237.29595015576325,2.571069729854662,0.9046529240988651,False,outside23,201,0.08039999999999838,0.15997535700593468,359.55721393034827,162.08955223880596,1.6099221672921715,0.7158590237159358,True,disk24,362,0.14479999999999707,0.21468877828012334,41.270718232044196,400.4585635359116,2.8994618137301797,0.9606910845441946,False,outside25,193,0.07719999999999845,0.15675944377736273,274.0518134715026,296.04145077720204,1.545845663121339,0.7014684291440776,False,outside26,34,0.013599999999999727,0.06579524642479476,4.147058823529412,316.8529411764706,0.272325142726039,0.2944211018016712,False,outside27,95,0.037999999999999236,0.1099807968464668,158.8,423.4,0.7609084870286383,0.4921429608379726,False,outside28,181,0.07239999999999853,0.15180789096653038,207.23756906077347,252.43093922651934,1.4497309068650899,0.6793111805066588,False,outside29,105,0.041999999999999156,0.115624457705621,226.98095238095237,301.4095238095238,0.8410041172421793,0.5173972601777647,False,outside30,66,0.02639999999999947,0.0916699568847499,66.54545454545455,334.54545454545456,0.5286311594093698,0.4102054658153665,False,outside31,167,0.06679999999999865,0.14581872443920496,68.89221556886227,496.67664670658684,1.3375970245661326,0.6525108096035059,False,outside32,99,0.039599999999999205,0.11227230955528553,171.23232323232324,333.4949494949495,0.7929467391140548,0.5023970404741679,False,outside33,80,0.031999999999999355,0.10092530088080538,171.625,392.525,0.640765041708327,0.4516213541194985,False,outside34,213,0.08519999999999828,0.16468151779376586,265.38497652582157,118.36619718309859,1.7060369235484205,0.7369181901405625,True,disk35,19,0.0075999999999998465,0.04918490759365885,269.5263157894737,134.1578947368421,0.15218169740572765,0.2200930230163447,True,disk36,37,0.014799999999999702,0.06863662517577629,375.97297297297297,194.64864864864865,0.2963538317901013,0.3071357264585763,False,outside37,18,0.007199999999999855,0.04787307364817144,185.66666666666666,204.38888888888889,0.14417213438437357,0.21422281784806244,False,outside38,100,0.039999999999999196,0.11283791670955012,428.04,211.93,0.8009563021354088,0.5049280239508517,False,outside39,87,0.0347999999999993,0.10524820207108382,273.64367816091954,159.32183908045977,0.6968319828578056,0.47096550739167015,True,disk41,108,0.04319999999999913,0.11726460285669961,468.4537037037037,10.814814814814815,0.8650328063062415,0.5247365949889381,False,outside42,56,0.02239999999999955,0.08444016491289419,458.44642857142856,135.625,0.4485355291958289,0.3778535341209747,False,outside44,61,0.02439999999999951,0.0881292302410746,243.80327868852459,239.86885245901638,0.48858334430259936,0.3943613935418327,False,outside45,26,0.010399999999999791,0.05753627391751535,190.23076923076923,346.5,0.2082486385552063,0.25746378470852377,False,outside46,19,0.0075999999999998465,0.04918490759365885,225.3684210526316,265.5263157894737,0.15218169740572765,0.2200930230163447,False,outside47,14,0.005599999999999887,0.042220082456447094,261.5,299.5,0.11213388229895722,0.18892676706048736,False,outside49,45,0.017999999999999638,0.07569397566060404,9.755555555555556,394.24444444444447,0.36043033596093393,0.3387160155896239,False,outside50,17,0.0067999999999998634,0.046524264916812316,492.94117647058823,231.64705882352942,0.1361625713630195,0.20818715760837656,False,outside51,19,0.0075999999999998465,0.04918490759365885,318.63157894736844,79.47368421052632,0.15218169740572765,0.2200930230163447,True,disk52,141,0.05639999999999886,0.133987602339789,134.29078014184398,346.86524822695037,1.1293483860109264,0.5995688085724488,False,outside53,51,0.02039999999999959,0.08058239062071315,150.4313725490196,350.1372549019608,0.4084877140890585,0.3605907344610577,False,outside55,43,0.017199999999999653,0.07399277020331844,134.95348837209303,52.0,0.34441120991822577,0.3311034476254998,False,outside56,22,0.008799999999999822,0.05292567428401174,454.45454545454544,71.81818181818181,0.17621038646978993,0.23683223611155765,False,outside57,17,0.0067999999999998634,0.046524264916812316,204.88235294117646,178.0,0.1361625713630195,0.20818715760837656,True,disk58,120,0.04799999999999903,0.12360774464741942,358.5416666666667,135.85833333333332,0.9611475625624905,0.5531209372687804,True,disk59,11,0.004399999999999911,0.037424103185095176,310.90909090909093,87.63636363636364,0.08810519323489496,0.167465680158056,True,disk60,100,0.039999999999999196,0.11283791670955012,486.14,240.36,0.8009563021354088,0.5049280239508517,False,outside61,23,0.009199999999999814,0.05411516379805956,104.91304347826087,309.4347826086956,0.184219949491144,0.24215497342674944,False,outside63,19,0.0075999999999998465,0.04918490759365885,251.42105263157896,73.94736842105263,0.15218169740572765,0.2200930230163447,True,disk65,10,0.003999999999999919,0.03568248232305506,384.8,176.5,0.08009563021354088,0.15967226101327425,True,disk67,30,0.011999999999999757,0.06180387232370971,88.53333333333333,265.96666666666664,0.2402868906406226,0.2765604686343902,False,outside68,59,0.023599999999999524,0.08667244841319131,71.0677966101695,240.5084745762712,0.4725642182598912,0.3878425744149783,False,outside69,9,0.0035999999999999275,0.03385137501286504,199.0,265.0,0.07208606719218678,0.15147840718525551,False,outside70,25,0.009999999999999799,0.05641895835477506,303.96,166.16,0.2002390755338522,0.25246401197542584,True,disk71,28,0.011199999999999774,0.05970821321441786,190.03571428571428,275.89285714285717,0.22426776459791445,0.2671827962722438,False,outside72,35,0.013999999999999718,0.06675581178124479,86.17142857142858,198.42857142857142,0.28033470574739305,0.2987194474416073,False,outside73,18,0.007199999999999855,0.04787307364817144,163.44444444444446,310.8888888888889,0.14417213438437357,0.21422281784806244,False,outside74,11,0.004399999999999911,0.037424103185095176,97.81818181818181,231.8181818181818,0.08810519323489496,0.167465680158056,False,outside75,29,0.011599999999999767,0.06076507779746437,265.7586206896552,278.7241379310345,0.23227732761926856,0.27191206247160943,False,outside77,18,0.007199999999999855,0.04787307364817144,182.83333333333334,292.6111111111111,0.14417213438437357,0.21422281784806244,False,outside123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325clump_id,x,y0,109,370,110,370,111,370,112,370,108,380,109,380,110,380,111,380,112,380,107,390,108,390,109,390,110,390,111,390,112,390,113,390,106,400,107,400,108,400,109,400,110,400,111,400,112,400,113,400,105,410,106,410,107,410,108,410,109,410,110,410,111,410,112,410,113,410,105,420,106,420,107,420,108,420,109,420,110,420,111,420,112,420,113,420,104,430,105,430,106,430,107,430,108,430,109,430,110,430,111,430,112,430,113,430,103,440,104,440,105,440,106,440,107,440,108,440,109,440,110,440,111,440,112,440,113,440,103,450,104,450,105,450,106,450,107,450,108,450,109,450,110,450,111,450,103,460,104,460,105,460,106,460,107,460,108,460,109,460,110,460,103,470,104,470,105,470,106,470,107,470,108,470,109,470,110,470,104,480,105,480,106,480,107,480,108,480,106,491,60,411,61,411,62,411,63,411,58,421,59,421,60,421,61,421,62,421,63,421,64,421,56,431,57,431,58,431,59,431,60,431,61,431,62,431,63,431,55,441,56,441,57,441,58,441,59,441,60,441,61,441,62,441,63,441,55,451,56,451,57,451,58,451,59,451,60,451,61,451,62,451,54,461,55,461,56,461,57,461,58,461,59,461,60,461,61,461,54,471,55,471,56,471,57,471,58,471,59,471,60,471,53,481,54,481,55,481,56,481,57,481,58,481,59,481,60,481,52,491,53,491,54,491,55,491,56,491,57,491,58,491,59,491,52,501,53,501,54,501,55,501,56,501,52,511,53,511,54,511,55,511,52,521,53,521,54,521,52,531,53,531,54,531,52,541,53,544,149,694,146,704,147,704,149,704,144,714,145,714,146,714,147,714,148,714,149,714,150,714,144,724,145,724,146,724,147,724,148,724,149,724,150,724,151,724,152,724,144,734,145,734,146,734,147,734,148,734,149,734,150,734,151,734,152,734,153,734,145,744,146,744,147,744,148,744,149,744,150,744,151,744,152,744,153,744,148,754,149,754,150,754,151,754,152,755,122,165,123,165,124,165,121,175,122,175,123,175,124,175,120,185,121,185,122,185,123,185,120,195,121,195,122,195,120,205,121,205,122,206,81,1216,82,1216,80,1226,81,1226,82,1226,83,1226,84,1226,79,1236,80,1236,81,1236,82,1236,83,1236,84,1236,79,1246,80,1246,81,1246,82,1246,83,1246,84,1246,79,1256,80,1256,81,1256,82,1256,83,1256,84,1256,79,1266,80,1266,81,1266,82,1266,83,1266,79,1276,80,1276,81,1276,82,1276,79,1287,106,617,107,617,104,627,105,627,106,627,107,627,108,627,103,637,104,637,105,637,106,637,107,637,108,637,109,637,102,647,103,647,104,647,105,647,106,647,107,647,108,647,101,657,102,657,103,657,104,657,105,657,106,657,107,657,108,657,101,667,102,667,103,667,104,667,105,667,106,667,107,667,108,667,101,677,102,677,103,677,104,677,105,677,106,677,107,677,101,687,102,687,103,687,104,687,105,687,106,681234567clump_id,area_pix,area_arcsec2,r_eff_arcsec,x0,y0,area_kpc2,r_eff_kpc,inside,component0,94,0.037599999999999245,0.10940041919714151,108.25531914893617,42.87234042553192,0.732251576708385,0.48278661543164936,False,outside1,84,0.033599999999999325,0.10341765891652717,57.26190476190476,46.523809523809526,0.6543524728032376,0.4563845540134773,False,outside4,44,0.017599999999999644,0.07484820637019035,148.36363636363637,72.61363636363636,0.34275605718264823,0.33030688995328816,False,outside5,17,0.0067999999999998634,0.046524264916812316,121.82352941176471,17.941176470588236,0.1324284766387505,0.20531267210372928,False,outside6,35,0.013999999999999718,0.06675581178124479,81.31428571428572,124.28571428571429,0.27264686366801566,0.29459496286008285,True,disk7,50,0.019999999999999598,0.07978845608028573,104.82,64.92,0.3894955195257367,0.3521083277761741,False,outside21 unmodified lines2223242526273 unmodified lines31323334353621 unmodified lines"pydantic>=2.9","plotly>=5.18","scipy>=1.12",][project.optional-dependencies]3 unmodified lines"ruff","mypy>=1.8","pandas-stubs","pre-commit","codespell","httpx>=0.27",21 unmodified lines222324252627283 unmodified lines3233343536373821 unmodified lines"pydantic>=2.9","plotly>=5.18","scipy>=1.12","pillow>=10.0",][project.optional-dependencies]3 unmodified lines"ruff","mypy>=1.8","pandas-stubs","types-Pillow","pre-commit","codespell","httpx>=0.27",
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""Data store: pre-loads and caches datacubes and clump catalog offering a cache mechanism."""from pathlib import Pathfrom jellyscope.config import JellyscopeConfigfrom jellyscope.data.model.clumps import ClumpCatalogfrom jellyscope.data.model.datacube import DataCubeclass DataStore:"""DataStore is a singleton that holds loaded datacubes and clump catalogs in memory."""_instance: "DataStore | None" = Nonedef __init__(self, config: JellyscopeConfig) -> None:nircam_datacube: str = "nircam"self.config: JellyscopeConfig = configdata: Path = config.data_dirself.datacubes: dict[str, DataCube] = {}self._load_datacube(data / config.datacube_file, nircam_datacube)self._load_datacube(data / config.datacube_matched_file, f"{nircam_datacube}_matched")if nircam_datacube not in self.datacubes:raise FileNotFoundError(f"Required datacube file not found: {data / config.datacube_file}")# Currently using this datacube as only reference of data.ref_datacube: DataCube = self.datacubes[nircam_datacube]self.clumps = ClumpCatalog(data / config.clumps_properties_file,data / config.clumps_pixels_file,ref_datacube.spatial_shape,)def _load_datacube(self, path: Path, name: str) -> None:if path.exists():self.datacubes[name] = DataCube(path)def get_datacube(self, name: str) -> DataCube:if name not in self.datacubes:raise KeyError(f"Unknown datacube '{name}'. Available datacubes are: {list(self.datacubes)}")return self.datacubes[name]def list_datacubes(self) -> list[str]:return list(self.datacubes.keys())def get_datacubes(self) -> dict[str, DataCube]:return self.datacubes@classmethoddef get(cls, config: JellyscopeConfig | None = None) -> "DataStore":123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120"""Data store: discovers and caches datasets (datacubes + clump catalogs)."""import loggingfrom dataclasses import dataclass, fieldfrom pathlib import Pathfrom jellyscope.config import JellyscopeConfigfrom jellyscope.data.model.clumps import ClumpCatalogfrom jellyscope.data.model.datacube import DataCubelogger = logging.getLogger(__name__)NIRCAM = "nircam"NIRCAM_MATCHED = "nircam_matched"DEFAULT_DATASET = "default"@dataclassclass Dataset:"""A self-contained dataset: one or more datacubes + a clump catalog."""name: strdatacubes: dict[str, DataCube] = field(default_factory=dict)clumps: ClumpCatalog | None = Nonedef get_datacube(self, name: str) -> DataCube:if name not in self.datacubes:raise KeyError(f"Unknown datacube '{name}' in dataset '{self.name}'. "f"Available: {list(self.datacubes)}")return self.datacubes[name]def list_datacubes(self) -> list[str]:return list(self.datacubes.keys())class DataStore:"""Singleton holding all discovered datasets in memory."""_instance: "DataStore | None" = Nonedef __init__(self, config: JellyscopeConfig) -> None:self.config: JellyscopeConfig = configself.datasets: dict[str, Dataset] = {}data_dir: Path = config.data_dirif not data_dir.exists():raise FileNotFoundError(f"data_dir does not exist: {data_dir}")# Discover subdirectory-based datasets first.for sub in sorted(p for p in data_dir.iterdir() if p.is_dir()):ds = self._try_load_dataset(sub, name=sub.name)if ds is not None:self.datasets[ds.name] = ds# Backward-compat: flat layout — root data_dir as a single dataset.if not self.datasets:ds = self._try_load_dataset(data_dir, name=DEFAULT_DATASET)if ds is not None:self.datasets[ds.name] = dsif not self.datasets:raise FileNotFoundError(f"No valid datasets found under {data_dir}. "f"Each dataset needs the matched FITS cube and both clump CSVs.")self.default_dataset: str = next(iter(self.datasets))def _try_load_dataset(self, root: Path, name: str) -> Dataset | None:"""Try to build a Dataset from `root`. Returns None if requirements unmet."""cfg = self.configds = Dataset(name=name)base_path = root / cfg.datacube_filematched_path = root / cfg.datacube_matched_fileif base_path.exists():ds.datacubes[NIRCAM] = DataCube(base_path)if matched_path.exists():ds.datacubes[NIRCAM_MATCHED] = DataCube(matched_path)if not ds.datacubes:logger.warning("Skipping '%s': no datacube files found", root)return Noneprops_path = root / cfg.clumps_properties_filepixels_path = root / cfg.clumps_pixels_fileif not props_path.exists() or not pixels_path.exists():logger.warning("Skipping '%s': missing clump CSVs", root)return None# Use the base nircam cube as reference if present, otherwise matched.ref = ds.datacubes.get(NIRCAM) or ds.datacubes[NIRCAM_MATCHED]ds.clumps = ClumpCatalog(props_path, pixels_path, ref.spatial_shape)return ds# Dataset access.def list_datasets(self) -> list[str]:return list(self.datasets.keys())def get_dataset(self, name: str) -> Dataset:if name not in self.datasets:raise KeyError(f"Unknown dataset '{name}'. Available: {list(self.datasets)}")return self.datasets[name]# Datacube/clump access scoped to a dataset.def get_datacube(self, dataset_name: str, datacube_name: str) -> DataCube:return self.get_dataset(dataset_name).get_datacube(datacube_name)def list_datacubes(self, dataset_name: str) -> list[str]:return self.get_dataset(dataset_name).list_datacubes()def get_clumps(self, dataset_name: str) -> ClumpCatalog:ds = self.get_dataset(dataset_name)assert ds.clumps is not Nonereturn ds.clumps@classmethoddef get(cls, config: JellyscopeConfig | None = None) -> "DataStore":
59 unmodified lines60616263646559 unmodified linesdatacubes: list[str]class FiltersResponse(BaseModel):"""List of filters for a datacube."""59 unmodified lines6061626364656667686970717259 unmodified linesdatacubes: list[str]class DatasetsResponse(BaseModel):"""List of available dataset names plus the default selection."""datasets: list[str]default: strclass FiltersResponse(BaseModel):"""List of filters for a datacube."""
8 unmodified lines91011121314151617145 unmodified lines1631641651661671687 unmodified lines1761771781791801818 unmodified lines19019119219319419519619719819920020120220320420520620720820921015 unmodified lines2262272282292302312322332342352362372388 unmodified linesmapping where an object's RGB color depends only on its flux ratios."""from typing import Any, Literalimport numpy as npfrom jellyscope.data.data_store import DataCubefrom jellyscope.data.model.clumps import ClumpCatalog145 unmodified linesreturn (rgb * 255).astype(np.uint8)def build_rgb_figure(datacube: DataCube,r_index: int,7 unmodified lines) -> dict[str, Any]:"""Build a Plotly figure with RGB composite + clump overlays.Args:method: ``"percentile_asinh"`` (default) or ``"lupton"``.softening: Lupton ``Q`` parameter (only used when ``method='lupton'``).8 unmodified lineselse:rgb = percentile_asinh_composite(r_data, g_data, b_data)ny = rgb.shape[0]rgb = np.flipud(rgb)image_trace: dict[str, Any] = {"type": "image","z": rgb.tolist(),}boundaries = create_clump_boundary_traces(clumps, selected_ids)for trace in boundaries:trace["y"] = [ny - 1 - y for y in trace["y"]]centroids = create_centroid_markers(clumps)centroids["y"] = [ny - 1 - y for y in centroids["y"]]data: list[dict[str, Any]] = [image_trace, *boundaries, centroids]r_name = datacube.filter_names[r_index]g_name = datacube.filter_names[g_index]15 unmodified lines"title": "y (pixels)","gridcolor": _SOFT_BLACK,"color": _DARK_GRAY,"autorange": "reversed",},"plot_bgcolor": _DARK_BLUE,"paper_bgcolor": _SOFT_DARK_BLUE,"font": {"color": _GRAY},"margin": {"l": 50, "r": 20, "t": 40, "b": 50},"dragmode": "pan",}return {"data": data, "layout": layout}8 unmodified lines91011121314151617181920145 unmodified lines1661671681691701711721731741751761771781791801811821831847 unmodified lines1921931941951961971981992002012028 unmodified lines21121221321421521621721821922022122222322422522622722822923023115 unmodified lines2472482492502512522532542552562572582592602612622632642652662672682692702712728 unmodified linesmapping where an object's RGB color depends only on its flux ratios."""import base64import iofrom typing import Any, Literalimport numpy as npfrom PIL import Image as PILImagefrom jellyscope.data.data_store import DataCubefrom jellyscope.data.model.clumps import ClumpCatalog145 unmodified linesreturn (rgb * 255).astype(np.uint8)def _rgb_to_png_data_url(rgb: np.ndarray) -> str:"""Encode RGB uint8 array to base64 PNG.flipud applied here so the PNG, when placed on a Cartesian y-up axis withy=0, sizey=ny, has FITS row j at axis y=j."""flipped = np.flipud(rgb)img = PILImage.fromarray(flipped, mode="RGB")buf = io.BytesIO()img.save(buf, format="PNG")return "data:image/png;base64," + base64.b64encode(buf.getvalue()).decode("ascii")def build_rgb_figure(datacube: DataCube,r_index: int,7 unmodified lines) -> dict[str, Any]:"""Build a Plotly figure with RGB composite + clump overlays.Pixels are rendered via ``layout.images[]`` (PNG annotation) on a Cartesianaxis. An invisible ``go.Heatmap`` carries clicks so ``point.y`` arrives atthe backend in raw FITS array space. Seefeedback_plotly_goimage_overlay memory for why ``go.Image`` is rejected.Args:method: ``"percentile_asinh"`` (default) or ``"lupton"``.softening: Lupton ``Q`` parameter (only used when ``method='lupton'``).8 unmodified lineselse:rgb = percentile_asinh_composite(r_data, g_data, b_data)ny, nx = rgb.shape[:2]click_target: dict[str, Any] = {"type": "heatmap","z": np.zeros((ny, nx)).tolist(),"showscale": False,"hoverinfo": "skip","opacity": 0,"colorscale": [[0, "rgba(0,0,0,0)"], [1, "rgba(0,0,0,0)"]],}boundaries = create_clump_boundary_traces(clumps, selected_ids)centroids = create_centroid_markers(clumps)data: list[dict[str, Any]] = [click_target, *boundaries, centroids]r_name = datacube.filter_names[r_index]g_name = datacube.filter_names[g_index]15 unmodified lines"title": "y (pixels)","gridcolor": _SOFT_BLACK,"color": _DARK_GRAY,},"plot_bgcolor": _DARK_BLUE,"paper_bgcolor": _SOFT_DARK_BLUE,"font": {"color": _GRAY},"margin": {"l": 50, "r": 20, "t": 40, "b": 50},"dragmode": "pan","images": [{"source": _rgb_to_png_data_url(rgb),"xref": "x","yref": "y","x": 0,"y": 0,"yanchor": "bottom","sizex": nx,"sizey": ny,"sizing": "stretch","layer": "below",}],}return {"data": data, "layout": layout}
6 unmodified lines789101112131 unmodified line15161718192019 unmodified lines4041424344453 unmodified lines495051525354555657585960616263646566676869707172737475768 unmodified lines85868788899091922 unmodified lines95969798991001011024 unmodified lines1071081091101111121131143 unmodified lines1181191201211221231241251261271281291301311321332 unmodified lines1361371381391401411421431441451461471481491501511521531541559 unmodified lines1651661671681691701711721731741751 unmodified line17717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721816 unmodified lines2352362372382392402412422432442452462472482492502512526 unmodified linesfrom starlette.responses import HTMLResponse, Responsefrom jellyscope.config import NIRCAM_WAVELENGTHSfrom jellyscope.data.data_store import DataStorefrom jellyscope.model.schemas import (ClumpDetailResponse,ClumpListItem,1 unmodified lineCompareRequest,CompareResponse,DatacubesResponse,FilterInfo,FiltersResponse,PixelClumpResponse,19 unmodified linesreturn DataStore.get()def _require_sed_enabled(request: Request) -> None:if not request.app.state.config.enable_sed:raise HTTPException(status_code=404, detail="SED disabled")3 unmodified lines@router.get("/", response_class=HTMLResponse)def index(request: Request) -> Response:store = _store()return request.app.state.templates.TemplateResponse( # type: ignore[no-any-return]request,"index.html",{"datacubes": store.list_datacubes(),"filters": store.get_datacube("nircam").filter_names,"wavelengths": NIRCAM_WAVELENGTHS,"enable_sed": request.app.state.config.enable_sed,},)# Datacube info.@router.get("/api/datacubes", response_model=DatacubesResponse)def list_datacubes() -> DatacubesResponse:store = _store()return DatacubesResponse(datacubes=store.list_datacubes())@router.get("/api/filters/{datacube_name}", response_model=FiltersResponse)def list_filters(datacube_name: str) -> FiltersResponse:dc = _store().get_datacube(datacube_name)filters: list[FilterInfo] = []for i, name in enumerate(dc.filter_names):8 unmodified lines# Image viewer.@router.get("/api/viewer/{datacube_name}/rgb", response_model=RGBViewerResponse)def get_rgb_viewer_figure(datacube_name: str,r: Annotated[int, Query(description="Red channel filter index")],g: Annotated[int, Query(description="Green channel filter index")],2 unmodified linesmethod: Annotated[Literal["percentile_asinh", "lupton"], Query()] = "percentile_asinh",softening: Annotated[float, Query()] = 8.0,) -> RGBViewerResponse:store = _store()dc = store.get_datacube(datacube_name)n_ch = dc.n_channelsfor label, idx in [("r", r), ("g", g), ("b", b)]:if not 0 <= idx < n_ch:4 unmodified linesselected_ids: list[int] = ([int(i) for i in selected.split(",") if i.strip()] if selected else [])figure: dict[str, Any] = build_rgb_figure(dc, r, g, b, store.clumps, selected_ids, method=method, softening=softening)return RGBViewerResponse(figure=figure,3 unmodified lines)@router.get("/api/viewer/{datacube_name}/{channel_index}", response_model=ViewerResponse)def get_viewer_figure(datacube_name: str,channel_index: int,selected: Annotated[str, Query()] = "",colorscale: Annotated[str, Query()] = "Viridis",stretch: Annotated[Literal["log", "lupton_asinh", "power"], Query()] = "log",) -> ViewerResponse:store = _store()dc = store.get_datacube(datacube_name)if not 0 <= channel_index < dc.n_channels:raise HTTPException(status_code=400,2 unmodified linesselected_ids: list[int] = ([int(i) for i in selected.split(",") if i.strip()] if selected else [])figure: dict[str, Any] = build_viewer_figure(dc, channel_index, store.clumps, selected_ids, colorscale, stretch)return ViewerResponse(figure=figure, filter_name=dc.filter_names[channel_index])# Clumps.@router.get("/api/clumps", response_model=ClumpsListResponse)def list_clumps(component: Annotated[str | None, Query()] = None,inside: Annotated[bool | None, Query()] = None,) -> ClumpsListResponse:store = _store()clumps = store.clumps.filter_clumps(component, inside)return ClumpsListResponse(clumps=[ClumpListItem(9 unmodified lines)@router.get("/api/clumps/{clump_id}", response_model=ClumpDetailResponse)def get_clump(clump_id: int) -> ClumpDetailResponse:store = _store()clump = store.clumps.get_clump_by_id(clump_id)boundary = store.clumps.get_boundary_coords(clump_id)props = format_clump_properties(clump)return ClumpDetailResponse(properties=props,1 unmodified line)@router.get("/api/clumps/{clump_id}/spectrum/{datacube_name}", response_model=SpectrumResponse)def get_clump_spectrum(clump_id: int, datacube_name: str, request: Request) -> SpectrumResponse:_require_sed_enabled(request)store = _store()dc = store.get_datacube(datacube_name)spectrum = extract_clump_spectrum(dc, store.clumps, clump_id)figure = create_sed_figure(spectrum)return SpectrumResponse(spectrum=spectrum, figure=figure)# Pixel Interaction.@router.get("/api/pixel/{x}/{y}/clump", response_model=PixelClumpResponse)def get_pixel_clump(x: int, y: int) -> PixelClumpResponse:store = _store()cid = store.clumps.get_clump_id_at_pixel(x, y)return PixelClumpResponse(clump_id=cid)@router.get("/api/pixel/{x}/{y}/spectrum/{datacube_name}", response_model=SpectrumResponse)def get_pixel_spectrum(x: int, y: int, datacube_name: str, request: Request) -> SpectrumResponse:_require_sed_enabled(request)store = _store()dc = store.get_datacube(datacube_name)spectrum = extract_pixel_spectrum(dc, x, y)figure = create_sed_figure(spectrum)return SpectrumResponse(spectrum=spectrum, figure=figure)# Region selection.@router.post("/api/region/spectrum/{datacube_name}", response_model=SpectrumResponse)def get_region_spectrum(datacube_name: str, body: RegionRequest, request: Request) -> SpectrumResponse:_require_sed_enabled(request)store = _store()dc = store.get_datacube(datacube_name)mask = np.zeros(dc.spatial_shape, dtype=bool)16 unmodified lines# Multi-clump comparison.@router.post("/api/compare/spectrum/{datacube_name}", response_model=CompareResponse)def compare_spectra(datacube_name: str, body: CompareRequest, request: Request) -> CompareResponse:_require_sed_enabled(request)store = _store()dc = store.get_datacube(datacube_name)spectra = []labels = []for cid in body.clump_ids:spec = extract_clump_spectrum(dc, store.clumps, cid)spectra.append(spec)c = store.clumps.get_clump_by_id(cid)labels.append(f"Clump {cid} ({c.component})")figure = create_multi_sed_figure(spectra, labels)6 unmodified lines789101112131 unmodified line1516171819202119 unmodified lines414243444546474849505152533 unmodified lines5758596061626364656667686970717273747576777879808182838485868788899091929394959697988 unmodified lines1071081091101111121131141151161172 unmodified lines1201211221231241251261274 unmodified lines1321331341351361371381391403 unmodified lines1441451461471481491501511521531541551561571581591601611621632 unmodified lines1661671681691701711721731741751761771781791801811821831841851861871889 unmodified lines1981992002012022032042052062072082091 unmodified line21121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626716 unmodified lines2842852862872882892902912922932942952962972982993003013023033043053063076 unmodified linesfrom starlette.responses import HTMLResponse, Responsefrom jellyscope.config import NIRCAM_WAVELENGTHSfrom jellyscope.data.data_store import Dataset, DataStorefrom jellyscope.model.schemas import (ClumpDetailResponse,ClumpListItem,1 unmodified lineCompareRequest,CompareResponse,DatacubesResponse,DatasetsResponse,FilterInfo,FiltersResponse,PixelClumpResponse,19 unmodified linesreturn DataStore.get()def _dataset(name: str) -> Dataset:try:return _store().get_dataset(name)except KeyError as e:raise HTTPException(status_code=404, detail=str(e)) from edef _require_sed_enabled(request: Request) -> None:if not request.app.state.config.enable_sed:raise HTTPException(status_code=404, detail="SED disabled")3 unmodified lines@router.get("/", response_class=HTMLResponse)def index(request: Request) -> Response:store = _store()default_dataset = store.default_datasetdefault_ds = store.get_dataset(default_dataset)# Pick first available datacube of the default dataset for the initial UI.default_datacube = default_ds.list_datacubes()[0]return request.app.state.templates.TemplateResponse( # type: ignore[no-any-return]request,"index.html",{"datasets": store.list_datasets(),"default_dataset": default_dataset,"default_datacube": default_datacube,"datacubes": default_ds.list_datacubes(),"filters": default_ds.get_datacube(default_datacube).filter_names,"wavelengths": NIRCAM_WAVELENGTHS,"enable_sed": request.app.state.config.enable_sed,},)# Datasets.@router.get("/api/datasets", response_model=DatasetsResponse)def list_datasets() -> DatasetsResponse:store = _store()return DatasetsResponse(datasets=store.list_datasets(), default=store.default_dataset)# Datacube info.@router.get("/api/datasets/{dataset_name}/datacubes", response_model=DatacubesResponse)def list_datacubes(dataset_name: str) -> DatacubesResponse:ds = _dataset(dataset_name)return DatacubesResponse(datacubes=ds.list_datacubes())@router.get("/api/datasets/{dataset_name}/filters/{datacube_name}", response_model=FiltersResponse)def list_filters(dataset_name: str, datacube_name: str) -> FiltersResponse:dc = _dataset(dataset_name).get_datacube(datacube_name)filters: list[FilterInfo] = []for i, name in enumerate(dc.filter_names):8 unmodified lines# Image viewer.@router.get("/api/datasets/{dataset_name}/viewer/{datacube_name}/rgb", response_model=RGBViewerResponse)def get_rgb_viewer_figure(dataset_name: str,datacube_name: str,r: Annotated[int, Query(description="Red channel filter index")],g: Annotated[int, Query(description="Green channel filter index")],2 unmodified linesmethod: Annotated[Literal["percentile_asinh", "lupton"], Query()] = "percentile_asinh",softening: Annotated[float, Query()] = 8.0,) -> RGBViewerResponse:ds = _dataset(dataset_name)dc = ds.get_datacube(datacube_name)n_ch = dc.n_channelsfor label, idx in [("r", r), ("g", g), ("b", b)]:if not 0 <= idx < n_ch:4 unmodified linesselected_ids: list[int] = ([int(i) for i in selected.split(",") if i.strip()] if selected else [])assert ds.clumps is not Nonefigure: dict[str, Any] = build_rgb_figure(dc, r, g, b, ds.clumps, selected_ids, method=method, softening=softening)return RGBViewerResponse(figure=figure,3 unmodified lines)@router.get("/api/datasets/{dataset_name}/viewer/{datacube_name}/{channel_index}",response_model=ViewerResponse,)def get_viewer_figure(dataset_name: str,datacube_name: str,channel_index: int,selected: Annotated[str, Query()] = "",colorscale: Annotated[str, Query()] = "Viridis",stretch: Annotated[Literal["log", "lupton_asinh", "power"], Query()] = "log",) -> ViewerResponse:ds = _dataset(dataset_name)dc = ds.get_datacube(datacube_name)if not 0 <= channel_index < dc.n_channels:raise HTTPException(status_code=400,2 unmodified linesselected_ids: list[int] = ([int(i) for i in selected.split(",") if i.strip()] if selected else [])assert ds.clumps is not Nonefigure: dict[str, Any] = build_viewer_figure(dc, channel_index, ds.clumps, selected_ids, colorscale, stretch)return ViewerResponse(figure=figure, filter_name=dc.filter_names[channel_index])# Clumps.@router.get("/api/datasets/{dataset_name}/clumps", response_model=ClumpsListResponse)def list_clumps(dataset_name: str,component: Annotated[str | None, Query()] = None,inside: Annotated[bool | None, Query()] = None,) -> ClumpsListResponse:ds = _dataset(dataset_name)assert ds.clumps is not Noneclumps = ds.clumps.filter_clumps(component, inside)return ClumpsListResponse(clumps=[ClumpListItem(9 unmodified lines)@router.get("/api/datasets/{dataset_name}/clumps/{clump_id}", response_model=ClumpDetailResponse)def get_clump(dataset_name: str, clump_id: int) -> ClumpDetailResponse:ds = _dataset(dataset_name)assert ds.clumps is not Noneclump = ds.clumps.get_clump_by_id(clump_id)boundary = ds.clumps.get_boundary_coords(clump_id)props = format_clump_properties(clump)return ClumpDetailResponse(properties=props,1 unmodified line)@router.get("/api/datasets/{dataset_name}/clumps/{clump_id}/spectrum/{datacube_name}",response_model=SpectrumResponse,)def get_clump_spectrum(dataset_name: str, clump_id: int, datacube_name: str, request: Request) -> SpectrumResponse:_require_sed_enabled(request)ds = _dataset(dataset_name)dc = ds.get_datacube(datacube_name)assert ds.clumps is not Nonespectrum = extract_clump_spectrum(dc, ds.clumps, clump_id)figure = create_sed_figure(spectrum)return SpectrumResponse(spectrum=spectrum, figure=figure)# Pixel Interaction.@router.get("/api/datasets/{dataset_name}/pixel/{x}/{y}/clump", response_model=PixelClumpResponse)def get_pixel_clump(dataset_name: str, x: int, y: int) -> PixelClumpResponse:ds = _dataset(dataset_name)assert ds.clumps is not Nonecid = ds.clumps.get_clump_id_at_pixel(x, y)return PixelClumpResponse(clump_id=cid)@router.get("/api/datasets/{dataset_name}/pixel/{x}/{y}/spectrum/{datacube_name}",response_model=SpectrumResponse,)def get_pixel_spectrum(dataset_name: str, x: int, y: int, datacube_name: str, request: Request) -> SpectrumResponse:_require_sed_enabled(request)ds = _dataset(dataset_name)dc = ds.get_datacube(datacube_name)spectrum = extract_pixel_spectrum(dc, x, y)figure = create_sed_figure(spectrum)return SpectrumResponse(spectrum=spectrum, figure=figure)# Region selection.@router.post("/api/datasets/{dataset_name}/region/spectrum/{datacube_name}",response_model=SpectrumResponse,)def get_region_spectrum(dataset_name: str, datacube_name: str, body: RegionRequest, request: Request) -> SpectrumResponse:_require_sed_enabled(request)ds = _dataset(dataset_name)dc = ds.get_datacube(datacube_name)mask = np.zeros(dc.spatial_shape, dtype=bool)16 unmodified lines# Multi-clump comparison.@router.post("/api/datasets/{dataset_name}/compare/spectrum/{datacube_name}",response_model=CompareResponse,)def compare_spectra(dataset_name: str, datacube_name: str, body: CompareRequest, request: Request) -> CompareResponse:_require_sed_enabled(request)ds = _dataset(dataset_name)dc = ds.get_datacube(datacube_name)assert ds.clumps is not Nonespectra = []labels = []for cid in body.clump_ids:spec = extract_clump_spectrum(dc, ds.clumps, cid)spectra.append(spec)c = ds.clumps.get_clump_by_id(cid)labels.append(f"Clump {cid} ({c.component})")figure = create_multi_sed_figure(spectra, labels)
13 unmodified lines1415161718192021222324259 unmodified lines35363738394023 unmodified lines646566676869709 unmodified lines808182838485868788899091927 unmodified lines10010110210310410510615 unmodified lines1221231241251261271281 unmodified line130131132133134135161 unmodified lines29729829930030130230330430522 unmodified lines32832933033133233333440 unmodified lines37537637737837938038138238323 unmodified lines40740840941041141241314 unmodified lines42842943043143243343446 unmodified lines48148248348448548648748812 unmodified lines5015025035045055065079 unmodified lines51751851952052152252313 unmodified linesconst DEFAULT_RGB_FILTERS = {r: "F200W", g: "F115W", b: "F090W"};function defaultRgbIndex(filterName, fallback) {const idx = FILTERS.indexOf(filterName);return idx >= 0 ? idx : fallback;}const state = {datacube: "nircam",channel: 7, // F200W defaultselectedClumps: new Set(),colorscale: "Viridis",9 unmodified linesrgbMethod: "percentile_asinh",};const plotlyConfig = {responsive: true,displayModeBar: true,23 unmodified linesconst defaults = [state.rgbR, state.rgbG, state.rgbB];selects.forEach((id, idx) => {const sel = document.getElementById(id);FILTERS.forEach((name, i) => {const opt = document.createElement("option");opt.value = i;const wl = WAVELENGTHS[name];9 unmodified lines// If current state.rgbG / rgbB violate the constraint, auto-pick the// next-longest valid filter beneath the upstream one.function updateRGBFilterOptions() {const wlOf = (i) => WAVELENGTHS[FILTERS[i]] ?? -Infinity;// G must have λ < λ_R; if violated, pick the longest filter still < λ_R.if (wlOf(state.rgbG) >= wlOf(state.rgbR)) {let best = -1;let bestWl = -Infinity;FILTERS.forEach((name, i) => {const wl = WAVELENGTHS[name] ?? -Infinity;if (wl < wlOf(state.rgbR) && wl > bestWl) {best = i;7 unmodified linesif (wlOf(state.rgbB) >= wlOf(state.rgbG)) {let best = -1;let bestWl = -Infinity;FILTERS.forEach((name, i) => {const wl = WAVELENGTHS[name] ?? -Infinity;if (wl < wlOf(state.rgbG) && wl > bestWl) {best = i;15 unmodified linesif (!sel) continue;const max = limits[id];for (const opt of sel.options) {const wl = WAVELENGTHS[FILTERS[parseInt(opt.value)]] ?? -Infinity;opt.disabled = !(wl < max);}sel.value = String(current[id]);1 unmodified line}function setupEventListeners() {document.getElementById("datacube-select").addEventListener("change", (e) => {state.datacube = e.target.value;renderViewer();161 unmodified linesfunction updateFilterLabel() {const label = document.getElementById("filter-label");if (state.viewMode === "rgb") {label.textContent = `R:${FILTERS[state.rgbR]} G:${FILTERS[state.rgbG]} B:${FILTERS[state.rgbB]}`;} else {const name = FILTERS[state.channel];const wl = WAVELENGTHS[name];label.textContent = wl ? `${name} (${wl} µm)` : name;}22 unmodified lines// Clump List.async function loadClumpList() {const filter = document.getElementById("clump-filter");let url = "/api/clumps";if (filter.value) url += `?component=${filter.value}`;const resp = await fetch(url);40 unmodified lineslet url;if (state.viewMode === "rgb") {url = `/api/viewer/${state.datacube}/rgb?r=${state.rgbR}&g=${state.rgbG}&b=${state.rgbB}&selected=${selectedStr}&method=${state.rgbMethod}&softening=${state.rgbQ}`;} else {url = `/api/viewer/${state.datacube}/${state.channel}?selected=${selectedStr}&colorscale=${state.colorscale}&stretch=${state.stretch}`;}const resp = await fetch(url);23 unmodified linesconst y = Math.round(point.y);// Check if pixel belongs to a clump.const resp = await fetch(`/api/pixel/${x}/${y}/clump`);const data = await resp.json();if (data.clump_id !== null) {14 unmodified linesif (pixels.length === 0) return;const myGen = ++spectrumGen;const resp = await fetch(`/api/region/spectrum/${state.datacube}`, {method: "POST",headers: {"Content-Type": "application/json"},body: JSON.stringify({pixels}),46 unmodified linesasync function showClumpDetails(clumpId, gen) {const [propsResp, specResp] = await Promise.all([fetch(`/api/clumps/${clumpId}`),fetch(`/api/clumps/${clumpId}/spectrum/${state.datacube}`),]);if (gen !== undefined && gen !== spectrumGen) return;12 unmodified lines}async function showMultiClumpComparison(clumpIds, gen) {const resp = await fetch(`/api/compare/spectrum/${state.datacube}`, {method: "POST",headers: {"Content-Type": "application/json"},body: JSON.stringify({clump_ids: clumpIds}),9 unmodified lines}async function showPixelSpectrum(x, y, gen) {const resp = await fetch(`/api/pixel/${x}/${y}/spectrum/${state.datacube}`);if (gen !== undefined && gen !== spectrumGen) return;const data = await resp.json();await renderSpectrum(data.figure, gen);13 unmodified lines141516171819202122232425262728293031329 unmodified lines4243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511623 unmodified lines1401411421431441451469 unmodified lines1561571581591601611621631641651661671687 unmodified lines17617717817918018118215 unmodified lines1981992002012022032041 unmodified line206207208209210211212213214215216161 unmodified lines37837938038138238338438538622 unmodified lines40941041141241341441540 unmodified lines45645745845946046146246346423 unmodified lines48848949049149249349414 unmodified lines50951051151251351451546 unmodified lines56256356456556656756856912 unmodified lines5825835845855865875889 unmodified lines59859960060160260360413 unmodified linesconst DEFAULT_RGB_FILTERS = {r: "F200W", g: "F115W", b: "F090W"};function defaultRgbIndex(filterName, fallback) {const idx = currentFilters.indexOf(filterName);return idx >= 0 ? idx : fallback;}// Filter state is recomputed when the dataset/datacube changes — keep// the active filter list in module scope so the rest of the code can// reference it without rereading the DOM. Initialized from the// server-injected FILTERS constant, refreshed via the filters endpoint.let currentFilters = FILTERS.slice();const state = {dataset: DEFAULT_DATASET,datacube: DEFAULT_DATACUBE,channel: 7, // F200W defaultselectedClumps: new Set(),colorscale: "Viridis",9 unmodified linesrgbMethod: "percentile_asinh",};function dsBase() {return `/api/datasets/${encodeURIComponent(state.dataset)}`;}// Refetch datacubes + filters for the active dataset and rebuild// dependent UI. Clears selection and re-renders viewer + clump list.async function onDatasetChanged() {const dcResp = await fetch(`${dsBase()}/datacubes`);const dcData = await dcResp.json();const datacubes = dcData.datacubes;const dcSel = document.getElementById("datacube-select");dcSel.innerHTML = "";for (const dc of datacubes) {const opt = document.createElement("option");opt.value = dc;opt.textContent = dc;dcSel.appendChild(opt);}state.datacube = datacubes.includes(state.datacube) ? state.datacube : datacubes[0];dcSel.value = state.datacube;const fResp = await fetch(`${dsBase()}/filters/${state.datacube}`);const fData = await fResp.json();currentFilters = fData.filters.map((f) => f.name);// Slider bounds may have changed — clamp channel.const slider = document.getElementById("filter-slider");slider.max = String(Math.max(0, currentFilters.length - 1));if (state.channel >= currentFilters.length) state.channel = 0;slider.value = String(state.channel);// Rebuild RGB selects against new filter list.rebuildRGBSelects();// Stale selection ids are meaningless across datasets.state.selectedClumps.clear();updateFilterLabel();await loadClumpList();await renderViewer();}function rebuildRGBSelects() {const selects = ["rgb-r", "rgb-g", "rgb-b"];// Re-derive defaults against the currently-loaded filter set.state.rgbR = defaultRgbIndexFrom(currentFilters, DEFAULT_RGB_FILTERS.r, currentFilters.length - 1);state.rgbG = defaultRgbIndexFrom(currentFilters, DEFAULT_RGB_FILTERS.g, Math.floor(currentFilters.length / 2));state.rgbB = defaultRgbIndexFrom(currentFilters, DEFAULT_RGB_FILTERS.b, 0);const defaults = [state.rgbR, state.rgbG, state.rgbB];selects.forEach((id, idx) => {const sel = document.getElementById(id);sel.innerHTML = "";currentFilters.forEach((name, i) => {const opt = document.createElement("option");opt.value = i;const wl = WAVELENGTHS[name];opt.textContent = wl ? `${name} (${wl} µm)` : name;if (i === defaults[idx]) opt.selected = true;sel.appendChild(opt);});});updateRGBFilterOptions();}function defaultRgbIndexFrom(filterList, filterName, fallback) {const idx = filterList.indexOf(filterName);return idx >= 0 ? idx : fallback;}const plotlyConfig = {responsive: true,displayModeBar: true,23 unmodified linesconst defaults = [state.rgbR, state.rgbG, state.rgbB];selects.forEach((id, idx) => {const sel = document.getElementById(id);currentFilters.forEach((name, i) => {const opt = document.createElement("option");opt.value = i;const wl = WAVELENGTHS[name];9 unmodified lines// If current state.rgbG / rgbB violate the constraint, auto-pick the// next-longest valid filter beneath the upstream one.function updateRGBFilterOptions() {const wlOf = (i) => WAVELENGTHS[currentFilters[i]] ?? -Infinity;// G must have λ < λ_R; if violated, pick the longest filter still < λ_R.if (wlOf(state.rgbG) >= wlOf(state.rgbR)) {let best = -1;let bestWl = -Infinity;currentFilters.forEach((name, i) => {const wl = WAVELENGTHS[name] ?? -Infinity;if (wl < wlOf(state.rgbR) && wl > bestWl) {best = i;7 unmodified linesif (wlOf(state.rgbB) >= wlOf(state.rgbG)) {let best = -1;let bestWl = -Infinity;currentFilters.forEach((name, i) => {const wl = WAVELENGTHS[name] ?? -Infinity;if (wl < wlOf(state.rgbG) && wl > bestWl) {best = i;15 unmodified linesif (!sel) continue;const max = limits[id];for (const opt of sel.options) {const wl = WAVELENGTHS[currentFilters[parseInt(opt.value)]] ?? -Infinity;opt.disabled = !(wl < max);}sel.value = String(current[id]);1 unmodified line}function setupEventListeners() {document.getElementById("dataset-select").addEventListener("change", async (e) => {state.dataset = e.target.value;await onDatasetChanged();});document.getElementById("datacube-select").addEventListener("change", (e) => {state.datacube = e.target.value;renderViewer();161 unmodified linesfunction updateFilterLabel() {const label = document.getElementById("filter-label");if (state.viewMode === "rgb") {label.textContent = `R:${currentFilters[state.rgbR]} G:${currentFilters[state.rgbG]} B:${currentFilters[state.rgbB]}`;} else {const name = currentFilters[state.channel];const wl = WAVELENGTHS[name];label.textContent = wl ? `${name} (${wl} µm)` : name;}22 unmodified lines// Clump List.async function loadClumpList() {const filter = document.getElementById("clump-filter");let url = `${dsBase()}/clumps`;if (filter.value) url += `?component=${filter.value}`;const resp = await fetch(url);40 unmodified lineslet url;if (state.viewMode === "rgb") {url = `${dsBase()}/viewer/${state.datacube}/rgb?r=${state.rgbR}&g=${state.rgbG}&b=${state.rgbB}&selected=${selectedStr}&method=${state.rgbMethod}&softening=${state.rgbQ}`;} else {url = `${dsBase()}/viewer/${state.datacube}/${state.channel}?selected=${selectedStr}&colorscale=${state.colorscale}&stretch=${state.stretch}`;}const resp = await fetch(url);23 unmodified linesconst y = Math.round(point.y);// Check if pixel belongs to a clump.const resp = await fetch(`${dsBase()}/pixel/${x}/${y}/clump`);const data = await resp.json();if (data.clump_id !== null) {14 unmodified linesif (pixels.length === 0) return;const myGen = ++spectrumGen;const resp = await fetch(`${dsBase()}/region/spectrum/${state.datacube}`, {method: "POST",headers: {"Content-Type": "application/json"},body: JSON.stringify({pixels}),46 unmodified linesasync function showClumpDetails(clumpId, gen) {const [propsResp, specResp] = await Promise.all([fetch(`${dsBase()}/clumps/${clumpId}`),fetch(`${dsBase()}/clumps/${clumpId}/spectrum/${state.datacube}`),]);if (gen !== undefined && gen !== spectrumGen) return;12 unmodified lines}async function showMultiClumpComparison(clumpIds, gen) {const resp = await fetch(`${dsBase()}/compare/spectrum/${state.datacube}`, {method: "POST",headers: {"Content-Type": "application/json"},body: JSON.stringify({clump_ids: clumpIds}),9 unmodified lines}async function showPixelSpectrum(x, y, gen) {const resp = await fetch(`${dsBase()}/pixel/${x}/${y}/spectrum/${state.datacube}`);if (gen !== undefined && gen !== spectrumGen) return;const data = await resp.json();await renderSpectrum(data.figure, gen);
17 unmodified lines1819202122232425262798 unmodified lines12612712812913013117 unmodified lines<!-- Left: Galaxy Viewer --><section id="viewer-section"><div id="viewer-controls"><label for="datacube-select">Datacube:</label><select id="datacube-select">{% for dc in datacubes %}<option value="{{ dc }}">{{ dc }}</option>{% endfor %}</select>98 unmodified lines</main><script>const FILTERS = {{ filters | tojson | safe }};const WAVELENGTHS = {{ wavelengths | tojson | safe }};const FEATURES = { sed: {{ enable_sed | tojson }} };17 unmodified lines181920212223242526272829303132333498 unmodified lines13313413513613713813914014117 unmodified lines<!-- Left: Galaxy Viewer --><section id="viewer-section"><div id="viewer-controls"><label for="dataset-select">Dataset:</label><select id="dataset-select">{% for d in datasets %}<option value="{{ d }}" {% if d == default_dataset %}selected{% endif %}>{{ d }}</option>{% endfor %}</select><label for="datacube-select">Datacube:</label><select id="datacube-select">{% for dc in datacubes %}<option value="{{ dc }}" {% if dc == default_datacube %}selected{% endif %}>{{ dc }}</option>{% endfor %}</select>98 unmodified lines</main><script>const DATASETS = {{ datasets | tojson | safe }};const DEFAULT_DATASET = {{ default_dataset | tojson | safe }};const DEFAULT_DATACUBE = {{ default_datacube | tojson | safe }};const FILTERS = {{ filters | tojson | safe }};const WAVELENGTHS = {{ wavelengths | tojson | safe }};const FEATURES = { sed: {{ enable_sed | tojson }} };
13 unmodified lines141516171819202122232425261 unmodified line2829303132333435363738394041424344454647484950515253545556571 unmodified line59606162636465662 unmodified lines6970717273747576777879808182838485868788899035 unmodified lines12612712812913013113213313413513613713813913 unmodified lines@pytest.fixture(autouse=True)def setup(self, store: DataStore):self.store: DataStore = storedef test_clump_count(self):assert len(self.store.clumps.list_clumps()) == 23def test_clump_properties(self):cid: int = 0c: ClumpProperties = self.store.clumps.get_clump_by_id(cid)assert c.clump_id == cidassert c.area_pix == 121assert c.component == "outside"1 unmodified linedef test_pixel_mask(self):cid: int = 0c: ClumpProperties = self.store.clumps.get_clump_by_id(cid)mask: np.ndarray = self.store.clumps.get_pixel_mask(cid)assert mask.shape == (221, 172)assert mask.dtype == boolassert mask.sum() == c.area_pixdef test_clump_at_pixel(self):# Clump 0 centroid is near (71.8, 19.9)cid: int = self.store.clumps.get_clump_id_at_pixel(72, 20)assert cid == 0def test_no_clump_at_empty_pixel(self):cid: int = self.store.clumps.get_clump_id_at_pixel(0, 0)assert cid is Nonedef test_boundary_coords(self):boundary: list[tuple[float, float]] = self.store.clumps.get_boundary_coords(0)assert len(boundary) >= 3# start == endassert boundary[0] == boundary[-1]def test_filter_by_component(self):disk: list[ClumpProperties] = self.store.clumps.filter_clumps(component="disk")outside: list[ClumpProperties] = self.store.clumps.filter_clumps(component="outside")for c in disk:logging.info(c.component)assert all(c.component == "disk" for c in disk)1 unmodified lineassert len(disk) + len(outside) == 23def test_filter_by_inside(self):inside: list[ClumpProperties] = self.store.clumps.filter_clumps(inside=True)outside: list[ClumpProperties] = self.store.clumps.filter_clumps(inside=False)for c in inside:logging.info(c.component)assert all(c.inside is True for c in inside)2 unmodified linesdef test_combined_mask(self):cid1, cid2 = 0, 1c1: ClumpProperties = self.store.clumps.get_clump_by_id(cid1)c2: ClumpProperties = self.store.clumps.get_clump_by_id(cid2)mask: np.ndarray = self.store.clumps.get_combined_mask([cid1, cid2])assert mask.sum() == c1.area_pix + c2.area_pixdef test_pixel_out_of_bounds(self):assert self.store.clumps.get_clump_id_at_pixel(-1, -1) is Noneassert self.store.clumps.get_clump_id_at_pixel(9999, 9999) is Nonedef test_boundary_cache_hit(self):b1 = self.store.clumps.get_boundary_coords(0)b2 = self.store.clumps.get_boundary_coords(0)assert b1 is b2def test_get_all_boundaries(self):boundaries = self.store.clumps.get_all_boundaries()assert len(boundaries.keys()) == 23def test_small_clump_boundary(self, tmp_path):35 unmodified linesfrom scipy.spatial import QhullError# Clear cache to recompute.self.store.clumps._boundaries.pop(0, None)with patch("jellyscope.data.model.clumps.ConvexHull", side_effect=QhullError("mock")):boundary = self.store.clumps.get_boundary_coords(0)assert len(boundary) >= 2assert boundary[0] == boundary[-1]def test_to_properties_list(self):props: list[dict] = self.store.clumps.to_properties_list()assert len(props) == 23assert all(isinstance(p, dict) for p in props)keys = {13 unmodified lines14151617181920212223242526271 unmodified line2930313233343536373839404142434445464748495051525354555657581 unmodified line60616263646566672 unmodified lines7071727374757677787980818283848586878889909135 unmodified lines12712812913013113213313413513613713813914013 unmodified lines@pytest.fixture(autouse=True)def setup(self, store: DataStore):self.store: DataStore = storeself.clumps = store.get_dataset("A2744_F1228").clumpsdef test_clump_count(self):assert len(self.clumps.list_clumps()) == 23def test_clump_properties(self):cid: int = 0c: ClumpProperties = self.clumps.get_clump_by_id(cid)assert c.clump_id == cidassert c.area_pix == 121assert c.component == "outside"1 unmodified linedef test_pixel_mask(self):cid: int = 0c: ClumpProperties = self.clumps.get_clump_by_id(cid)mask: np.ndarray = self.clumps.get_pixel_mask(cid)assert mask.shape == (221, 172)assert mask.dtype == boolassert mask.sum() == c.area_pixdef test_clump_at_pixel(self):# Clump 0 centroid is near (71.8, 19.9)cid: int = self.clumps.get_clump_id_at_pixel(72, 20)assert cid == 0def test_no_clump_at_empty_pixel(self):cid: int = self.clumps.get_clump_id_at_pixel(0, 0)assert cid is Nonedef test_boundary_coords(self):boundary: list[tuple[float, float]] = self.clumps.get_boundary_coords(0)assert len(boundary) >= 3# start == endassert boundary[0] == boundary[-1]def test_filter_by_component(self):disk: list[ClumpProperties] = self.clumps.filter_clumps(component="disk")outside: list[ClumpProperties] = self.clumps.filter_clumps(component="outside")for c in disk:logging.info(c.component)assert all(c.component == "disk" for c in disk)1 unmodified lineassert len(disk) + len(outside) == 23def test_filter_by_inside(self):inside: list[ClumpProperties] = self.clumps.filter_clumps(inside=True)outside: list[ClumpProperties] = self.clumps.filter_clumps(inside=False)for c in inside:logging.info(c.component)assert all(c.inside is True for c in inside)2 unmodified linesdef test_combined_mask(self):cid1, cid2 = 0, 1c1: ClumpProperties = self.clumps.get_clump_by_id(cid1)c2: ClumpProperties = self.clumps.get_clump_by_id(cid2)mask: np.ndarray = self.clumps.get_combined_mask([cid1, cid2])assert mask.sum() == c1.area_pix + c2.area_pixdef test_pixel_out_of_bounds(self):assert self.clumps.get_clump_id_at_pixel(-1, -1) is Noneassert self.clumps.get_clump_id_at_pixel(9999, 9999) is Nonedef test_boundary_cache_hit(self):b1 = self.clumps.get_boundary_coords(0)b2 = self.clumps.get_boundary_coords(0)assert b1 is b2def test_get_all_boundaries(self):boundaries = self.clumps.get_all_boundaries()assert len(boundaries.keys()) == 23def test_small_clump_boundary(self, tmp_path):35 unmodified linesfrom scipy.spatial import QhullError# Clear cache to recompute.self.clumps._boundaries.pop(0, None)with patch("jellyscope.data.model.clumps.ConvexHull", side_effect=QhullError("mock")):boundary = self.clumps.get_boundary_coords(0)assert len(boundary) >= 2assert boundary[0] == boundary[-1]def test_to_properties_list(self):props: list[dict] = self.clumps.to_properties_list()assert len(props) == 23assert all(isinstance(p, dict) for p in props)keys = {
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687"""Tests for the multi-dataset DataStore."""
from pathlib import Path
import pytest
from jellyscope.config import JellyscopeConfigfrom jellyscope.data.data_store import DEFAULT_DATASET, NIRCAM, NIRCAM_MATCHED, DataStore
@pytest.fixture(autouse=True)def _reset_store(): DataStore.reset() yield DataStore.reset()
def test_discovers_subdirectory_datasets(config): store = DataStore.get(config) names = store.list_datasets() assert "A2744_F1228" in names assert "jellyfish_1" in names assert "jellyfish_5" in names assert store.default_dataset in names
def test_dataset_with_only_matched_cube_loads(config): store = DataStore.get(config) ds = store.get_dataset("jellyfish_1") assert NIRCAM_MATCHED in ds.datacubes assert NIRCAM not in ds.datacubes assert ds.clumps is not None
def test_dataset_with_both_cubes_loads(config): store = DataStore.get(config) ds = store.get_dataset("A2744_F1228") assert NIRCAM in ds.datacubes assert NIRCAM_MATCHED in ds.datacubes
def test_unknown_dataset_raises(config): store = DataStore.get(config) with pytest.raises(KeyError): store.get_dataset("nope")
def test_empty_data_dir_raises(tmp_path: Path): cfg = JellyscopeConfig(data_dir=tmp_path) with pytest.raises(FileNotFoundError): DataStore(cfg)
def test_missing_data_dir_raises(tmp_path: Path): cfg = JellyscopeConfig(data_dir=tmp_path / "missing") with pytest.raises(FileNotFoundError): DataStore(cfg)
def test_subdir_missing_csvs_skipped(tmp_path: Path): # Subdir with CSVs but no cube -> skipped (cube required first), no datasets -> error. sub = tmp_path / "broken" sub.mkdir() (sub / "clumps_properties.csv").write_text("") (sub / "clumps_pixels.csv").write_text("") cfg = JellyscopeConfig(data_dir=tmp_path) with pytest.raises(FileNotFoundError): DataStore(cfg)
def test_flat_layout_fallback_uses_default_name(tmp_path: Path, monkeypatch): # Build a tmp dir mirroring the project's flat data dir by symlinking # the necessary files from the real data dir's A2744_F1228 subdir. src = Path("data/A2744_F1228") if not src.exists(): pytest.skip("real dataset not available") for fname in [ "cut_datacube_nircam.fits", "cut_datacube_nircam_matched.fits", "clumps_properties.csv", "clumps_pixels.csv", ]: (tmp_path / fname).symlink_to((src / fname).resolve())
cfg = JellyscopeConfig(data_dir=tmp_path) store = DataStore(cfg) assert store.list_datasets() == [DEFAULT_DATASET]14 unmodified lines1516171819202126 unmodified lines484950515253545533 unmodified lines8990919293949596979814 unmodified lines@pytest.fixture(autouse=True)def setup(self, store: DataStore):self.store: DataStore = storeself.dc: DataCube = store.get_datacube("nircam")def test_datacube_loads_shape(self):assert self.dc.shape == (20, 221, 172)26 unmodified linesassert all(isinstance(v, float | type(None)) for v in json[0])def test_both_datacubes_available(self):assert "nircam" in self.store.list_datacubes()assert "nircam_matched" in self.store.list_datacubes()def test_get_slice_out_of_range(self):with pytest.raises(IndexError, match="out of range"):33 unmodified linesdef test_get_datacube_unknown_name(self):with pytest.raises(KeyError, match="Unknown datacube"):self.store.get_datacube("nonexistent")def test_get_datacubes_returns_dict(self):cubes = self.store.get_datacubes()assert isinstance(cubes, dict)assert "nircam" in cubesassert "nircam_matched" in cubes14 unmodified lines151617181920212226 unmodified lines495051525354555633 unmodified lines9091929394959697989914 unmodified lines@pytest.fixture(autouse=True)def setup(self, store: DataStore):self.store: DataStore = storeself.ds = store.get_dataset("A2744_F1228")self.dc: DataCube = self.ds.get_datacube("nircam")def test_datacube_loads_shape(self):assert self.dc.shape == (20, 221, 172)26 unmodified linesassert all(isinstance(v, float | type(None)) for v in json[0])def test_both_datacubes_available(self):assert "nircam" in self.ds.list_datacubes()assert "nircam_matched" in self.ds.list_datacubes()def test_get_slice_out_of_range(self):with pytest.raises(IndexError, match="out of range"):33 unmodified linesdef test_get_datacube_unknown_name(self):with pytest.raises(KeyError, match="Unknown datacube"):self.ds.get_datacube("nonexistent")def test_get_datacubes_returns_dict(self):cubes = self.ds.datacubesassert isinstance(cubes, dict)assert "nircam" in cubesassert "nircam_matched" in cubes
7 unmodified lines8910111213141 unmodified line16171819202122233 unmodified lines272829303132334 unmodified lines383940414243447 unmodified linesdef test_pixel_spectrum(store):dc = store.get_datacube("nircam")result = extract_pixel_spectrum(dc, 80, 100)assert len(result["fluxes"]) == 20assert len(result["wavelengths"]) == 201 unmodified linedef test_clump_spectrum(store):dc = store.get_datacube("nircam")result = extract_clump_spectrum(dc, store.clumps, 0)assert len(result["mean_flux"]) == 20assert len(result["std_flux"]) == 20assert result["n_pixels"] == 1213 unmodified linesdef test_region_spectrum_with_mask(store):import numpy as npdc = store.get_datacube("nircam")mask = np.zeros(dc.spatial_shape, dtype=bool)mask[50:60, 50:60] = Trueresult = extract_region_spectrum(dc, mask)4 unmodified linesdef test_empty_region_spectrum(store):import numpy as npdc = store.get_datacube("nircam")mask = np.zeros(dc.spatial_shape, dtype=bool)result = extract_region_spectrum(dc, mask)assert result["n_pixels"] == 07 unmodified lines891011121314151 unmodified line1718192021222324253 unmodified lines29303132333435364 unmodified lines41424344454647487 unmodified linesdef test_pixel_spectrum(store):ds = store.get_dataset("A2744_F1228")dc = ds.get_datacube("nircam")result = extract_pixel_spectrum(dc, 80, 100)assert len(result["fluxes"]) == 20assert len(result["wavelengths"]) == 201 unmodified linedef test_clump_spectrum(store):ds = store.get_dataset("A2744_F1228")dc = ds.get_datacube("nircam")result = extract_clump_spectrum(dc, ds.clumps, 0)assert len(result["mean_flux"]) == 20assert len(result["std_flux"]) == 20assert result["n_pixels"] == 1213 unmodified linesdef test_region_spectrum_with_mask(store):import numpy as npds = store.get_dataset("A2744_F1228")dc = ds.get_datacube("nircam")mask = np.zeros(dc.spatial_shape, dtype=bool)mask[50:60, 50:60] = Trueresult = extract_region_spectrum(dc, mask)4 unmodified linesdef test_empty_region_spectrum(store):import numpy as npds = store.get_dataset("A2744_F1228")dc = ds.get_datacube("nircam")mask = np.zeros(dc.spatial_shape, dtype=bool)result = extract_region_spectrum(dc, mask)assert result["n_pixels"] == 0
5 unmodified lines67891011128 unmodified lines212223242526276 unmodified lines34353637383940415 unmodified linesdef test_region_stats_normal(store):dc = store.get_datacube("nircam")mask = np.zeros(dc.spatial_shape, dtype=bool)mask[50:60, 50:60] = Truestats = compute_region_stats(dc, mask, 0)8 unmodified linesdef test_region_stats_empty(store):dc = store.get_datacube("nircam")mask = np.zeros(dc.spatial_shape, dtype=bool)stats = compute_region_stats(dc, mask, 0)assert stats["n_pixels"] == 06 unmodified linesdef test_clump_summary(store):dc = store.get_datacube("nircam")summary = compute_clump_summary(dc, store.clumps, 0)assert summary["clump_id"] == 0assert summary["component"] == "outside"assert summary["area_pix"] == 1215 unmodified lines6789101112138 unmodified lines22232425262728296 unmodified lines3637383940414243445 unmodified linesdef test_region_stats_normal(store):ds = store.get_dataset("A2744_F1228")dc = ds.get_datacube("nircam")mask = np.zeros(dc.spatial_shape, dtype=bool)mask[50:60, 50:60] = Truestats = compute_region_stats(dc, mask, 0)8 unmodified linesdef test_region_stats_empty(store):ds = store.get_dataset("A2744_F1228")dc = ds.get_datacube("nircam")mask = np.zeros(dc.spatial_shape, dtype=bool)stats = compute_region_stats(dc, mask, 0)assert stats["n_pixels"] == 06 unmodified linesdef test_clump_summary(store):ds = store.get_dataset("A2744_F1228")dc = ds.get_datacube("nircam")summary = compute_clump_summary(dc, ds.clumps, 0)assert summary["clump_id"] == 0assert summary["component"] == "outside"assert summary["area_pix"] == 121
12345678143 unmodified lines152153154"""Tests for the RGB composite algorithms."""import numpy as npfrom jellyscope.visualization.rgb_composite import (lupton_rgb_composite,percentile_asinh_composite,)143 unmodified linesboosted = percentile_asinh_composite(r, g, b, weights=(2.0, 1.0, 1.0))# Boosting R by 2x should not decrease the R channel anywhere.assert (boosted[..., 0] >= baseline[..., 0]).all()1234567891011121314143 unmodified lines158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249"""Tests for the RGB composite algorithms."""import base64import ioimport numpy as npfrom PIL import Image as PILImagefrom jellyscope.data.data_store import DataStorefrom jellyscope.visualization.rgb_composite import (build_rgb_figure,lupton_rgb_composite,percentile_asinh_composite,)143 unmodified linesboosted = percentile_asinh_composite(r, g, b, weights=(2.0, 1.0, 1.0))# Boosting R by 2x should not decrease the R channel anywhere.assert (boosted[..., 0] >= baseline[..., 0]).all()class TestBuildRGBFigure:"""Figure assembly: invisible heatmap click target + layout.images PNG."""def _build(self, store: DataStore, method: str = "percentile_asinh") -> dict:dataset_name = store.list_datasets()[0]dataset = store.get_dataset(dataset_name)datacube_name = dataset.list_datacubes()[0]datacube = dataset.get_datacube(datacube_name)clumps = store.get_clumps(dataset_name)nchan = datacube.n_channelsreturn build_rgb_figure(datacube,r_index=min(nchan - 1, 2),g_index=min(nchan - 1, 1),b_index=0,clumps=clumps,method=method,)def test_data0_is_invisible_heatmap(self, store: DataStore):fig = self._build(store)d0 = fig["data"][0]assert d0["type"] == "heatmap"assert d0["opacity"] == 0assert d0["showscale"] is Falsedef test_layout_images_png_annotation(self, store: DataStore):fig = self._build(store)images = fig["layout"]["images"]assert len(images) == 1img = images[0]assert img["xref"] == "x"assert img["yref"] == "y"assert img["sizing"] == "stretch"assert img["x"] == 0assert img["y"] == 0assert img["source"].startswith("data:image/png;base64,")def test_no_yaxis_autorange_reversed(self, store: DataStore):fig = self._build(store)yaxis = fig["layout"]["yaxis"]assert yaxis.get("autorange") != "reversed"def test_png_dimensions_match_datacube(self, store: DataStore):fig = self._build(store)dataset = store.get_dataset(store.list_datasets()[0])datacube = dataset.get_datacube(dataset.list_datacubes()[0])ny, nx = datacube.spatial_shapeimg = fig["layout"]["images"][0]assert img["sizex"] == nxassert img["sizey"] == ny# Decode PNG and confirm dimensions.b64 = img["source"].removeprefix("data:image/png;base64,")png_bytes = base64.b64decode(b64)png = PILImage.open(io.BytesIO(png_bytes))assert png.size == (nx, ny)def test_centroid_y_is_raw_fits_y(self, store: DataStore):"""Regression: triple-flip set centroid y to ny-1-y0. Ensure raw y0 is used."""fig = self._build(store)clumps = store.get_clumps(store.list_datasets()[0])clump_list = clumps.list_clumps()if not clump_list:return # nothing to assert# Centroid trace is the last data entry.centroids = fig["data"][-1]# Expected y values are raw y0 from each clump, in catalog order.expected_ys = [c.y0 for c in clump_list]assert list(centroids["y"]) == expected_ysdef test_data_order_preserves_clickable_first(self, store: DataStore):"""app.js relies on data[0] being the click target; centroids are last."""fig = self._build(store)assert fig["data"][0]["type"] == "heatmap"# Last trace must be the centroid scatter so fig.data.pop() in JS toggles it.assert fig["data"][-1].get("name") == "Centroids"def test_lupton_method_path(self, store: DataStore):fig = self._build(store, method="lupton")assert fig["data"][0]["type"] == "heatmap"assert fig["layout"]["images"][0]["source"].startswith("data:image/png;base64,")def test_image_yanchor_bottom(self, store: DataStore):"""Image bottom must anchor at y=0 so it occupies y∈[0, ny] with overlays."""fig = self._build(store)img = fig["layout"]["images"][0]assert img["yanchor"] == "bottom"
1 unmodified line2345671 unmodified line91011121314151617181920212223242526272829301 unmodified line3233343536373839404142434445464748495051525354555657585960616263646512 unmodified lines787980818283841 unmodified line86878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311 unmodified line1331341351361371381391401411421431441451462 unmodified lines1491501511521531541551 unmodified linefrom http import HTTPStatusdef test_index_page(client):resp = client.get("/")1 unmodified lineassert b"Jellyscope" in resp.contentdef test_list_datacubes(client):resp = client.get("/api/datacubes")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert "nircam" in data["datacubes"]def test_list_filters(client):resp = client.get("/api/filters/nircam")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert len(data["filters"]) == 20def test_viewer_figure(client):resp = client.get("/api/viewer/nircam/7")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert "figure" in data1 unmodified linedef test_list_clumps(client):resp = client.get("/api/clumps")data = resp.json()assert len(data["clumps"]) == 23resp = client.get("/api/clumps?component=disk")data = resp.json()assert all(c["component"] == "disk" for c in data["clumps"])def test_get_clump_detail(client):resp = client.get("/api/clumps/0")data = resp.json()assert "properties" in dataassert "boundary" in datadef test_pixel_clump_lookup(client):resp = client.get("/api/pixel/72/20/clump")data = resp.json()assert data["clump_id"] == 0def test_list_clumps_with_inside_filter(client):resp = client.get("/api/clumps?inside=true")data = resp.json()assert all(c["inside"] is True for c in data["clumps"])resp = client.get("/api/clumps?inside=false")data = resp.json()assert all(c["inside"] is False for c in data["clumps"])12 unmodified linesdef test_viewer_stretch_lupton_asinh(client):resp = client.get("/api/viewer/nircam/7?stretch=lupton_asinh")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert "figure" in data1 unmodified linedef test_viewer_stretch_default_is_log(client):resp_default = client.get("/api/viewer/nircam/7")resp_log = client.get("/api/viewer/nircam/7?stretch=log")assert resp_default.status_code == HTTPStatus.OKassert resp_log.status_code == HTTPStatus.OKassert resp_default.json() == resp_log.json()def test_rgb_viewer_figure(client):resp = client.get("/api/viewer/nircam/rgb?r=17&g=7&b=0")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert "figure" in dataassert data["r_filter"] == "F444W"assert data["g_filter"] == "F200W"assert data["b_filter"] == "F070W"assert data["figure"]["data"][0]["type"] == "image"def test_rgb_viewer_with_softening(client):resp = client.get("/api/viewer/nircam/rgb?r=17&g=7&b=0&softening=12.0")assert resp.status_code == HTTPStatus.OKdef test_viewer_invalid_stretch(client):resp = client.get("/api/viewer/nircam/7?stretch=invalid")assert resp.status_code == HTTPStatus.UNPROCESSABLE_ENTITYdef test_rgb_viewer_invalid_channel(client):resp = client.get("/api/viewer/nircam/rgb?r=999&g=7&b=0")assert resp.status_code == HTTPStatus.BAD_REQUESTdef test_viewer_invalid_channel_index(client):resp = client.get("/api/viewer/nircam/999")assert resp.status_code == HTTPStatus.BAD_REQUESTdef test_clump_spectrum(client):resp = client.get("/api/clumps/0/spectrum/nircam")data = resp.json()assert "spectrum" in dataassert "figure" in data1 unmodified linedef test_pixel_spectrum(client):resp = client.get("/api/pixel/80/100/spectrum/nircam")data = resp.json()assert len(data["spectrum"]["fluxes"]) == 20def test_region_spectrum(client):resp = client.post("/api/region/spectrum/nircam",json={"rect": {"x0": 70, "y0": 15, "x1": 80, "y1": 25}},)data = resp.json()2 unmodified linesdef test_compare_spectra(client):resp = client.post("/api/compare/spectrum/nircam",json={"clump_ids": [0, 1, 3]},)data = resp.json()1 unmodified line23456789101 unmodified line12131415161718192021222324252627282930313233343536373839404142434445461 unmodified line4849505152535455565758596061626364656667686970717273747576777879808112 unmodified lines9495969798991001 unmodified line1021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481 unmodified line1501511521531541551561571581591601611621632 unmodified lines1661671681691701711721 unmodified linefrom http import HTTPStatusDS = "A2744_F1228"BASE = f"/api/datasets/{DS}"def test_index_page(client):resp = client.get("/")1 unmodified lineassert b"Jellyscope" in resp.contentdef test_list_datasets(client):resp = client.get("/api/datasets")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert DS in data["datasets"]assert data["default"] == DSdef test_unknown_dataset_404(client):resp = client.get("/api/datasets/does_not_exist/datacubes")assert resp.status_code == HTTPStatus.NOT_FOUNDdef test_list_datacubes(client):resp = client.get(f"{BASE}/datacubes")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert "nircam" in data["datacubes"]def test_list_filters(client):resp = client.get(f"{BASE}/filters/nircam")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert len(data["filters"]) == 20def test_viewer_figure(client):resp = client.get(f"{BASE}/viewer/nircam/7")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert "figure" in data1 unmodified linedef test_list_clumps(client):resp = client.get(f"{BASE}/clumps")data = resp.json()assert len(data["clumps"]) == 23resp = client.get(f"{BASE}/clumps?component=disk")data = resp.json()assert all(c["component"] == "disk" for c in data["clumps"])def test_get_clump_detail(client):resp = client.get(f"{BASE}/clumps/0")data = resp.json()assert "properties" in dataassert "boundary" in datadef test_pixel_clump_lookup(client):resp = client.get(f"{BASE}/pixel/72/20/clump")data = resp.json()assert data["clump_id"] == 0def test_list_clumps_with_inside_filter(client):resp = client.get(f"{BASE}/clumps?inside=true")data = resp.json()assert all(c["inside"] is True for c in data["clumps"])resp = client.get(f"{BASE}/clumps?inside=false")data = resp.json()assert all(c["inside"] is False for c in data["clumps"])12 unmodified linesdef test_viewer_stretch_lupton_asinh(client):resp = client.get(f"{BASE}/viewer/nircam/7?stretch=lupton_asinh")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert "figure" in data1 unmodified linedef test_viewer_stretch_default_is_log(client):resp_default = client.get(f"{BASE}/viewer/nircam/7")resp_log = client.get(f"{BASE}/viewer/nircam/7?stretch=log")assert resp_default.status_code == HTTPStatus.OKassert resp_log.status_code == HTTPStatus.OKassert resp_default.json() == resp_log.json()def test_rgb_viewer_figure(client):resp = client.get(f"{BASE}/viewer/nircam/rgb?r=17&g=7&b=0")assert resp.status_code == HTTPStatus.OKdata = resp.json()assert "figure" in dataassert data["r_filter"] == "F444W"assert data["g_filter"] == "F200W"assert data["b_filter"] == "F070W"assert data["figure"]["data"][0]["type"] == "heatmap"assert "images" in data["figure"]["layout"]def test_rgb_viewer_with_softening(client):resp = client.get(f"{BASE}/viewer/nircam/rgb?r=17&g=7&b=0&softening=12.0")assert resp.status_code == HTTPStatus.OKdef test_viewer_invalid_stretch(client):resp = client.get(f"{BASE}/viewer/nircam/7?stretch=invalid")assert resp.status_code == HTTPStatus.UNPROCESSABLE_ENTITYdef test_rgb_viewer_invalid_channel(client):resp = client.get(f"{BASE}/viewer/nircam/rgb?r=999&g=7&b=0")assert resp.status_code == HTTPStatus.BAD_REQUESTdef test_viewer_invalid_channel_index(client):resp = client.get(f"{BASE}/viewer/nircam/999")assert resp.status_code == HTTPStatus.BAD_REQUESTdef test_clump_spectrum(client):resp = client.get(f"{BASE}/clumps/0/spectrum/nircam")data = resp.json()assert "spectrum" in dataassert "figure" in data1 unmodified linedef test_pixel_spectrum(client):resp = client.get(f"{BASE}/pixel/80/100/spectrum/nircam")data = resp.json()assert len(data["spectrum"]["fluxes"]) == 20def test_region_spectrum(client):resp = client.post(f"{BASE}/region/spectrum/nircam",json={"rect": {"x0": 70, "y0": 15, "x1": 80, "y1": 25}},)data = resp.json()2 unmodified linesdef test_compare_spectra(client):resp = client.post(f"{BASE}/compare/spectrum/nircam",json={"clump_ids": [0, 1, 3]},)data = resp.json()
318 unmodified lines31932032132232332410 unmodified lines3353363373383393407 unmodified lines3483493503513523531 unmodified line355356357358359360287 unmodified lines648649650651652653336 unmodified lines990991992993994995318 unmodified lines{ name = "jinja2" },{ name = "numpy" },{ name = "pandas" },{ name = "plotly" },{ name = "pydantic" },{ name = "scipy" },10 unmodified lines{ name = "pytest" },{ name = "pytest-cov" },{ name = "ruff" },][package.metadata]7 unmodified lines{ name = "numpy", specifier = ">=1.26" },{ name = "pandas", specifier = ">=2.1" },{ name = "pandas-stubs", marker = "extra == 'dev'" },{ name = "plotly", specifier = ">=5.18" },{ name = "pre-commit", marker = "extra == 'dev'" },{ name = "pydantic", specifier = ">=2.9" },1 unmodified line{ name = "pytest-cov", marker = "extra == 'dev'" },{ name = "ruff", marker = "extra == 'dev'" },{ name = "scipy", specifier = ">=1.12" },{ name = "uvicorn", extras = ["standard"], specifier = ">=0.34" },]provides-extras = ["dev"]287 unmodified lines{ url = "https://files.pythonhosted.org/packages/ef/3c/2c197d226f9ea224a9ab8d197933f9da0ae0aac5b6e0f884e2b8d9c8e9f7/pathspec-1.0.4-py3-none-any.whl", hash = "sha256:fb6ae2fd4e7c921a165808a552060e722767cfa526f99ca5156ed2ce45a5c723", size = 55206, upload-time = "2026-01-27T03:59:45.137Z" },][[package]]name = "platformdirs"version = "4.9.4"336 unmodified lines{ url = "https://files.pythonhosted.org/packages/0b/c9/584bc9651441b4ba60cc4d557d8a547b5aff901af35bda3a4ee30c819b82/starlette-1.0.0-py3-none-any.whl", hash = "sha256:d3ec55e0bb321692d275455ddfd3df75fff145d009685eb40dc91fc66b03d38b", size = 72651, upload-time = "2026-03-22T18:29:45.111Z" },][[package]]name = "typing-extensions"version = "4.15.0"318 unmodified lines31932032132232332432510 unmodified lines3363373383393403413427 unmodified lines3503513523533543553561 unmodified line358359360361362363364287 unmodified lines652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715336 unmodified lines105210531054105510561057105810591060106110621063106410651066318 unmodified lines{ name = "jinja2" },{ name = "numpy" },{ name = "pandas" },{ name = "pillow" },{ name = "plotly" },{ name = "pydantic" },{ name = "scipy" },10 unmodified lines{ name = "pytest" },{ name = "pytest-cov" },{ name = "ruff" },{ name = "types-pillow" },][package.metadata]7 unmodified lines{ name = "numpy", specifier = ">=1.26" },{ name = "pandas", specifier = ">=2.1" },{ name = "pandas-stubs", marker = "extra == 'dev'" },{ name = "pillow", specifier = ">=10.0" },{ name = "plotly", specifier = ">=5.18" },{ name = "pre-commit", marker = "extra == 'dev'" },{ name = "pydantic", specifier = ">=2.9" },1 unmodified line{ name = "pytest-cov", marker = "extra == 'dev'" },{ name = "ruff", marker = "extra == 'dev'" },{ name = "scipy", specifier = ">=1.12" },{ name = "types-pillow", marker = "extra == 'dev'" },{ name = "uvicorn", extras = ["standard"], specifier = ">=0.34" },]provides-extras = ["dev"]287 unmodified lines{ url = "https://files.pythonhosted.org/packages/ef/3c/2c197d226f9ea224a9ab8d197933f9da0ae0aac5b6e0f884e2b8d9c8e9f7/pathspec-1.0.4-py3-none-any.whl", hash = "sha256:fb6ae2fd4e7c921a165808a552060e722767cfa526f99ca5156ed2ce45a5c723", size = 55206, upload-time = "2026-01-27T03:59:45.137Z" },][[package]]name = "pillow"version = "12.2.0"source = { registry = "https://pypi.org/simple" }sdist = { url = "https://files.pythonhosted.org/packages/8c/21/c2bcdd5906101a30244eaffc1b6e6ce71a31bd0742a01eb89e660ebfac2d/pillow-12.2.0.tar.gz", hash = "sha256:a830b1a40919539d07806aa58e1b114df53ddd43213d9c8b75847eee6c0182b5", size = 46987819, upload-time = "2026-04-01T14:46:17.687Z" }wheels = [{ url = "https://files.pythonhosted.org/packages/4a/01/53d10cf0dbad820a8db274d259a37ba50b88b24768ddccec07355382d5ad/pillow-12.2.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:8297651f5b5679c19968abefd6bb84d95fe30ef712eb1b2d9b2d31ca61267f4c", size = 4100837, upload-time = "2026-04-01T14:43:41.506Z" },{ url = "https://files.pythonhosted.org/packages/0f/98/f3a6657ecb698c937f6c76ee564882945f29b79bad496abcba0e84659ec5/pillow-12.2.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:50d8520da2a6ce0af445fa6d648c4273c3eeefbc32d7ce049f22e8b5c3daecc2", size = 4176528, upload-time = "2026-04-01T14:43:43.773Z" },{ url = "https://files.pythonhosted.org/packages/69/bc/8986948f05e3ea490b8442ea1c1d4d990b24a7e43d8a51b2c7d8b1dced36/pillow-12.2.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:766cef22385fa1091258ad7e6216792b156dc16d8d3fa607e7545b2b72061f1c", size = 3640401, upload-time = "2026-04-01T14:43:45.87Z" },{ url = "https://files.pythonhosted.org/packages/34/46/6c717baadcd62bc8ed51d238d521ab651eaa74838291bda1f86fe1f864c9/pillow-12.2.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5d2fd0fa6b5d9d1de415060363433f28da8b1526c1c129020435e186794b3795", size = 5308094, upload-time = "2026-04-01T14:43:48.438Z" },{ url = "https://files.pythonhosted.org/packages/71/43/905a14a8b17fdb1ccb58d282454490662d2cb89a6bfec26af6d3520da5ec/pillow-12.2.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:56b25336f502b6ed02e889f4ece894a72612fe885889a6e8c4c80239ff6e5f5f", size = 4695402, upload-time = "2026-04-01T14:43:51.292Z" },{ url = "https://files.pythonhosted.org/packages/73/dd/42107efcb777b16fa0393317eac58f5b5cf30e8392e266e76e51cff28c3d/pillow-12.2.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f1c943e96e85df3d3478f7b691f229887e143f81fedab9b20205349ab04d73ed", size = 6280005, upload-time = "2026-04-01T14:43:54.242Z" },{ url = "https://files.pythonhosted.org/packages/a8/68/b93e09e5e8549019e61acf49f65b1a8530765a7f812c77a7461bca7e4494/pillow-12.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:03f6fab9219220f041c74aeaa2939ff0062bd5c364ba9ce037197f4c6d498cd9", size = 8090669, upload-time = "2026-04-01T14:43:57.335Z" },{ url = "https://files.pythonhosted.org/packages/4b/6e/3ccb54ce8ec4ddd1accd2d89004308b7b0b21c4ac3d20fa70af4760a4330/pillow-12.2.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5cdfebd752ec52bf5bb4e35d9c64b40826bc5b40a13df7c3cda20a2c03a0f5ed", size = 6395194, upload-time = "2026-04-01T14:43:59.864Z" },{ url = "https://files.pythonhosted.org/packages/67/ee/21d4e8536afd1a328f01b359b4d3997b291ffd35a237c877b331c1c3b71c/pillow-12.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:eedf4b74eda2b5a4b2b2fb4c006d6295df3bf29e459e198c90ea48e130dc75c3", size = 7082423, upload-time = "2026-04-01T14:44:02.74Z" },{ url = "https://files.pythonhosted.org/packages/78/5f/e9f86ab0146464e8c133fe85df987ed9e77e08b29d8d35f9f9f4d6f917ba/pillow-12.2.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:00a2865911330191c0b818c59103b58a5e697cae67042366970a6b6f1b20b7f9", size = 6505667, upload-time = "2026-04-01T14:44:05.381Z" },{ url = "https://files.pythonhosted.org/packages/ed/1e/409007f56a2fdce61584fd3acbc2bbc259857d555196cedcadc68c015c82/pillow-12.2.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:1e1757442ed87f4912397c6d35a0db6a7b52592156014706f17658ff58bbf795", size = 7208580, upload-time = "2026-04-01T14:44:08.39Z" },{ url = "https://files.pythonhosted.org/packages/23/c4/7349421080b12fb35414607b8871e9534546c128a11965fd4a7002ccfbee/pillow-12.2.0-cp313-cp313-win32.whl", hash = "sha256:144748b3af2d1b358d41286056d0003f47cb339b8c43a9ea42f5fea4d8c66b6e", size = 6375896, upload-time = "2026-04-01T14:44:11.197Z" },{ url = "https://files.pythonhosted.org/packages/3f/82/8a3739a5e470b3c6cbb1d21d315800d8e16bff503d1f16b03a4ec3212786/pillow-12.2.0-cp313-cp313-win_amd64.whl", hash = "sha256:390ede346628ccc626e5730107cde16c42d3836b89662a115a921f28440e6a3b", size = 7081266, upload-time = "2026-04-01T14:44:13.947Z" },{ url = "https://files.pythonhosted.org/packages/c3/25/f968f618a062574294592f668218f8af564830ccebdd1fa6200f598e65c5/pillow-12.2.0-cp313-cp313-win_arm64.whl", hash = "sha256:8023abc91fba39036dbce14a7d6535632f99c0b857807cbbbf21ecc9f4717f06", size = 2463508, upload-time = "2026-04-01T14:44:16.312Z" },{ url = "https://files.pythonhosted.org/packages/4d/a4/b342930964e3cb4dce5038ae34b0eab4653334995336cd486c5a8c25a00c/pillow-12.2.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:042db20a421b9bafecc4b84a8b6e444686bd9d836c7fd24542db3e7df7baad9b", size = 5309927, upload-time = "2026-04-01T14:44:18.89Z" },{ url = "https://files.pythonhosted.org/packages/9f/de/23198e0a65a9cf06123f5435a5d95cea62a635697f8f03d134d3f3a96151/pillow-12.2.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:dd025009355c926a84a612fecf58bb315a3f6814b17ead51a8e48d3823d9087f", size = 4698624, upload-time = "2026-04-01T14:44:21.115Z" },{ url = "https://files.pythonhosted.org/packages/01/a6/1265e977f17d93ea37aa28aa81bad4fa597933879fac2520d24e021c8da3/pillow-12.2.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:88ddbc66737e277852913bd1e07c150cc7bb124539f94c4e2df5344494e0a612", size = 6321252, upload-time = "2026-04-01T14:44:23.663Z" },{ url = "https://files.pythonhosted.org/packages/3c/83/5982eb4a285967baa70340320be9f88e57665a387e3a53a7f0db8231a0cd/pillow-12.2.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d362d1878f00c142b7e1a16e6e5e780f02be8195123f164edf7eddd911eefe7c", size = 8126550, upload-time = "2026-04-01T14:44:26.772Z" },{ url = "https://files.pythonhosted.org/packages/4e/48/6ffc514adce69f6050d0753b1a18fd920fce8cac87620d5a31231b04bfc5/pillow-12.2.0-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2c727a6d53cb0018aadd8018c2b938376af27914a68a492f59dfcaca650d5eea", size = 6433114, upload-time = "2026-04-01T14:44:29.615Z" },{ url = "https://files.pythonhosted.org/packages/36/a3/f9a77144231fb8d40ee27107b4463e205fa4677e2ca2548e14da5cf18dce/pillow-12.2.0-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:efd8c21c98c5cc60653bcb311bef2ce0401642b7ce9d09e03a7da87c878289d4", size = 7115667, upload-time = "2026-04-01T14:44:32.773Z" },{ url = "https://files.pythonhosted.org/packages/c1/fc/ac4ee3041e7d5a565e1c4fd72a113f03b6394cc72ab7089d27608f8aaccb/pillow-12.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9f08483a632889536b8139663db60f6724bfcb443c96f1b18855860d7d5c0fd4", size = 6538966, upload-time = "2026-04-01T14:44:35.252Z" },{ url = "https://files.pythonhosted.org/packages/c0/a8/27fb307055087f3668f6d0a8ccb636e7431d56ed0750e07a60547b1e083e/pillow-12.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:dac8d77255a37e81a2efcbd1fc05f1c15ee82200e6c240d7e127e25e365c39ea", size = 7238241, upload-time = "2026-04-01T14:44:37.875Z" },{ url = "https://files.pythonhosted.org/packages/ad/4b/926ab182c07fccae9fcb120043464e1ff1564775ec8864f21a0ebce6ac25/pillow-12.2.0-cp313-cp313t-win32.whl", hash = "sha256:ee3120ae9dff32f121610bb08e4313be87e03efeadfc6c0d18f89127e24d0c24", size = 6379592, upload-time = "2026-04-01T14:44:40.336Z" },{ url = "https://files.pythonhosted.org/packages/c2/c4/f9e476451a098181b30050cc4c9a3556b64c02cf6497ea421ac047e89e4b/pillow-12.2.0-cp313-cp313t-win_amd64.whl", hash = "sha256:325ca0528c6788d2a6c3d40e3568639398137346c3d6e66bb61db96b96511c98", size = 7085542, upload-time = "2026-04-01T14:44:43.251Z" },{ url = "https://files.pythonhosted.org/packages/00/a4/285f12aeacbe2d6dc36c407dfbbe9e96d4a80b0fb710a337f6d2ad978c75/pillow-12.2.0-cp313-cp313t-win_arm64.whl", hash = "sha256:2e5a76d03a6c6dcef67edabda7a52494afa4035021a79c8558e14af25313d453", size = 2465765, upload-time = "2026-04-01T14:44:45.996Z" },{ url = "https://files.pythonhosted.org/packages/bf/98/4595daa2365416a86cb0d495248a393dfc84e96d62ad080c8546256cb9c0/pillow-12.2.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:3adc9215e8be0448ed6e814966ecf3d9952f0ea40eb14e89a102b87f450660d8", size = 4100848, upload-time = "2026-04-01T14:44:48.48Z" },{ url = "https://files.pythonhosted.org/packages/0b/79/40184d464cf89f6663e18dfcf7ca21aae2491fff1a16127681bf1fa9b8cf/pillow-12.2.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:6a9adfc6d24b10f89588096364cc726174118c62130c817c2837c60cf08a392b", size = 4176515, upload-time = "2026-04-01T14:44:51.353Z" },{ url = "https://files.pythonhosted.org/packages/b0/63/703f86fd4c422a9cf722833670f4f71418fb116b2853ff7da722ea43f184/pillow-12.2.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:6a6e67ea2e6feda684ed370f9a1c52e7a243631c025ba42149a2cc5934dec295", size = 3640159, upload-time = "2026-04-01T14:44:53.588Z" },{ url = "https://files.pythonhosted.org/packages/71/e0/fb22f797187d0be2270f83500aab851536101b254bfa1eae10795709d283/pillow-12.2.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:2bb4a8d594eacdfc59d9e5ad972aa8afdd48d584ffd5f13a937a664c3e7db0ed", size = 5312185, upload-time = "2026-04-01T14:44:56.039Z" },{ url = "https://files.pythonhosted.org/packages/ba/8c/1a9e46228571de18f8e28f16fabdfc20212a5d019f3e3303452b3f0a580d/pillow-12.2.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:80b2da48193b2f33ed0c32c38140f9d3186583ce7d516526d462645fd98660ae", size = 4695386, upload-time = "2026-04-01T14:44:58.663Z" },{ url = "https://files.pythonhosted.org/packages/70/62/98f6b7f0c88b9addd0e87c217ded307b36be024d4ff8869a812b241d1345/pillow-12.2.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:22db17c68434de69d8ecfc2fe821569195c0c373b25cccb9cbdacf2c6e53c601", size = 6280384, upload-time = "2026-04-01T14:45:01.5Z" },{ url = "https://files.pythonhosted.org/packages/5e/03/688747d2e91cfbe0e64f316cd2e8005698f76ada3130d0194664174fa5de/pillow-12.2.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7b14cc0106cd9aecda615dd6903840a058b4700fcb817687d0ee4fc8b6e389be", size = 8091599, upload-time = "2026-04-01T14:45:04.5Z" },{ url = "https://files.pythonhosted.org/packages/f6/35/577e22b936fcdd66537329b33af0b4ccfefaeabd8aec04b266528cddb33c/pillow-12.2.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8cbeb542b2ebc6fcdacabf8aca8c1a97c9b3ad3927d46b8723f9d4f033288a0f", size = 6396021, upload-time = "2026-04-01T14:45:07.117Z" },{ url = "https://files.pythonhosted.org/packages/11/8d/d2532ad2a603ca2b93ad9f5135732124e57811d0168155852f37fbce2458/pillow-12.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4bfd07bc812fbd20395212969e41931001fd59eb55a60658b0e5710872e95286", size = 7083360, upload-time = "2026-04-01T14:45:09.763Z" },{ url = "https://files.pythonhosted.org/packages/5e/26/d325f9f56c7e039034897e7380e9cc202b1e368bfd04d4cbe6a441f02885/pillow-12.2.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9aba9a17b623ef750a4d11b742cbafffeb48a869821252b30ee21b5e91392c50", size = 6507628, upload-time = "2026-04-01T14:45:12.378Z" },{ url = "https://files.pythonhosted.org/packages/5f/f7/769d5632ffb0988f1c5e7660b3e731e30f7f8ec4318e94d0a5d674eb65a4/pillow-12.2.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:deede7c263feb25dba4e82ea23058a235dcc2fe1f6021025dc71f2b618e26104", size = 7209321, upload-time = "2026-04-01T14:45:15.122Z" },{ url = "https://files.pythonhosted.org/packages/6a/7a/c253e3c645cd47f1aceea6a8bacdba9991bf45bb7dfe927f7c893e89c93c/pillow-12.2.0-cp314-cp314-win32.whl", hash = "sha256:632ff19b2778e43162304d50da0181ce24ac5bb8180122cbe1bf4673428328c7", size = 6479723, upload-time = "2026-04-01T14:45:17.797Z" },{ url = "https://files.pythonhosted.org/packages/cd/8b/601e6566b957ca50e28725cb6c355c59c2c8609751efbecd980db44e0349/pillow-12.2.0-cp314-cp314-win_amd64.whl", hash = "sha256:4e6c62e9d237e9b65fac06857d511e90d8461a32adcc1b9065ea0c0fa3a28150", size = 7217400, upload-time = "2026-04-01T14:45:20.529Z" },{ url = "https://files.pythonhosted.org/packages/d6/94/220e46c73065c3e2951bb91c11a1fb636c8c9ad427ac3ce7d7f3359b9b2f/pillow-12.2.0-cp314-cp314-win_arm64.whl", hash = "sha256:b1c1fbd8a5a1af3412a0810d060a78b5136ec0836c8a4ef9aa11807f2a22f4e1", size = 2554835, upload-time = "2026-04-01T14:45:23.162Z" },{ url = "https://files.pythonhosted.org/packages/b6/ab/1b426a3974cb0e7da5c29ccff4807871d48110933a57207b5a676cccc155/pillow-12.2.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:57850958fe9c751670e49b2cecf6294acc99e562531f4bd317fa5ddee2068463", size = 5314225, upload-time = "2026-04-01T14:45:25.637Z" },{ url = "https://files.pythonhosted.org/packages/19/1e/dce46f371be2438eecfee2a1960ee2a243bbe5e961890146d2dee1ff0f12/pillow-12.2.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:d5d38f1411c0ed9f97bcb49b7bd59b6b7c314e0e27420e34d99d844b9ce3b6f3", size = 4698541, upload-time = "2026-04-01T14:45:28.355Z" },{ url = "https://files.pythonhosted.org/packages/55/c3/7fbecf70adb3a0c33b77a300dc52e424dc22ad8cdc06557a2e49523b703d/pillow-12.2.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5c0a9f29ca8e79f09de89293f82fc9b0270bb4af1d58bc98f540cc4aedf03166", size = 6322251, upload-time = "2026-04-01T14:45:30.924Z" },{ url = "https://files.pythonhosted.org/packages/1c/3c/7fbc17cfb7e4fe0ef1642e0abc17fc6c94c9f7a16be41498e12e2ba60408/pillow-12.2.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1610dd6c61621ae1cf811bef44d77e149ce3f7b95afe66a4512f8c59f25d9ebe", size = 8127807, upload-time = "2026-04-01T14:45:33.908Z" },{ url = "https://files.pythonhosted.org/packages/ff/c3/a8ae14d6defd2e448493ff512fae903b1e9bd40b72efb6ec55ce0048c8ce/pillow-12.2.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0a34329707af4f73cf1782a36cd2289c0368880654a2c11f027bcee9052d35dd", size = 6433935, upload-time = "2026-04-01T14:45:36.623Z" },{ url = "https://files.pythonhosted.org/packages/6e/32/2880fb3a074847ac159d8f902cb43278a61e85f681661e7419e6596803ed/pillow-12.2.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8e9c4f5b3c546fa3458a29ab22646c1c6c787ea8f5ef51300e5a60300736905e", size = 7116720, upload-time = "2026-04-01T14:45:39.258Z" },{ url = "https://files.pythonhosted.org/packages/46/87/495cc9c30e0129501643f24d320076f4cc54f718341df18cc70ec94c44e1/pillow-12.2.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fb043ee2f06b41473269765c2feae53fc2e2fbf96e5e22ca94fb5ad677856f06", size = 6540498, upload-time = "2026-04-01T14:45:41.879Z" },{ url = "https://files.pythonhosted.org/packages/18/53/773f5edca692009d883a72211b60fdaf8871cbef075eaa9d577f0a2f989e/pillow-12.2.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f278f034eb75b4e8a13a54a876cc4a5ab39173d2cdd93a638e1b467fc545ac43", size = 7239413, upload-time = "2026-04-01T14:45:44.705Z" },{ url = "https://files.pythonhosted.org/packages/c9/e4/4b64a97d71b2a83158134abbb2f5bd3f8a2ea691361282f010998f339ec7/pillow-12.2.0-cp314-cp314t-win32.whl", hash = "sha256:6bb77b2dcb06b20f9f4b4a8454caa581cd4dd0643a08bacf821216a16d9c8354", size = 6482084, upload-time = "2026-04-01T14:45:47.568Z" },{ url = "https://files.pythonhosted.org/packages/ba/13/306d275efd3a3453f72114b7431c877d10b1154014c1ebbedd067770d629/pillow-12.2.0-cp314-cp314t-win_amd64.whl", hash = "sha256:6562ace0d3fb5f20ed7290f1f929cae41b25ae29528f2af1722966a0a02e2aa1", size = 7225152, upload-time = "2026-04-01T14:45:50.032Z" },{ url = "https://files.pythonhosted.org/packages/ff/6e/cf826fae916b8658848d7b9f38d88da6396895c676e8086fc0988073aaf8/pillow-12.2.0-cp314-cp314t-win_arm64.whl", hash = "sha256:aa88ccfe4e32d362816319ed727a004423aab09c5cea43c01a4b435643fa34eb", size = 2556579, upload-time = "2026-04-01T14:45:52.529Z" },][[package]]name = "platformdirs"version = "4.9.4"336 unmodified lines{ url = "https://files.pythonhosted.org/packages/0b/c9/584bc9651441b4ba60cc4d557d8a547b5aff901af35bda3a4ee30c819b82/starlette-1.0.0-py3-none-any.whl", hash = "sha256:d3ec55e0bb321692d275455ddfd3df75fff145d009685eb40dc91fc66b03d38b", size = 72651, upload-time = "2026-03-22T18:29:45.111Z" },][[package]]name = "types-pillow"version = "10.2.0.20240822"source = { registry = "https://pypi.org/simple" }sdist = { url = "https://files.pythonhosted.org/packages/18/4a/4495264dddaa600d65d68bcedb64dcccf9d9da61adff51f7d2ffd8e4c9ce/types-Pillow-10.2.0.20240822.tar.gz", hash = "sha256:559fb52a2ef991c326e4a0d20accb3bb63a7ba8d40eb493e0ecb0310ba52f0d3", size = 35389, upload-time = "2024-08-22T02:32:48.15Z" }wheels = [{ url = "https://files.pythonhosted.org/packages/66/23/e81a5354859831fcf54d488d33b80ba6133ea84f874a9c0ec40a4881e133/types_Pillow-10.2.0.20240822-py3-none-any.whl", hash = "sha256:d9dab025aba07aeb12fd50a6799d4eac52a9603488eca09d7662543983f16c5d", size = 54354, upload-time = "2024-08-22T02:32:46.664Z" },][[package]]name = "typing-extensions"version = "4.15.0"
.pre-commit-config.yaml+1
data/A2744_F1228/clumps_pixels.csvAdded+939
data/A2744_F1228/clumps_properties.csvAdded+24
data/jellyfish_1/clumps_pixels.csvAdded+6544
data/jellyfish_1/clumps_properties.csvAdded+70
data/jellyfish_5/clumps_pixels.csvAdded+325
data/jellyfish_5/clumps_properties.csvAdded+7
pyproject.toml+2
src/jellyscope/data/data_store.py+94-29
src/jellyscope/model/schemas.py+7
src/jellyscope/visualization/rgb_composite.py+44-10
src/jellyscope/web/routes.py+104-49
src/jellyscope/web/static/app.js+99-18
src/jellyscope/web/templates/index.html+11-1
tests/data/test_clumps.py+23-22
tests/data/test_data_store.pyAdded+87
tests/data/test_datacube.py+6-5
tests/spec_analysis/test_spectral.py+9-5
tests/spec_analysis/test_statistics.py+7-4
tests/visualization/test_rgb_composite.py+95
tests/web/test_routes.py+39-22
uv.lock+71