Posts

Finding UTM zones based on given latitude and longitude

Image
 UTM (Universal Transverse Mercator) is a projected coordinate system. Its a meter based coordinate system which gives where earth is divided into 60 longitudinal zones and the coordinate values in each zone is in meters within that zone. The origin of each zone is located at the intersection of intersection of the equator and a longitudinal boundaries of each zone. Very often the WGS84 coordinates which are expressed in longitude and latitude and are referred as EPSG:4326 coordinates are converted to UTM to do several geospatial operations where a meter based distance is used or expected as an output of that geospatial operations. Since UTM is more accurate than other meter based counter parts its becomes a good choice to convert the WGS84, EPSG:4326 coordinates to meters using UTM.  Given below is a method to get the EPSG code of UTM zones which I often use on a day to day basis for my geospatial work. The method  findEPSG calls the method getZones which internally uses...

Getting around with Anaconda License violation while using Conda or Miniconda

Image
If you are a Conda or Miniconda user you might have noticed that installing Anaconda packages via the default channel https://repo.anaconda.com/pkgs/ now requires a commercial license if you are an enterprise . If you are using it for individual purposes or are a startup, you are still able to use it without violating any license. So for eg. if you normally installed conda and miniconda using the installers or any package manager and do a  conda install <package> it by default uses a default package repo channel https://repo.anaconda.com/pkgs/ to download that python package and install it. So you might be violating the licence by using this repo URL as your default channel.  To confirm whether you are violating the license one can issue  conda config --show default_channels     It can be seen that default repo is set to use https://repo.anaconda.com/pkgs/   channel URLs.  To get around this violation there are multiple options. I will list 2 o...