MITgcm / gcmfaces

gcmfaces is a Matlab / Octave toolbox that handles gridded earth variables in generic fashion. Read more at:
http://gcmfaces.readthedocs.io/en/latest/
MIT License
24 stars 21 forks source link

Loading in LLC270 grid ecco v05 #22

Open awil5504 opened 4 months ago

awil5504 commented 4 months ago

Hi,

I have been attempting to load in an LLC270 grid to MATLAB so I can use some of the interpolation and remapping tools available in this package but am having trouble getting it to work. First I want to point out that in gcmfaces_polygonangle line 39 the radtodeg function is incorrect and should be rad2deg (at least in MATLAB 2024b). When I ran the demo I was getting an error until this change.

After adjusting that and I downloaded the LLC270 grid data from the ECCO data portal here: https://data.nas.nasa.gov/ecco/eccodata/llc_270/grid/ When I attempt a grid_load, e.g. grid_load('../llc270_grid/', 5, 'compact', 0, 0) I am running into a missing file error for grid_cs32*bin. I looked into this a bit online but haven't been able to figure out if this is a v04 specific file or if it should exist for v05 as well. I also cannot tell if this is LLC90 specific or if it is generic for the grid type.

Can you please inform me why/if these files are necessary, and if they are then how to acquire a corresponding version for LLC270?

Andrew