{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "fb5ca344", "metadata": { "ExecuteTime": { "end_time": "2022-11-28T02:35:25.994025Z", "start_time": "2022-11-28T02:35:25.953Z" } }, "outputs": [], "source": [ "# This is not working\n", "# The working solution is through xarray open_mfdataset, extend time as dimension, and assign time value" ] }, { "cell_type": "code", "execution_count": 1, "id": "f9c66c19", "metadata": {}, "outputs": [], "source": [ "library('ncdf4')\n", "library('stringi')\n", "library('stringr')" ] }, { "cell_type": "code", "execution_count": 2, "id": "251affe0", "metadata": {}, "outputs": [], "source": [ "setwd('/bog/amuttaqin/Datasets/TRMM/')" ] }, { "cell_type": "code", "execution_count": 3, "id": "eb986b8c", "metadata": {}, "outputs": [ { "data": { "text/html": [ "'/bog/amuttaqin/Datasets/TRMM'" ], "text/latex": [ "'/bog/amuttaqin/Datasets/TRMM'" ], "text/markdown": [ "'/bog/amuttaqin/Datasets/TRMM'" ], "text/plain": [ "[1] \"/bog/amuttaqin/Datasets/TRMM\"" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "getwd()" ] }, { "cell_type": "code", "execution_count": 33, "id": "4d89d444", "metadata": {}, "outputs": [], "source": [ "nc.files <- list.files(pattern= \"3B42.20121001.+nc4\")" ] }, { "cell_type": "code", "execution_count": 34, "id": "3278cb85", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "