From 02de43f1d08b97c4b05fb0513116098eda66b8fa Mon Sep 17 00:00:00 2001 From: Jeffrey Kwang <jkwang@usgs.gov> Date: Wed, 18 Dec 2024 10:23:43 -0600 Subject: [PATCH] removed code that was not necessary --- fireInIce/1_process/src/cores_to_shp.py | 4 ++-- fireInIce/2_visualize/src/xs_process.py | 9 --------- fireInIce/Snakefile_glacial_scan | 2 -- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/fireInIce/1_process/src/cores_to_shp.py b/fireInIce/1_process/src/cores_to_shp.py index 3110b32..61584e1 100644 --- a/fireInIce/1_process/src/cores_to_shp.py +++ b/fireInIce/1_process/src/cores_to_shp.py @@ -2,8 +2,8 @@ import pandas as pd import geopandas as gpd def main(core_data,core_shpfile): cd = pd.read_excel(core_data) - cd['Latitude'][2] = "58° 51’ 16.1†N" #datafix 2016, C3 - cd['Longitude'][2] = "134° 10’ 31.1†W" #datafix 2016, C3 + cd.loc[2, 'Latitude'] = "58° 51’ 16.1†N" #datafix 2016, C3 + cd.loc[2, 'Longitude'] = "134° 10’ 31.1†W" #datafix 2016, C3 core_name = [] Lat = [] diff --git a/fireInIce/2_visualize/src/xs_process.py b/fireInIce/2_visualize/src/xs_process.py index e3beb0a..c9dcb89 100644 --- a/fireInIce/2_visualize/src/xs_process.py +++ b/fireInIce/2_visualize/src/xs_process.py @@ -157,15 +157,6 @@ def main( buff_west, buff_east, buff_south, buff_north = buffer_shapefile( west, east, length, south, north, height, 25.0 ) - domain_geom = Polygon( - zip( - [buff_west, buff_west, buff_east, buff_east], - [buff_north, buff_south, buff_south, buff_north], - ) - ) - domain_polygon = gpd.GeoDataFrame(index=[0], crs=utm_crs, geometry=[domain_geom]) - buff_length = buff_west - buff_east - buff_height = buff_north - buff_south # build interpolators to sampling data from dem and ice field extent = list(get_raster_extent(proj_ds)) diff --git a/fireInIce/Snakefile_glacial_scan b/fireInIce/Snakefile_glacial_scan index 56ab1e7..0995265 100644 --- a/fireInIce/Snakefile_glacial_scan +++ b/fireInIce/Snakefile_glacial_scan @@ -1,5 +1,3 @@ -HUC8s = [19010301,19010304] - sb_id = "5e472c3ee4b0ff554f6837bc" rule all: -- GitLab