Skip to content

netcdf limits? #74

Description

@anthoni-p

getting an error when trying to read a netcdf with per PFT data, not sure where it comes from.

>   S3.gcp2021.src=defineSource("S3_GCP2021","S3_GCP2021"
+                               ,"/pd/data/lpj/GCP/GCP_2021/ftpUpload/LPJ-GUESS/S3",format=NetCDF
+                               ,contact="xxx",institute="xxx")
>   cvegpft.s3.21=getField(S3.gcp2021.src,"cVegpft",file.name = "LPJ-GUESS_S3_cVegpft.nc")

Error in (function (..., sorted = TRUE, unique = FALSE)  : 
  Cross product of elements provided to CJ() would result in 2163283200 rows which exceeds 
.Machine$integer.max == 2147483647

Can only parts of such a file get read in, e.g. PFT index 1, how can we specify that in a getfield?

here ncdump info of the files, yearly data, so not really that many time steps:
netcdf LPJ-GUESS_S3_cVegpft {
dimensions:
PFT = 26 ;
longitude = 720 ;
latitude = 360 ;
time = UNLIMITED ; // (321 currently)
variables:
int PFT(PFT) ;
PFT:long_name = "plant functional type" ;
double longitude(longitude) ;
longitude:units = "degrees_east" ;
longitude:long_name = "longitude" ;
double latitude(latitude) ;
latitude:units = "degrees_north" ;
latitude:long_name = "latitude" ;
double time(time) ;
time:units = "days since 1700-01-01" ;
time:long_name = "time" ;
time:calendar = "noleap" ;
float cVegpft(time, latitude, longitude, PFT) ;
cVegpft:units = "kg m-2" ;
cVegpft:_FillValue = -99999.f ;
cVegpft:long_name = "Vegtype level Carbon in Vegetation" ;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions