ARCCSS-extremes / climpact

Calculate the ET-SCI climate extremes indices
GNU General Public License v3.0
42 stars 29 forks source link

Error in nc_create while calculating SPEI using climpact #109

Open aatreyee-nath opened 7 months ago

aatreyee-nath commented 7 months ago

Hello everyone, I am new to the climpact package. I am trying to use it for the calculating of SPEI with netCDF files. I was able to install and run it for the sample data provided. However when I am trying to work using my own input data the errors were as follows

Error in validObject(.Object) : 
  invalid class “climdexInput” object: 1: Quantiles for tmax are missing.
invalid class “climdexInput” object: 2: Quantiles for tmin are missing.
invalid class “climdexInput” object: 3: Quantiles for prec are missing.

After which I followed this issue and tried to reinstall climdex.pcic. However, my errors are now as follows

Error in R_nc4_create: Permission denied (creation mode was 4096)
Error in ncdf4::nc_create(paste(out.dir, cdx.dat$filename[x], sep = "/"),  : 
  Error in nc_create!

I am not sure whether there is any issue with my input files. I am very new to this package as well as working with NetCDF files. I have attached the input file (tmax_tmin_precip_2000-22.zip) for your reference. I would be grateful for any suggestions. tmax_tmin_precip_2000-22.zip

Thank you.

heroldn commented 7 months ago

Hi, I think this is just because the file already exists. Try delete the output file and run again.

On 01/12/2023 10:12 GMT aatreyee-nath @.***> wrote:

Hello everyone, I am new to the climpact package. I am trying to use it for the calculating of SPEI with netCDF files. I was able to install and run it for the sample data provided. However when I am trying to work using my own input data the errors were as follows

Error in validObject(.Object) : invalid class “climdexInput” object: 1: Quantiles for tmax are missing. invalid class “climdexInput” object: 2: Quantiles for tmin are missing. invalid class “climdexInput” object: 3: Quantiles for prec are missing.

After which I followed this issue https://github.com/ARCCSS-extremes/climpact2/issues/3#issue-64677591 and tried to reinstall climdex.pcic. However, my errors are now as follows

Error in R_nc4_create: Permission denied (creation mode was 4096) Error in ncdf4::nc_create(paste(out.dir, cdx.dat$filename[x], sep = "/"), : Error in nc_create!

I am not sure whether there is any issue with my input files. I am very new to this package as well as working with NetCDF files. I have attached the input file (tmax_tmin_precip_2000-22.zip) for your reference. I would be grateful for any suggestions. tmax_tmin_precip_2000-22.zip https://github.com/ARCCSS-extremes/climpact/files/13523980/tmax_tmin_precip_2000-22.zip

Thank you.

— Reply to this email directly, view it on GitHub https://github.com/ARCCSS-extremes/climpact/issues/109, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW3FAJBAZEDWTUMEVET3NDYHGUR7AVCNFSM6AAAAABACS7QB2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDANJUHEYTGOI. You are receiving this because you are subscribed to this thread.Message ID: @.***>