Wednesday, April 11, 2018

Code snippet: Get DateTime from UTC timestamp in ArcGIS Online

Be The First To Comment
 ArcGIS Online stores all date values in UTC.  A short snippet to convert UTC timestamp to DateTime using Python.

      from datetime import datetime

      utcTimeStamp = 1472218452855

      date = datetime.fromtimestamp(utcTimeStamp / 1e3)
      
      print(date)

output: 2016-08-26 09:34:12.855000

Thursday, April 5, 2018

Override Default Location of Jupyter Notebook file

Be The First To Comment
This post is continue of  ArcGIS Pro, Conda, Jupyter Setup post. The default location of Jupter Notebook IronPython (*.ipynb) file is   C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3 - 
               import os
               print (os.getcwd())


To change the default location of Jypyter notebook script file(*ipynb) you need to configure jupyter_notebook_config.py

Tuesday, April 3, 2018

ArcGIS Pro, Conda, Jupyter, and ArcGIS for Python setup

Be The First To Comment
   
     B. Installation of Jupyter and ArcGIS for Python API can be done in two ways. 


1.       Using  ArcGIS Pro’s Python Package Manager Graphical User Interface ( uses Conda under the hood)
2.       Using Conda via Python Command Prompt

1. Using ArcGIS Pro's Python Pacakge Manager
 i.    Click About ArcGIS Pro

ii. Select packages you would like to install
 

© 2011 GIS and Remote Sensing Tools, Tips and more .. ToS | Privacy Policy | Sitemap

About Me