Skip to content

Applying PET to ocean model data (ROMS) #145

@dgwyther

Description

@dgwyther

Hello,

I'm trying to apply your toolbox to some ocean model data. I have looked through the documentation and at some of the recent issues raised (e.g. the POP3 issue), but I don't think my question has been addressed.

I have ocean model data from ROMS (e.g. sea surface height over a year of model integration). The grid is slightly rotated clockwise and has slowly varying horizontal resolution. As a result, the lon and lat coordinates are 2-D. For example, the longitude coordinate (on this Arakawa-C grid) is:

lon_rho (eta_rho, xi_rho)
long_name : longitude of RHO-points
units : degree_east
standard_name : longitude
field : lon_rho, scalar
float64

I have tried to format my data to match the example data and the data in the POP3 issue, however, I'm not sure I can match the data format with 1-dimensional coordinates. Possibly I can't apply the py-eddy-tracker to this model data?

I have dumped the nc-dump of data here:

netcdf test_roms_output_truth_8013 {
dimensions:
	ocean_time = UNLIMITED ; // (0 currently)
	time = 31 ;
	latitude = 317 ;
	longitude = 272 ;
	xi_u = 271 ;
	eta_v = 316 ;
variables:
	float zeta(time, latitude, longitude) ;
		zeta:_FillValue = 1.e+37f ;
		zeta:long_name = "free-surface" ;
		zeta:units = "meter" ;
		zeta:time = "ocean_time" ;
		zeta:grid = "grid" ;
		zeta:location = "face" ;
		zeta:field = "free-surface, scalar, series" ;
		zeta:coordinates = "lon_rho lat_rho ocean_time" ;
	double h(latitude, longitude) ;
		h:_FillValue = NaN ;
		h:long_name = "bathymetry at RHO-points" ;
		h:units = "meter" ;
		h:grid = "grid" ;
		h:location = "face" ;
		h:field = "bath, scalar" ;
		h:coordinates = "lon_rho lat_rho" ;
	double lon_bnds(latitude, xi_u) ;
		lon_bnds:_FillValue = NaN ;
		lon_bnds:long_name = "longitude of U-points" ;
		lon_bnds:units = "degree_east" ;
		lon_bnds:standard_name = "longitude" ;
		lon_bnds:field = "lon_u, scalar" ;
		lon_bnds:comments = "longitude of U-points on arakawa-C grid" ;
	double lat_bnds(eta_v, longitude) ;
		lat_bnds:_FillValue = NaN ;
		lat_bnds:long_name = "latitude of V-points" ;
		lat_bnds:units = "degree_north" ;
		lat_bnds:standard_name = "latitude" ;
		lat_bnds:field = "lat_v, scalar" ;
		lat_bnds:comments = "latitude of V-points on arakawa-C grid" ;
	double long(latitude, longitude) ;
		long:_FillValue = NaN ;
		long:long_name = "longitude of RHO-points" ;
		long:units = "degree_east" ;
		long:standard_name = "longitude" ;
		long:field = "lon_rho, scalar" ;
	double lat(latitude, longitude) ;
		lat:_FillValue = NaN ;
		lat:long_name = "latitude of RHO-points" ;
		lat:units = "degree_north" ;
		lat:standard_name = "latitude" ;
		lat:field = "lat_rho, scalar" ;
	double time(time) ;
		time:_FillValue = NaN ;
		time:long_name = "time since initialization" ;
		time:field = "time, scalar, series" ;
		time:units = "seconds since 1990-01-01" ;
		time:calendar = "proleptic_gregorian" ;

// global attributes:
		:file = "outer_his.nc" ;
		:format = "netCDF-3 64bit offset file" ;
		:Conventions = "CF-1.4, SGRID-0.3" ;
		:type = "ROMS/TOMS history file" ;

		:coordinates = "lon_bnds lat long lat_bnds" ;
}

I've also attached this testing file of ROMS data if it helps to clarify whether PET can be applied to this file.

Many thanks in advance,
Dave

test_roms_output_truth_8013.nc.zip
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions