pjdohertygis / SARCOP

This is a GitHub page for recording and resolving issues related to SARCOP.
https://nsargc.napsgfoundation.org/
GNU General Public License v3.0
10 stars 0 forks source link

Daily Archive Notebook #141

Closed pjdohertygis closed 3 years ago

pjdohertygis commented 3 years ago

@afackler has created a "daily archive" Jupyter Notebook

FEMA Internal: https://fema.maps.arcgis.com/home/item.html?id=ba5ce30f0d59436298feedf700fa3e2b

Adam can you share the code here so others can take a look?

afackler commented 3 years ago

Attached is the Jupyter notebook file. It can be brought into ArcGIS Online by downloading this file, then going to "Add Item" and "From your computer". It will automatically upload as a Jupyter notebook.

I am still working with Esri to figure out the moving data issue. Right now the script will export every specified feature layer as a geodatabase to the root folder in ArcGIS Online. I will post updates on any progress or any changes to the code.

ArchiveData.zip

EDIT: Once you pull it into ArcGIS Online, go to the Notebook's Settings page, scroll all the way down to Notebook Runtime, and select ArcGIS Notebook Python 3 Standard 4.0 image

pjdohertygis commented 3 years ago

Hit one issue yesterday where it published the tracklog a few times in one session and one of the gdb was corrupted. Ran it a second time with no issues.

Also, is there a way to improve the item and file naming?

image

afackler commented 3 years ago

Not sure why the gbd would become corrupt... did it run like normal? Any error codes?

Yes, we can change the naming scheme. What do you want it to be?

pjdohertygis commented 3 years ago

@afackler any major updates on our Jupyter approach?

afackler commented 3 years ago

I did find a workaround for the issue of the data not moving to the desired folder and implemented it into the USAR archive script a while back. After testing with the sandbox data, the script works well with the workaround with little changes overall. Otherwise no other major updates on the tech end. As for sharing the script, I am working on getting the code into a public repository to share out on NAPSG's github. I will have it released before our prep tech talk on Dec 9.

pjdohertygis commented 3 years ago

Ok sounds good - I'll go ahead and close this!