Home

Extracting value from raster image

Created on: 8/21/19 Last update: 8/21/19 Using Raster Calculator to extract specific value from raster image. For example, extracting corn and soybean from CDL: (“image” = 1)1 + (“image” = 5)5 + (“image” > 5)255 + ((“image” < 5) AND (“image” < 1))255 Reference Extract specific values from raster in QGIS

Read more

CKAN Datastore 500 Error Solution

Created on: 8/19/19 Last update: 8/19/19 Description The “Upload to DataStore” function in the dataset page does not work because of the 500 Server Error: Also, the http://127.0.0.1:8800 cannot be opened because of the 500 Server Error. Check the error log /var/log/apache2/datapusher.error.log: [Mon Aug 19 13:35:05.648265 2019] [wsgi:err...

Read more

Converting Latex to Word

Created on: 8/12/19 Last update: 8/12/19 Converting tex file to other editable text could be an annoying job. The format of output file would be messy most times. Here are some methods to avoid these issues. Converting manuscript from Latex to Word Pandoc Manuscript usually includes many references. It should be declared in the Pandoc comma...

Read more

U.S. State Fips

Created on: 8/10/19 Last update: 8/10/19 FIPS Abbreviation Name FIPS Abbreviation Name 1 AL ALABAMA 31 NE NEBRASKA 2 AK ALASKA 32 NV NEVADA 4 AZ ARIZONA 33 NH ...

Read more

CKAN Dataset Page 500 Error Solution

Created on: 8/10/19 Last update: 8/10/19 Check the CKAN error log: tail -f /var/log/apache2/ckan_default.error.log Find the error like: [Thu Jul 18 00:59:42.554478 2019] [wsgi:error] [pid 32569:tid 139839545399040] [remote 127.0.0.1:34041] Error - <class 'routes.util.GenerationException'>: url_for can only return a string, got unicode...

Read more

Installing Ruby and Jekyll on MacOS

Created on: 6/16/19 Last update: 6/16/19 Here is a short note of Jekyll installation based on the official documentation 1. Installing the Latest Ruby Ruby is preinstalled on MacOS and it is not recommended to upgrade or uninstall libraries coming with the system. Here is the solution to safely install and use the latest Ruby without touchin...

Read more

Jupyter Notebook Cheatsheet

Created on: 6/12/19 Last update: 6/12/19 Specifying Python Kernel for Jupyter Notebook Install nb_conda package in the conda environment 1: conda install nb_conda Then the “Change kernel” option will be added in the kernel menu of Jupyter Notebook. Use your conda environment in Jupyter Notebooks ↩

Read more

Git Global Configuration

Created on: 6/12/19 Last update: 6/12/19 User Edit the configuration file at ~/.gitconfig. Add the following content and replace [*] with user information: [user] email = [GITHUB_EMAIL] name = [GITHUB_USERNAME] Gitignore Edit the configuration file at ~/.gitconfig. Add the path of global gitignore file to excludesfile unde...

Read more