Created
October 22, 2020 00:58
-
-
Save giswqs/e372b00cfe9391ccd01223e99cfbc25d to your computer and use it in GitHub Desktop.
zonal stats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "import ee\nimport geemap\nimport os\n", | |
"execution_count": 1, | |
"outputs": [] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "Map = geemap.Map()\nMap", | |
"execution_count": 2, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": { | |
"text/plain": "Map(center=[40, -100], controls=(WidgetControl(options=['position'], widget=HBox(children=(ToggleButton(value=…", | |
"application/vnd.jupyter.widget-view+json": { | |
"version_major": 2, | |
"version_minor": 0, | |
"model_id": "ca9dcf3d20634553ab47ade17d36a914" | |
} | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "# Add Earth Engine dataset\n# tmean = ee.Image('OREGONSTATE/PRISM/AN81d/20200118').select(['tmean'])\ntmean = dem = ee.Image('USGS/SRTMGL1_003')\n\n# Set visualization parameters.\ntmean_vis = {\n 'min': 0,\n 'max': 50,\n 'palette': ['red', 'yellow', 'green', 'cyan', 'purple']}\n\n# Add Earth Engine tmean to map\nstates = ee.FeatureCollection(\"TIGER/2018/States\")\nMap.setCenter(-99.844, 37.649, 3);\nMap.addLayer(tmean, tmean_vis, 'Tmean')", | |
"execution_count": 3, | |
"outputs": [] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "Map.addLayer(states, {}, 'States')", | |
"execution_count": 4, | |
"outputs": [] | |
}, | |
{ | |
"metadata": { | |
"trusted": true, | |
"scrolled": true | |
}, | |
"cell_type": "code", | |
"source": "out_dir = os.path.join(os.path.expanduser('~'), 'Downloads')\nout_tmean_stats = os.path.join(out_dir, 'tmean_stats.csv') \n\n# Allowed output formats: csv, shp, json, kml, kmz\n# Allowed statistics type: MEAN, MAXIMUM, MINIMUM, MEDIAN, STD, MIN_MAX, VARIANCE, SUM\ngeemap.zonal_statistics(tmean, states, out_tmean_stats, statistics_type='MEAN', scale=1000)", | |
"execution_count": 5, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": "Computing statistics ...\nGenerating URL ...\nDownloading data from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/tables/6213cc7b4f2a24d85aba4dddc37386b7-34c811895547e535c3752b3dd1c6a1cd:getFeatures\nPlease wait ...\nData downloaded to /home/qiusheng/Downloads/tmean_stats.csv\n", | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "result = tmean.reduceRegions(collection=states, reducer=ee.Reducer.mean(), scale=1000)", | |
"execution_count": 6, | |
"outputs": [] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "first = result.first()", | |
"execution_count": 7, | |
"outputs": [] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "first.getInfo()", | |
"execution_count": 8, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"execution_count": 8, | |
"data": { | |
"text/plain": "{'type': 'Feature',\n 'geometry': {'type': 'MultiPolygon',\n 'coordinates': [[[[-64.95671144437794, 17.67898888553738],\n [-64.95648699623378, 17.67234612021062],\n [-64.95558929568621, 17.66875547663511],\n [-64.95505071273082, 17.666601071539457],\n [-64.9531656340593, 17.66103552970995],\n [-64.94970963923265, 17.653270716750747],\n [-64.94356057947924, 17.64411456610741],\n [-64.9351673822318, 17.635182780761177],\n [-64.92583171388065, 17.629033734003933],\n [-64.91591245655609, 17.625218650608453],\n [-64.9080130474639, 17.623961935316306],\n [-64.90038285001347, 17.623468206630278],\n [-64.89252833704256, 17.624231286548543],\n [-64.88539181972723, 17.625936799082883],\n [-64.87677428004696, 17.629392821352276],\n [-64.87457496223834, 17.630784242502617],\n [-64.87058036194892, 17.633252841564957],\n [-64.86932360537841, 17.634150477960315],\n [-64.86555345558385, 17.635317427586738],\n [-64.86259112909102, 17.635137855783842],\n [-64.86034694133978, 17.633970913339944],\n [-64.85989817805212, 17.633746487742588],\n [-64.85132547214542, 17.63118815693456],\n [-64.84382997095284, 17.630110967220592],\n [-64.83575093524198, 17.63011095522433],\n [-64.83005076939563, 17.630649574423305],\n [-64.82569711898398, 17.631547206536375],\n [-64.82448522905807, 17.631188178926998],\n [-64.82192685014799, 17.62957240620732],\n [-64.81757322053056, 17.627777063017096],\n [-64.81488019691795, 17.626834467403732],\n [-64.81151397218188, 17.625667499903464],\n [-64.80653196009115, 17.62517383624955],\n [-64.80168454025453, 17.624680122572695],\n [-64.79939546150409, 17.62481472964279],\n [-64.79459292782185, 17.625039186883377],\n [-64.78925188998065, 17.62580219712155],\n [-64.78884791237917, 17.62584709956465],\n [-64.78121775395724, 17.62777706656548],\n [-64.77623567789762, 17.62930305475887],\n [-64.77273482157804, 17.629976297672368],\n [-64.76757324642449, 17.629931428999058],\n [-64.76102029874878, 17.630200709896215],\n [-64.75913518381478, 17.6303802324201],\n [-64.75644220806575, 17.630649573988048],\n [-64.75289635041445, 17.632040956997514],\n [-64.75042782272959, 17.633387475200525],\n [-64.74957501712097, 17.633701595122638],\n [-64.74611904833971, 17.634554426887686],\n [-64.74032906845135, 17.636349772003484],\n [-64.73745654841036, 17.638145055950762],\n [-64.73507776993769, 17.638324644460265],\n [-64.73418005757968, 17.63836949045889],\n [-64.7279861302178, 17.639895539810666],\n [-64.72493411528795, 17.640703459197212],\n [-64.71654089042786, 17.643486186940837],\n [-64.71111003265659, 17.646717821997672],\n [-64.7081477129357, 17.647525712890182],\n [-64.69890182698533, 17.648917049826142],\n [-64.69611903634207, 17.649545445806538],\n [-64.69082282417338, 17.650353355193115],\n [-64.68781566752487, 17.65080215305036],\n [-64.68094846516045, 17.65295659193664],\n [-64.67610110509963, 17.654751876911245],\n [-64.67453018523067, 17.655290510637418],\n [-64.67013159837472, 17.6570409258448],\n [-64.66119980058049, 17.659329988714088],\n [-64.65473663781961, 17.659464612789844],\n [-64.64683719259041, 17.660227662116466],\n [-64.63368640434085, 17.66462622769841],\n [-64.62803108956071, 17.667812920215678],\n [-64.6245750457675, 17.669294051093384],\n [-64.62228601607049, 17.670146883740486],\n [-64.6183363303493, 17.672929629273433],\n [-64.61806701082827, 17.673019413994933],\n [-64.61613703026381, 17.673872210543202],\n [-64.60680128151283, 17.677103755203234],\n [-64.60087671644953, 17.68109840286578],\n [-64.59908136206197, 17.682040964670062],\n [-64.59643327920995, 17.68334258964279],\n [-64.59360559775237, 17.685362258576294],\n [-64.58974560266041, 17.68702298734032],\n [-64.58498802401729, 17.689401815423416],\n [-64.57924296259789, 17.69276802786427],\n [-64.57699875323883, 17.694518498944408],\n [-64.57129859004993, 17.695281540981373],\n [-64.56097548082519, 17.697974497605163],\n [-64.54957506676051, 17.702687232864495],\n [-64.54876720499574, 17.703046282018416],\n [-64.53979057975315, 17.708701578904698],\n [-64.53103827878562, 17.71592778132378],\n [-64.52470979309368, 17.72270522971338],\n [-64.52031115025106, 17.7298416389289],\n [-64.51685518459462, 17.738683689264757],\n [-64.51407236657954, 17.747076803675785],\n [-64.51357865231232, 17.748019355779896],\n [-64.51272588330177, 17.752373012917364],\n [-64.51268105786934, 17.757130652356594],\n [-64.51317477062177, 17.7604071943187],\n [-64.51600240603663, 17.77144845945882],\n [-64.52008674622257, 17.77957229759237],\n [-64.52304911013609, 17.785003196642126],\n [-64.52686413089002, 17.789985228377258],\n [-64.52982647284888, 17.79299245799048],\n [-64.53418015839192, 17.796268871946708],\n [-64.53889290514999, 17.7997697746941],\n [-64.5467923005023, 17.804886528591734],\n [-64.55316573082727, 17.80847718212783],\n [-64.55617289809568, 17.81054176407018],\n [-64.55877615165396, 17.814401726194884],\n [-64.56375819976817, 17.819608214982566],\n [-64.56712441529133, 17.822794920961183],\n [-64.57403648066764, 17.827058838372512],\n [-64.57996105531531, 17.830918796313796],\n [-64.58355172567457, 17.83307322120234],\n [-64.59230395120778, 17.83733713493213],\n [-64.59935066453328, 17.83985061419356],\n [-64.60213338052837, 17.84083797769167],\n [-64.61205263270362, 17.84348616319592],\n [-64.61519446509652, 17.843979851914053],\n [-64.6245750457675, 17.84451840648707],\n [-64.63229498744727, 17.844967237525417],\n [-64.63889283764622, 17.844877547999456],\n [-64.64710644737298, 17.843710504156665],\n [-64.65235786760584, 17.842364061136607],\n [-64.66339915720742, 17.83760641742237],\n [-64.66811185944113, 17.835227639253464],\n [-64.67327340090405, 17.831502322828328],\n [-64.67722316983402, 17.827866715267746],\n [-64.67901853623805, 17.826250965445812],\n [-64.68202569686841, 17.822705154812642],\n [-64.68543682000157, 17.817723101614742],\n [-64.68615498458857, 17.815075022575662],\n [-64.69001494463906, 17.81323480190478],\n [-64.69751038329652, 17.80874646695168],\n [-64.70051763497442, 17.809195279810247],\n [-64.70424294213989, 17.81359384425494],\n [-64.70882098546927, 17.818216838501186],\n [-64.71384792254095, 17.8226154175023],\n [-64.7185158208277, 17.825936751909566],\n [-64.72439546902453, 17.829168352803883],\n [-64.72987123723391, 17.831277836452585],\n [-64.73355167856317, 17.832848759137068],\n [-64.73835417980565, 17.833836206333586],\n [-64.74320161505399, 17.834733906560608],\n [-64.74706156503026, 17.835182716697332],\n [-64.74957501712097, 17.835182689713534],\n [-64.7584618924758, 17.833925959471586],\n [-64.76263606891807, 17.833073230335216],\n [-64.76447625173444, 17.833118064658425],\n [-64.76514955603241, 17.83316295284634],\n [-64.76766297289579, 17.832624337186537],\n [-64.76900950620508, 17.832848815300373],\n [-64.77488920398822, 17.83406062304519],\n [-64.78305795541715, 17.834509432958004],\n [-64.78965577764406, 17.8341952540868],\n [-64.79804897894917, 17.833073228302364],\n [-64.80374911264299, 17.831681817038152],\n [-64.8068461321974, 17.830559750676674],\n [-64.80949421832186, 17.829437675752068],\n [-64.81088561901632, 17.829841632112842],\n [-64.8125912036297, 17.82966204739848],\n [-64.81582273901209, 17.828943950851585],\n [-64.81941345290804, 17.828091204436006],\n [-64.82224103750949, 17.82692417593243],\n [-64.82722311534505, 17.8245902634315],\n [-64.83023025788204, 17.823019369167252],\n [-64.8348981701237, 17.820281463698972],\n [-64.83902739836454, 17.81696007813706],\n [-64.841226744004, 17.815074975914044],\n [-64.84212439983409, 17.814760841432037],\n [-64.84342601431419, 17.814760816353242],\n [-64.84477250827068, 17.81565850986796],\n [-64.84688196353736, 17.816376621737753],\n [-64.85002382552719, 17.81718450329141],\n [-64.8517743139135, 17.817678251243574],\n [-64.85617283364859, 17.81942869864034],\n [-64.861558876779, 17.82099961935094],\n [-64.86555345558386, 17.82131374888636],\n [-64.86918897256798, 17.821627954353527],\n [-64.87246550599853, 17.821538212567535],\n [-64.87457496223834, 17.821223984353956],\n [-64.87672940139984, 17.82122403258122],\n [-64.88274373860543, 17.820326381593553],\n [-64.89046364416389, 17.818306600419284],\n [-64.89558033878507, 17.816690767195198],\n [-64.89930568564543, 17.815478993190357],\n [-64.9059035544179, 17.81220251974751],\n [-64.91057138715826, 17.809015764284247],\n [-64.91631641338304, 17.804527387475257],\n [-64.92017638000347, 17.801161197387813],\n [-64.92354265562172, 17.798019340987608],\n [-64.92408127741655, 17.797525663812735],\n [-64.92457501484108, 17.797031912492336],\n [-64.92677421870408, 17.7949673160744],\n [-64.93153185071603, 17.788952903665333],\n [-64.9341799666909, 17.784688985084024],\n [-64.93727697368078, 17.777552591911828],\n [-64.94127157846467, 17.76884522511287],\n [-64.94360546733488, 17.762606430208493],\n [-64.9454456936894, 17.75663697062681],\n [-64.94679215873704, 17.748019379235313],\n [-64.94634336660928, 17.74469798214477],\n [-64.94544569368938, 17.736843424667267],\n [-64.94374013093854, 17.72916837274815],\n [-64.94100225333469, 17.722301233483847],\n [-64.938937615669, 17.717543580290926],\n [-64.93956594686819, 17.716690794667038],\n [-64.94351569162974, 17.712696257217047],\n [-64.94791427748446, 17.706322813720554],\n [-64.9518191429615, 17.699276095589603],\n [-64.95446724131261, 17.691825484246692],\n [-64.95639721701883, 17.683656746759674],\n [-64.95671144437794, 17.67898888553738]]],\n [[[-65.15410808774489, 18.277417775620787],\n [-65.15186393875626, 18.268889950469525],\n [-65.14773464080484, 18.259105356644184],\n [-65.14261800122229, 18.250801971557316],\n [-65.13121766581494, 18.241735552239167],\n [-65.11725894645365, 18.234778651268716],\n [-65.10083160988877, 18.232624228632513],\n [-65.09338098883721, 18.23361168619538],\n [-65.08579571808681, 18.235092783890714],\n [-65.08431460939427, 18.235362144701025],\n [-65.08094834538656, 18.236484180325583],\n [-65.07681907896279, 18.23818976222471],\n [-65.07201655738324, 18.240927612139586],\n [-65.06775268532692, 18.243889978899883],\n [-65.06532893723367, 18.246089252592103],\n [-65.06335406423953, 18.24806409469933],\n [-65.06191786600252, 18.249545261921966],\n [-65.06012253619323, 18.251520097213824],\n [-65.05774365504323, 18.254168205756212],\n [-65.05662162051703, 18.255918630000778],\n [-65.05280651356279, 18.26233697931612],\n [-65.05092142729427, 18.26637643256743],\n [-65.05020326314761, 18.269114341117323],\n [-65.0485875125354, 18.266780447373797],\n [-65.04104714308795, 18.262426725706426],\n [-65.03157670103023, 18.256277693247473],\n [-65.01981734509337, 18.25237289630012],\n [-65.01380294813573, 18.25192409727873],\n [-65.00855162939838, 18.2515649712425],\n [-64.99957495610425, 18.252687036576134],\n [-64.99786938644438, 18.252507566362585],\n [-64.99360545513669, 18.253764279769925],\n [-64.98925179020209, 18.25515561824406],\n [-64.98480830471712, 18.256143039660678],\n [-64.98040977140336, 18.25690607609986],\n [-64.97870420931156, 18.256502137231266],\n [-64.97803100163638, 18.256367528137023],\n [-64.97394662073559, 18.25614308276758],\n [-64.96977241675997, 18.256636839167893],\n [-64.96739363274921, 18.256726582092565],\n [-64.96097535456755, 18.256053296286982],\n [-64.9577437267992, 18.256098186624868],\n [-64.95433257332355, 18.25614310195259],\n [-64.94836307175352, 18.256816335789203],\n [-64.94647803133351, 18.257220309937466],\n [-64.94540080558265, 18.254572145004463],\n [-64.94378501881867, 18.251430339726575],\n [-64.9420794646794, 18.248019189010595],\n [-64.9396108341783, 18.24456316567543],\n [-64.93655878255952, 18.24115207868643],\n [-64.93373119178966, 18.237965327770358],\n [-64.92690887539973, 18.232579353956137],\n [-64.92102918947239, 18.228854077937566],\n [-64.9148353312878, 18.226475244196],\n [-64.913219514318, 18.2258468855599],\n [-64.90630749883626, 18.22423102981879],\n [-64.90617285064108, 18.224186158683693],\n [-64.90612796792175, 18.22400668257437],\n [-64.90599331980087, 18.222839712531687],\n [-64.90599331980087, 18.22279482867152],\n [-64.9059035544179, 18.22248059528023],\n [-64.9052303148352, 18.218530853895558],\n [-64.90334516092878, 18.21395276247153],\n [-64.90294122018976, 18.213010224222835],\n [-64.89975450369796, 18.206547025667987],\n [-64.89549057627931, 18.200487817158894],\n [-64.88974555614959, 18.194249010186038],\n [-64.88768088101048, 18.192498536424843],\n [-64.88642414834851, 18.191421402634933],\n [-64.88014055829468, 18.187740971411948],\n [-64.87928776569196, 18.18724722146583],\n [-64.87457496223834, 18.184509375500067],\n [-64.8725552621122, 18.183477032728693],\n [-64.86936848299439, 18.182444720837896],\n [-64.86496996350289, 18.18091869862712],\n [-64.85801301718965, 18.179572147439444],\n [-64.85491613341682, 18.179617045712707],\n [-64.84953011136261, 18.179661952939277],\n [-64.84167557160377, 18.18091869656397],\n [-64.8333721369857, 18.183477059111635],\n [-64.82484429032009, 18.18796539069219],\n [-64.8185157706254, 18.192049755596738],\n [-64.81182814923204, 18.198692483827344],\n [-64.80689100102929, 18.20515566541382],\n [-64.80276173823887, 18.21336930637645],\n [-64.7999789239847, 18.222615296260834],\n [-64.79944032927828, 18.22764218016271],\n [-64.79926085821974, 18.229302878379553],\n [-64.79953015530505, 18.236484249661384],\n [-64.8004277837616, 18.241062321859218],\n [-64.80128054672734, 18.2451018099926],\n [-64.79252832486705, 18.24801920521815],\n [-64.787411652279, 18.25035317325024],\n [-64.7870076770394, 18.25057758446707],\n [-64.78287840323716, 18.252687075371547],\n [-64.77874918368475, 18.2554698566584],\n [-64.77637036178747, 18.257713963398455],\n [-64.7738120109326, 18.260137685227907],\n [-64.77340805318438, 18.26049675599559],\n [-64.77075990866824, 18.260272319602976],\n [-64.76833628405157, 18.26031727742155],\n [-64.76452120497193, 18.26040702021479],\n [-64.7640723060311, 18.2604519095434],\n [-64.75778869303606, 18.26085581680621],\n [-64.75415309746168, 18.261708599727875],\n [-64.75330037210445, 18.261888189196668],\n [-64.75069707788596, 18.262471646967953],\n [-64.74957501712097, 18.262740895471143],\n [-64.74872221384759, 18.263055148137013],\n [-64.74697175403747, 18.262336946706718],\n [-64.74320161505399, 18.260721142951862],\n [-64.74073298338381, 18.2594644836727],\n [-64.73655882916977, 18.258566787783828],\n [-64.73404539190605, 18.257040716731613],\n [-64.73175635572198, 18.255559602280236],\n [-64.72946733644393, 18.254123343293738],\n [-64.7242159506243, 18.251968942344714],\n [-64.7201764976485, 18.25071221162289],\n [-64.71483537754412, 18.249545281702005],\n [-64.7079233493734, 18.248737309101557],\n [-64.70087664428321, 18.248782264927378],\n [-64.69993408748904, 18.248782247071052],\n [-64.69450325149849, 18.248737344794634],\n [-64.68804001639752, 18.249904322876645],\n [-64.68166661921072, 18.251564989818135],\n [-64.67821059744445, 18.252328009689514],\n [-64.67493410427977, 18.25412334795279],\n [-64.67125373157764, 18.256143057900907],\n [-64.66425190496243, 18.26125979477443],\n [-64.66128958653496, 18.267363930301453],\n [-64.66384790965135, 18.28536211810495],\n [-64.65123571371186, 18.300936563919585],\n [-64.63947635868413, 18.31731901903746],\n [-64.63772588936165, 18.319742702002323],\n [-64.63853381092962, 18.32050571699747],\n [-64.63902746147338, 18.321582907985015],\n [-64.6396109827711, 18.324500376541213],\n [-64.6427528312358, 18.339491377117692],\n [-64.64369539213759, 18.344114346737616],\n [-64.64306701787689, 18.345640381046078],\n [-64.63916217577277, 18.355200543588634],\n [-64.64041890937708, 18.363997674547747],\n [-64.64522139767912, 18.364446485342505],\n [-64.64966483181743, 18.364536217066572],\n [-64.65868634712926, 18.36471577522363],\n [-64.66196284640985, 18.365299221987904],\n [-64.66434169181768, 18.365703211866688],\n [-64.66847092115265, 18.365568522239077],\n [-64.67210650132061, 18.366466220693876],\n [-64.67524832419176, 18.367453636586024],\n [-64.68117289942306, 18.371986882481565],\n [-64.68328242677784, 18.372570362001447],\n [-64.68350686275336, 18.372570373696465],\n [-64.6875014346966, 18.372749898318034],\n [-64.6910921178247, 18.371897059985432],\n [-64.6966127802174, 18.371223875707887],\n [-64.69836322621084, 18.371044291686218],\n [-64.70159475458968, 18.370640329379835],\n [-64.7019090018514, 18.37113404529845],\n [-64.7061279946001, 18.373019152093033],\n [-64.70617284895137, 18.373019192905893],\n [-64.70621779374135, 18.373019162490717],\n [-64.70693591651725, 18.373288504054404],\n [-64.708192658014, 18.373737299095612],\n [-64.70935960455576, 18.373737270828574],\n [-64.7102123898909, 18.3737372656771],\n [-64.71088566693682, 18.373737336645053],\n [-64.71160380059581, 18.373737275891575],\n [-64.71250144741383, 18.373737296832818],\n [-64.71882999491147, 18.373871915629717],\n [-64.71891970731645, 18.37391684848977],\n [-64.72004183806705, 18.374410567203153],\n [-64.72704358101349, 18.374724720058538],\n [-64.72812079325817, 18.37598142299193],\n [-64.72982637943993, 18.37795630501745],\n [-64.73471863041837, 18.37687915896042],\n [-64.73763607448178, 18.376205867011702],\n [-64.73880304169734, 18.376250726604578],\n [-64.74104718000206, 18.37737282901678],\n [-64.74176529321244, 18.377597287068404],\n [-64.7429772260712, 18.377911447130526],\n [-64.74347086395849, 18.378046073785864],\n [-64.7437850633444, 18.378135878727797],\n [-64.74396459307272, 18.37809098033936],\n [-64.74607409775416, 18.37791141415651],\n [-64.74733090772, 18.377687008157295],\n [-64.74903641853626, 18.37705866576704],\n [-64.74957501712097, 18.377328001908744],\n [-64.75150502564212, 18.377417758625747],\n [-64.75195381606537, 18.377462597612748],\n [-64.75267195444343, 18.37732798730791],\n [-64.75693586729369, 18.37669958293085],\n [-64.76815674029842, 18.381771401613893],\n [-64.77188204552904, 18.383432107304913],\n [-64.77798612070967, 18.386214867019458],\n [-64.78498789907722, 18.403809139164686],\n [-64.80033804793898, 18.407579272725744],\n [-64.81667554345286, 18.40291145332391],\n [-64.823004116947, 18.3994105230418],\n [-64.83027522048748, 18.3953710189243],\n [-64.8306342882826, 18.395191534277117],\n [-64.84136136507637, 18.393710403521037],\n [-64.84374013239982, 18.393710391784953],\n [-64.84418896352953, 18.393710365360516],\n [-64.84549058641593, 18.393710357934623],\n [-64.84593942000264, 18.393710326175892],\n [-64.84876705893605, 18.3938001625511],\n [-64.85738466285437, 18.3941143370446],\n [-64.85994305435267, 18.394204124098476],\n [-64.86021231228763, 18.394338739304402],\n [-64.86443134940801, 18.395730101876563],\n [-64.86496996350289, 18.395909622675664],\n [-64.87277965250573, 18.40493114564571],\n [-64.8733631587402, 18.405604474313815],\n [-64.8739016972969, 18.406232805482716],\n [-64.87385681904948, 18.40681624891514],\n [-64.87457496223834, 18.409733737534836],\n [-64.87457496223834, 18.410676276683716],\n [-64.89104718233285, 18.462157403670005],\n [-64.89504176412318, 18.463369246913118],\n [-64.89836316975435, 18.464132223764288],\n [-64.8998442673829, 18.464491322030256],\n [-64.90760910092858, 18.464985030002047],\n [-64.9144762601582, 18.46449134885355],\n [-64.920984304708, 18.463818073517277],\n [-64.92102918947238, 18.463818073495418],\n [-64.9276270453788, 18.461932934903196],\n [-64.92821055964683, 18.46170858816898],\n [-64.93305789484405, 18.459599011383247],\n [-64.93848883426219, 18.45681627764131],\n [-64.9427078018858, 18.45416814567856],\n [-64.94611892552467, 18.45129558438975],\n [-64.94818360827308, 18.44896170128803],\n [-64.95047265736322, 18.44631355753217],\n [-64.95958394157654, 18.449096336240743],\n [-64.96918891936356, 18.450936511912904],\n [-64.97493406478839, 18.451295641244727],\n [-64.98238461035899, 18.45071212984844],\n [-64.98750137948791, 18.449724702592004],\n [-64.99391962720983, 18.44748051375355],\n [-64.99957495610427, 18.445505668513498],\n [-65.00244746174232, 18.4442040787749],\n [-65.00778856841382, 18.440703140497796],\n [-65.01730387293935, 18.449320792428804],\n [-65.03036486353825, 18.455380004280066],\n [-65.041540782568, 18.45910527704498],\n [-65.06066110698244, 18.459733689236426],\n [-65.08058927676372, 18.452821622328795],\n [-65.09181012263159, 18.44712151016823],\n [-65.10042770223689, 18.43953617500323],\n [-65.10729483048284, 18.428629579173073],\n [-65.11223203279654, 18.418845000299168],\n [-65.11375799099413, 18.406861165052256],\n [-65.11303987620146, 18.395775009516182],\n [-65.11488012191062, 18.391466205552984],\n [-65.1162715403262, 18.386618826303607],\n [-65.1167651977648, 18.383836014930058],\n [-65.11743849983745, 18.38024540604311],\n [-65.12286933193433, 18.373019200293317],\n [-65.12318353286673, 18.37225614150297],\n [-65.12426069188328, 18.370056857689864],\n [-65.12457489407574, 18.369293876557254],\n [-65.1286143643633, 18.36386294705288],\n [-65.13036486738696, 18.361529011620668],\n [-65.13512247342818, 18.350846847245624],\n [-65.13992496782923, 18.3363046033006],\n [-65.13943127748026, 18.328539794487764],\n [-65.13943127748027, 18.32840515274661],\n [-65.1376808194072, 18.32055062200604],\n [-65.1448172668756, 18.312875572581696],\n [-65.15069695436917, 18.3028665766882],\n [-65.15365929301866, 18.29312687935611],\n [-65.15388369030987, 18.281143046181757],\n [-65.15410808774489, 18.277417775620787]]]]},\n 'id': '00000000000000000022',\n 'properties': {'ALAND': 348021896,\n 'AWATER': 1550236201,\n 'DIVISION': '0',\n 'FUNCSTAT': 'A',\n 'GEOID': '78',\n 'INTPTLAT': '+18.3267480',\n 'INTPTLON': '-064.9712508',\n 'LSAD': '00',\n 'MTFCC': 'G4000',\n 'NAME': 'United States Virgin Islands',\n 'REGION': '9',\n 'STATEFP': '78',\n 'STATENS': '01802710',\n 'STUSPS': 'VI',\n 'mean': 15.149698223730617}}" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "", | |
"execution_count": null, | |
"outputs": [] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3", | |
"language": "python" | |
}, | |
"varInspector": { | |
"window_display": false, | |
"cols": { | |
"lenName": 16, | |
"lenType": 16, | |
"lenVar": 40 | |
}, | |
"kernels_config": { | |
"python": { | |
"library": "var_list.py", | |
"delete_cmd_prefix": "del ", | |
"delete_cmd_postfix": "", | |
"varRefreshCmd": "print(var_dic_list())" | |
}, | |
"r": { | |
"library": "var_list.r", | |
"delete_cmd_prefix": "rm(", | |
"delete_cmd_postfix": ") ", | |
"varRefreshCmd": "cat(var_dic_list()) " | |
} | |
}, | |
"types_to_exclude": [ | |
"module", | |
"function", | |
"builtin_function_or_method", | |
"instance", | |
"_Feature" | |
] | |
}, | |
"hide_input": false, | |
"toc": { | |
"nav_menu": {}, | |
"number_sections": true, | |
"sideBar": true, | |
"skip_h1_title": true, | |
"base_numbering": 1, | |
"title_cell": "Table of Contents", | |
"title_sidebar": "Table of Contents", | |
"toc_cell": false, | |
"toc_position": {}, | |
"toc_section_display": true, | |
"toc_window_display": true | |
}, | |
"language_info": { | |
"name": "python", | |
"version": "3.8.2", | |
"mimetype": "text/x-python", | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"pygments_lexer": "ipython3", | |
"nbconvert_exporter": "python", | |
"file_extension": ".py" | |
}, | |
"gist": { | |
"id": "", | |
"data": { | |
"description": "zonal stats", | |
"public": true | |
} | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment