ideas-lab-nus / epwshiftr

Create future EnergyPlus Weather files using CMIP6 data
https://ideas-lab-nus.github.io/epwshiftr/
Other
30 stars 7 forks source link

init_cmip6_index Assertion on activity failed source NULL #86

Open chrisdane opened 2 months ago

chrisdane commented 2 months ago

Hi

The init_cmip6_index(..., source=NULL) usage seems broken:

packageDescription("epwshiftr")[c("Version", "Built")]
# 0.1.4
# R 4.1.2; ; 2024-04-12 10:18:46 UTC; unix
dt <- epwshiftr::init_cmip6_index(activity="CMIP", experiment="historical", variable="tas", frequency="mon") # ok
dt <- epwshiftr::init_cmip6_index(activity="CMIP", experiment="historical", variable="tas", frequency="mon", source=NULL) # error
Error in esgf_query(activity = unique(q$activity_drs), variable = unique(q$variable_id),  : 
  Assertion on 'activity' failed: Must be a subset of {'AerChemMIP','C4MIP','CDRMIP','CFMIP','CMIP','CORDEX','DAMIP','DCPP','DynVarMIP','FAFMIP','GMMIP','GeoMIP','HighResMIP','ISMIP6','LS3MIP','LUMIP','OMIP','PAMIP','PMIP','RFMIP','SIMIP','ScenarioMIP','VIACSAB','VolMIP'}, but has additional elements {'E3SM-Project','CAS'}.

Cheers, Chris