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
Hello all,
I am trying to generate the CPS values, using @stella-bourdin's CPyS python package. She requires the use NodeFileCompose to generate the snapshots file. My snapshots file is filled with NaNs, even with the example she provides in CPyS Github page. She has been so kind as to test herself those files, and she gets the correct values, not a single NaN. But not me!
I have tested it on my Apple M1, on an Intel MacBook Air, an on an AMD ChromeFlex PC (Debian Linux). Both compiling from source code and downloading from anaconda. With all the combinations of source and computer, I get NaNs. I am sure I am making one, probably more, mistakes, but for the life of me that I can't see them.
And this the information about the snaps_Dale.nc file created by NodeFileCompose:
> R
R version 4.4.0 (2024-04-24) -- "Puppy Cup"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin20
> library(ncdf4)
> snaps <- ncdf4::nc_open("snaps_Dale.nc")
> summary(ncvar_get(snaps, 'snap_lat'))
Min. 1st Qu. Median Mean 3rd Qu. Max.
9.00 11.62 13.25 17.28 22.25 36.50
> summary(ncvar_get(snaps, 'snap_lon'))
Min. 1st Qu. Median Mean 3rd Qu. Max.
130.8 133.8 141.0 141.3 148.8 155.0
> summary(ncvar_get(snaps, 'r'))
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.250 1.375 2.500 2.500 3.625 4.750
> summary(ncvar_get(snaps, 'az'))
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.00 84.38 168.75 168.75 253.12 337.50
> summary(ncvar_get(snaps, 'snap_zg'))
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
NA NA NA NaN NA NA 84000
> summary(ncvar_get(snaps, 'zg'))
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
NA NA NA NaN NA NA 2400
> snaps
File snaps_Dale.nc (NC_FORMAT_NETCDF4):
6 variables (excluding dimension variables):
int snap_pathid[snapshot] (Contiguous storage)
double snap_lon[snapshot] (Contiguous storage)
units: degrees_east
double snap_lat[snapshot] (Contiguous storage)
units: degrees_north
int snap_time[snapshot] (Contiguous storage)
units: hours since 1900-01-01 00:00:00.0
float snap_zg[az,r,level,snapshot] (Contiguous storage)
_FillValue: -32767
float zg[az,r,level] (Contiguous storage)
_FillValue: -32767
4 dimensions:
az Size:16
name: stereographic azimuth angle
units: degrees
r Size:10
name: stereographic great circle distance
units: degrees
snapshot Size:35 (no dimvar)
level Size:15 (no dimvar)
The text was updated successfully, but these errors were encountered:
Hello all,
I am trying to generate the CPS values, using @stella-bourdin's CPyS python package. She requires the use NodeFileCompose to generate the snapshots file. My snapshots file is filled with NaNs, even with the example she provides in CPyS Github page. She has been so kind as to test herself those files, and she gets the correct values, not a single NaN. But not me!
I have tested it on my Apple M1, on an Intel MacBook Air, an on an AMD ChromeFlex PC (Debian Linux). Both compiling from source code and downloading from anaconda. With all the combinations of source and computer, I get NaNs. I am sure I am making one, probably more, mistakes, but for the life of me that I can't see them.
The command I run is:
The csv input file is Dale.csv, downloaded from CPyS. These are its first rows:
The download_dale.nc is the ERA5 file, is downloaded using the API, as this:
And this the information about the snaps_Dale.nc file created by NodeFileCompose:
The text was updated successfully, but these errors were encountered: