Hi,
I am trying to use NYC census shapefile from here - https://www1.nyc.gov/site/planning/d...-metadata.page
The coordinates (XY) are not in standard lat long format because of which I am unable to use geoinpoly command for further processing of data.
I get the following error:
*************************************************
*IMPORTING SHAPEFILE
shp2dta using nyct2010, data("nyc_attr.dta") coord("nyc_coord.dta") ///
genid(stid) gencentroids(cc) replace
use nyc_attr, clear
destring BoroCode, replace
spmap BoroCode using "nyc_coord.dta", id(stid) fcolor(Greys) ocolor(black) title("NYC School Distrcits")
*COMBINING WITH OTHER DATA
*clear
*import excel "....\NYCCAS Year 1 thru 10 Raw Data\NOX_raw_data_year1_10.xlsx", sheet("raw_data") firstrow
*keep blk_corr_no2 nox_start_datetime nox_end_date_time season longitude latitude site_type
geoinpoly latitude longitude using "nyc_coord.dta"
272844.29 120128.37
Y (latitude) must be between -90 and 90 in coordinates file
************************************************** *************************************
Can anyone help please?
Thanks!
Related Posts with Using NYC shapefiles | Issue with Lat Long
Help!!! Convergence error in calculating of productivity by SFA - "Kumbhakar, S.C, 2015"Hi everyone, I am calculating total factor productivity by the SFA model in using STATA. When I ru…
How do I get time difference (gap) in second?I have a dataset like this Code: * Example generated by -dataex-. To install: ssc install dataex cl…
How to Reduce Rows by Collapsing Repeating DatesI'm trying to create an appropriate time series from the below data. The dates repeat because of the…
PPML extraction of standard errors matrix of fixed effectsDear @Joao Santos Silva As PPML produces robust standard errors, I am wondering how I can extract t…
text file without the .txt extensionHi Stata Users. I have multiple text file but without .txt extension. As I have many files I do not …
Subscribe to:
Post Comments (Atom)
0 Response to Using NYC shapefiles | Issue with Lat Long
Post a Comment