Getting data with Google Colab

Google Colab is an online platform where you can run written codes and check results easily.

_images/image-14.png

Set up Google Colab environment

Get Google Colab data and upload to Google Drive

Google Colab requires a Google account and Google Drive for data access.

  • Download data below. You should have a je-sample directory in.

je-sample.zip

  • In Google Drive, create a work folder and drag and drop je-sample folder into it.

_images/image-15.png

Code set is stored in the je.ipynb file. Let’s load it in Google Colab.

  • Go to Google Colab

  • Import the je.ipynb file as shown below, and the code set should be displayed.

_images/image-16.png

Now, Google Drive environment needs to be mount.

Set launch envrionment in Google Colab

  • Launch Mount Google Drive code as below. A connection and access authorization to your Google account is required.

  • Once launched, browser panel should appears on the left side. You should retrieve je-sample folder which has been uploaded before.

_images/image-17.png

je-sample directory path has to be set to environment.

  • On browser panel, right click to je-sample folder and copy access path.

  • Paste this access path on gdpath variable and launch

_images/image-18.png

Install JAXA Earth API for Python

On je-sample folder, JAXA Earth Earth API for Python is stored in jaxa-earth-0.1.3.zip file.

  • On Google Colab in JAXA Earth section, run the 3 first codes as below image.
    • First code install ZIP file

    • Second one import libraries including the just installed JAXA Earth library

    • Third one define a function to get data from JAXA Earth

_images/image-19.png

Google Colab enviroment is ready to use.

Get Precipitation rate (Daily)

Data can be retrieved using the following parameters:

  • ppu: image resolution

  • bbox: area of interest

  • collection: target dataset

  • sdate: start date

  • edate: end date

For dataset details, refer to the documentation at https://data.earth.jaxa.jp/en/datasets/#/id/JAXA.EORC_GSMaP_standard.Gauge.00Z-23Z.v6_daily

Run the codes as shown in the image below. Output data is stored as rain variable.

_images/image-20.png
  • Run the next code to visualize dataset.

_images/image-21.png

Since color range may be difficult to see, we can adjust the range values from -6 to 2 as example.

  • Run the next code to visualize filtered dataset.

_images/image-22.png

Get Shortwave Radiation (Daily)

Shortwave radiation can be retrieved with the same code, only the collection variable needs to be changed to the dataset ID. Dataset details can be checked in the documentation: https://data.earth.jaxa.jp/en/datasets/#/id/JAXA.JASMES_Aqua.MODIS_swr.v811_global_daily

  • Run the following code to get data as radiation variable.

  • Extent and resolution can be changed by editing ppu and bbox variables.

_images/image-23.png
  • To visualize result, use the code previously used to visualize precipitation rate, replace rain variable with radiation, and run it.

_images/image-24.png