Commit a167f3f3 authored by Larkin Heintzman's avatar Larkin Heintzman

initial commit

parents
Pipeline #54 failed with stages
/matlab_data/
/matlab_data_10km/
/matlab_data_hiker_10km/
/matlab_data_locale/
/matlab_data_va_20km/
# Default ignored files
/workspace.xml
\ No newline at end of file
ags_grabber
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (tiny_ags_env)" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/ags_grabber.iml" filepath="$PROJECT_DIR$/.idea/ags_grabber.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
function result = importmap_py(save_filename)
% import map layers from pycharm generated code
% whitehorn: [37.474015, -80.868333]
% nolin state park: [37.304158, -86.206131]
% kentland: [37.196809, -80.548387]
% fnameelev = '/Users/ah/PycharmProjects/ags_grabber/map_layers/elv_data_[37.474015, -80.868333]_10.0km.csv';
% fnameriv = '/Users/ah/PycharmProjects/ags_grabber/map_layers/rivers_data_[37.474015, -80.868333]_10.0km.csv';
% fnamerivbd = '/Users/ah/PycharmProjects/ags_grabber/map_layers/rivers_bdd_data_[37.474015, -80.868333]_10.0km.csv';
% fnamerivin = '/Users/ah/PycharmProjects/ags_grabber/map_layers/rivers_bdd_inac_data_[37.474015, -80.868333]_10.0km.csv';
% fnameroad = '/Users/ah/PycharmProjects/ags_grabber/map_layers/roads_data_[37.474015, -80.868333]_10.0km.csv';
% fnamerr = '/Users/ah/PycharmProjects/ags_grabber/map_layers/railroads_data_[37.474015, -80.868333]_10.0km.csv';
% fnamep = '/Users/ah/PycharmProjects/ags_grabber/map_layers/powerlines_data_[37.474015, -80.868333]_10.0km.csv';
% fnamelbd = '/Users/ah/PycharmProjects/ags_grabber/map_layers/lakes_data_[37.474015, -80.868333]_10.0km.csv';
% fnamelin = '/Users/ah/PycharmProjects/ags_grabber/map_layers/lakes_inac_data_[37.474015, -80.868333]_10.0km.csv';
% temp file names to read from
fnameelev = 'C:\\Users\\Larkin\\ags_grabber\\map_layers\\elv_data_temp.csv';
fnameriv = 'C:\\Users\\Larkin\\ags_grabber\\map_layers\\rivers_data_temp.csv';
fnamerivbd = 'C:\\Users\\Larkin\\ags_grabber\\map_layers\\rivers_bdd_data_temp.csv';
fnamerivin = 'C:\\Users\\Larkin\\ags_grabber\\map_layers\\rivers_bdd_inac_data_temp.csv';
fnameroad = 'C:\\Users\\Larkin\\ags_grabber\\map_layers\\roads_data_temp.csv';
fnamerr = 'C:\\Users\\Larkin\\ags_grabber\\map_layers\\railroads_data_temp.csv';
fnamep = 'C:\\Users\\Larkin\\ags_grabber\\map_layers\\powerlines_data_temp.csv';
fnamelbd = 'C:\\Users\\Larkin\\ags_grabber\\map_layers\\lakes_data_temp.csv';
fnamelin = 'C:\\Users\\Larkin\\ags_grabber\\map_layers\\lakes_inac_data_temp.csv';
Zelev = load(fnameelev);
BWriver = load(fnameriv);
BWriverLF = load(fnamerivbd);
BWriverInac = load(fnamerivin);
BWroads = load(fnameroad);
BWrroads = load(fnamerr);
BWpower = load(fnamep);
BWlakeLF = load(fnamelbd);
BWlakeInac = load(fnamelin);
sZBW = size(Zelev);
%% elevation smoothing
%%%%% SMOOTH gradient of elevation
sZ = size(Zelev);
sigma = 2;
sZelev = imgaussfilt(Zelev,sigma);
sZgrad = imgradient(sZelev,'CentralDifference');
BWs = edge(sZgrad,'canny',[0.01 0.3]);
BWelevationGrad = double(BWs);
% figure, imshow(BWs)
%% save BW matrices
BWLF = BWelevationGrad + BWriver + BWriverLF + BWlakeLF + BWroads + BWrroads + BWpower;
BWInac = BWriverInac + BWlakeInac;
BWLF(BWLF ~= 0) = 1;
BWInac(BWInac ~= 0) = 1;
file_path = 'C:\\Users\\Larkin\\ags_grabber\\matlab_data\\'; % define your own path here!
% save_filename is just the ics point in question
save(strjoin({file_path, 'BW_LFandInac_Zelev_',save_filename,'.mat'},''),'BWLF','BWInac','sZelev')
result = 0
% clearvars; clc; close all; % try cleaning things up
end
\ No newline at end of file
This diff is collapsed.
arcgis==1.8.2
argon2-cffi @ file:///C:/ci/argon2-cffi_1596828549974/work
attrs @ file:///tmp/build/80754af9/attrs_1600298409949/work
backcall==0.2.0
bleach @ file:///tmp/build/80754af9/bleach_1600439572647/work
blinker==1.4
brotlipy==0.7.0
certifi==2020.6.20
cffi @ file:///C:/ci/cffi_1600699250966/work
chardet==3.0.4
colorama==0.4.3
cryptography==2.8
cycler==0.10.0
decorator==4.4.2
defusedxml==0.6.0
entrypoints==0.3
idna @ file:///tmp/build/80754af9/idna_1593446292537/work
importlib-metadata @ file:///C:/ci/importlib-metadata_1593446525189/work
ipykernel @ file:///C:/ci/ipykernel_1596208728219/work/dist/ipykernel-5.3.4-py3-none-any.whl
ipython @ file:///C:/ci/ipython_1598883894321/work
ipython-genutils==0.2.0
ipywidgets==7.5.1
jedi==0.16.0
Jinja2==2.11.2
jsonschema @ file:///C:/ci/jsonschema_1594363671836/work
jupyter-client==6.1.2
jupyter-core @ file:///C:/Users/bri11091/conda-bld/jupyter_core_1595863163509/work
keyring==21.2.0
kiwisolver==1.2.0
lerc @ file:///Volumes/JetDrive/virtualenv/miniconda/conda-bld/lerc_1594078116229/work
MarkupSafe @ file:///C:/ci/markupsafe_1594405949945/work
matplotlib @ file:///C:/ci/matplotlib-base_1592846084747/work
mistune @ file:///C:/ci/mistune_1594373272338/work
mkl-fft==1.2.0
mkl-random==1.1.1
mkl-service==2.3.0
nbconvert==5.6.1
nbformat==5.0.7
notebook @ file:///C:/Users/bri11091/conda-bld/notebook_1599601693431/work
ntlm-auth==1.4.0
numpy @ file:///C:/ci/numpy_and_numpy_base_1596233945180/work
oauthlib==3.1.0
packaging==20.4
pandas @ file:///C:/ci/pandas_1598371525254/work
pandocfilters==1.4.2
parso @ file:///tmp/build/80754af9/parso_1596826841367/work
pickleshare @ file:///C:/ci/pickleshare_1594374056827/work
plotly @ file:///tmp/build/80754af9/plotly_1599764639247/work
prometheus-client==0.7.1
prompt-toolkit @ file:///tmp/build/80754af9/prompt-toolkit_1598885458782/work
pycparser @ file:///tmp/build/80754af9/pycparser_1594388511720/work
Pygments==2.6.1
PyJWT==1.7.1
pyOpenSSL @ file:///tmp/build/80754af9/pyopenssl_1594392929924/work
pyparsing==2.4.7
pyproj==2.6.1.post1
pyrsistent @ file:///C:/ci/pyrsistent_1600123688363/work
pyshp @ file:///tmp/build/80754af9/pyshp_1600141782871/work
PySocks @ file:///C:/ci/pysocks_1594394709107/work
python-dateutil==2.8.1
pytz==2019.3
pywin32-ctypes==0.2.0
pywinpty==0.5.7
pyzmq==19.0.0
requests @ file:///tmp/build/80754af9/requests_1592841827918/work
requests-kerberos==0.12.0
requests-ntlm==1.1.0
requests-oauthlib==1.3.0
requests-toolbelt==0.9.1
retrying==1.3.3
scipy @ file:///C:/ci/scipy_1597686737426/work
Send2Trash==1.5.0
six==1.15.0
terminado==0.8.3
testpath==0.4.4
tornado==6.0.4
traitlets==4.3.3
urllib3 @ file:///tmp/build/80754af9/urllib3_1597086586889/work
wcwidth @ file:///tmp/build/80754af9/wcwidth_1593447189090/work
webencodings==0.5.1
widgetsnbextension==3.5.1
win-inet-pton==1.1.0
wincertstore==0.2
winkerberos==0.7.0
zipp==3.1.0
function temp = test_engine(input_string)
temp = input_string;
temp
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment