Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start fresh with adding new sites #16

Merged
merged 2 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
.DS_Store
*.xlsx
isochrones/
isochrones_no_overlap.rds
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM rocker/r-ver:4.0.5

# DeGAUSS container metadata
ENV degauss_name="drivetime"
ENV degauss_version="1.2.0"
ENV degauss_version="1.3.0"
ENV degauss_description="distance and drive time to care sites"
ENV degauss_argument="care_site [default: none]"

Expand Down Expand Up @@ -37,6 +37,8 @@ ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/atlanta_is
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/bch_isochrones.rds isochrones/bch_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/cc_isochrones.rds isochrones/cc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/cchmc_isochrones.rds isochrones/cchmc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/chla_isochrones.rds isochrones/chla_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/chnola_isochrones.rds isochrones/chnola_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/chop_isochrones.rds isochrones/chop_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/cnmc_isochrones.rds isochrones/cnmc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/cohen_isochrones.rds isochrones/cohen_isochrones.rds
Expand Down Expand Up @@ -69,6 +71,7 @@ ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/omaha_isoc
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/packard_isochrones.rds isochrones/packard_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/palmer_isochrones.rds isochrones/palmer_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/primary_isochrones.rds isochrones/primary_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/rady_isochrones.rds isochrones/rady_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/rainbow_isochrones.rds isochrones/rainbow_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/riley_isochrones.rds isochrones/riley_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/seattle_isochrones.rds isochrones/seattle_isochrones.rds
Expand All @@ -82,6 +85,7 @@ ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/umich_isoc
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/unc_isochrones.rds isochrones/unc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/upmc_isochrones.rds isochrones/upmc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/uva_isochrones.rds isochrones/uva_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/vandy_isochrones.rds isochrones/vandy_isochrones.rds
COPY entrypoint.R .

WORKDIR /tmp
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
If `my_address_file_geocoded.csv` is a file in the current working directory with coordinate columns named `lat` and `lon`, then the [DeGAUSS command](https://degauss.org/using_degauss.html#DeGAUSS_Commands):

```sh
docker run --rm -v $PWD:/tmp ghcr.io/degauss-org/drivetime:1.2.0 my_address_file_geocoded.csv cchmc
docker run --rm -v $PWD:/tmp ghcr.io/degauss-org/drivetime:1.3.0 my_address_file_geocoded.csv cchmc
```

will produce `my_address_file_geocoded_drivetime_1.1.0_cchmc.csv` with added columns:
Expand Down Expand Up @@ -74,6 +74,10 @@ A.I. duPont Hospital for Children | `dupont`
Rainbow Babies and Children's Hospital | `rainbow`
UNC Hospitals Children's Specialty Clinic | `unc`
Barbara Bush Children's Hospital at Maine Medical | `maine`
Children's Hospital of New Orleans | `chnola`
Rady Children's Hospital | `rady`
Children's Hospital Los Angeles | `chla`
Monroe Carell Jr. Children's Hospital at Vanderbilt | `vandy`

## Geomarker Methods

Expand Down
6 changes: 5 additions & 1 deletion center_addresses.csv
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ Dell Children's Medical Center of Central Texas,dell,4900 Mueller Boulevard Aust
A.I. duPont Hospital for Children,dupont,1600 Rockland Rd Wilmington DE 19803,39.778732,-75.556624
Rainbow Babies and Children's Hospital,rainbow,11100 Euclid Ave Cleveland OH 44106,41.504317,-81.60584
UNC Hospitals Children's Specialty Clinic,unc,101 Manning Drive Chapel Hill NC 27514,35.904679,-79.050713
Barbara Bush Children's Hospital at Maine Medical,maine,22 Bramhall St Portland ME 04102,43.653371,-70.275146
Barbara Bush Children's Hospital at Maine Medical,maine,22 Bramhall St Portland ME 04102,43.653371,-70.275146
Children's Hospital of New Orleans,chnola,200 Henry Clay Ave New Orleans LA 70118,29.9177976,-90.1299919
Rady Children's Hospital,rady,3020 Children's Way San Diego CA 92123,32.797762,-117.1539819
Children's Hospital Los Angeles,chla,4650 Sunset Blvd Los Angeles CA 90027,34.0977464,-118.2924558
Monroe Carell Jr. Children's Hospital at Vanderbilt,vandy,2200 Children's Way Nashville TN 37232,36.1393484,-86.8049943
2 changes: 2 additions & 0 deletions download_isochrones.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ purrr::walk(1:length(isochrones_no_overlap),
~saveRDS(isochrones_no_overlap[[.x]],
glue::glue('isochrones/{names(isochrones_no_overlap)[.x]}_isochrones.rds')))

system2("aws s3 cp isochrones s3://geomarker/drivetime/isochrones --recursive")
system2("aws s3 cp center_addresses.csv s3://geomarker/drivetime/")

88 changes: 0 additions & 88 deletions drivetime.R

This file was deleted.

Binary file removed isochrones_no_overlap.rds
Binary file not shown.