You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried run space4time_proc function with my own dataset:
target data (similar to LST): ar1_kndvi
lc data: lcc_africa
but get the following errors:
TypeError: non-boolean (Missing) used in boolean context
Code for reproduction:
using Pkg
Pkg.activate("/Net/Groups/BGI/scratch/cxiao/local_land_cover_effect/src/oemc_landuse/bin/")
# Pkg.instantiate()
using YAXArrays
using DataFrames
using XLSX
using CSV
using Zarr
using NetCDF
using CairoMakie
using GeoMakie
using Statistics
using LinearAlgebra
using NamedArrays
using Combinatorics
using GLM
using BenchmarkTools
using ProgressMeter
using NetCDF
using Zarr
using Glob
using YAXArrayBase
using Dates
using Rasters
using Interpolations
using DiskArrayTools
using ColorSchemes
using Skipper
using YAXArraysToolbox
# the folder where the YAXArrays packages will allocate temporal files
YAXArrays.YAXdir("/Net/Groups/BGI/scratch/cxiao/local_land_cover_effect/results/tmp")
# load my own resilience info
ar1_kndvi = open_dataset("../result/processed/kndvi_0d05_16d_deseason_gs_dt_ac1.nc")
ar1_kndvi = ar1_kndvi["kNDVI"][lon =(-26 .. 61), lat = (-37 .. 38)]
# load my own lc info
lcc_final_cube = open_dataset("/Net/Groups/BGI/scratch/cxiao/local_land_cover_effect/result/processed/MCD12Q1_006_IGBP_fraction.percent.7200.3600.2001-2020.ltm.nc")
lcc_africa = lcc_final_cube["MCD12Q1_006_IGBP_fraction"][lon =(-26 .. 61), lat = (-37 .. 38)]
lcc_classes = ["Evergreen_Needleleaf_Forests",
"Evergreen_Broadleaf_Forests",
"Deciduous_Needleleaf_Forests",
"Deciduous_Broadleaf_Forests",
"Mixed_Forests",
"Closed_Shrublands",
"Open_Shrublands",
"Woody_Savannas",
"Savannas",
"Grasslands",
"Permanent_Wetlands",
"Croplands",
"Urban_and_Built-up_Lands",
"Cropland_Natural_Vegetation_Mosaics",
"Permanent_Snow_and_Ice",
"Barren",
"Water_Bodies"]
results_space4time = space4time_proc(ar1_kndvi, lcc_africa, time_axis_name = "time", lon_axis_name = "lon", lat_axis_name = "lat", classes_var_name = "classes", winsize = 5, minDiffPxlspercentage = 5, classes_vec = lcc_classes, max_value = 1, minpxl = 25, showprog = true)
The text was updated successfully, but these errors were encountered:
I tried run space4time_proc function with my own dataset:
target data (similar to LST): ar1_kndvi
lc data: lcc_africa
but get the following errors:
TypeError: non-boolean (Missing) used in boolean context
Code for reproduction:
The text was updated successfully, but these errors were encountered: