Skip to content

Add an example cube netCDF file #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Add an example cube netCDF file #266

merged 1 commit into from
Aug 5, 2024

Conversation

seisman
Copy link
Member

@seisman seisman commented Aug 5, 2024

We need a cube netCDF file for testing when wrapping the GMT_CUBE data structure in PyGMT (GenericMappingTools/pygmt#3150). I found the cube file cube.nc in the GMT repository: https://github.com/GenericMappingTools/gmt/tree/master/test/grdinterpolate.

Here is the cube information:

gmt grdinfo cube.nc
cube.nc: Title: Produced by grdmath
cube.nc: Command: Sat Jul 20 16:59:25 2019: ncecat -u level 1.nc 2.nc 3.nc 4.nc cube.nc
grdmath -R0/10/0/10 -I1 X Y MUL = 1.nc
cube.nc: Remark:
cube.nc: Gridline node registration used [Cartesian grid]
cube.nc: Grid file format: nf = GMT netCDF format (32-bit float), CF-1.7
cube.nc: x_min: 0 x_max: 10 x_inc: 1 name: x n_columns: 11
cube.nc: y_min: 0 y_max: 10 y_inc: 1 name: y n_rows: 11
cube.nc: z_min: 1 z_max: 5 z_inc: (variable) name: z n_levels: 4
cube.nc: z_levels: 1, 2, 3, 5
cube.nc: v_min: 0 v_max: 140 name: cube
cube.nc: scale_factor: 1 add_offset: 0
cube.nc: format: classic
cube.nc: Default CPT:

Need to note that we already have a cube file in cache (https://github.com/GenericMappingTools/gmtserver-admin/blob/master/cache/otemp.anal1deg.nc), but the file is too big (~15 MB) which is not suitable for testing purpose.

@seisman seisman requested review from joa-quim and Esteban82 August 5, 2024 08:37
@seisman seisman merged commit 8616f6a into master Aug 5, 2024
1 check passed
@seisman seisman deleted the cube branch August 5, 2024 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants