Skip to content
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

Fix coordinates #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ezhilsabareesh8
Copy link

This PR address issue 6, by fixing the coordinates and time.

@anton-seaice
Copy link

Do you have example output?

Will you do the fix for COSIMA/initial_conditions_access-om2#3 as a seperate PR ?

util.py Outdated Show resolved Hide resolved
@ezhilsabareesh8
Copy link
Author

Do you have example output?

Here is the example output

netcdf woa23_ts_06_mom025 {
dimensions:
	lon = 1440 ;
	lat = 1142 ;
	depth = 38 ;
	time = UNLIMITED ; // (1 currently)
variables:
	double lon(lon) ;
		lon:long_name = "Nominal Longitude of T-cell center" ;
		lon:units = "degree_east" ;
		lon:modulo = 360. ;
		lon:point_spacing = "even" ;
		lon:axis = "X" ;
	double lat(lat) ;
		lat:long_name = "Nominal Latitude of T-cell center" ;
		lat:units = "degree_north" ;
		lat:point_spacing = "uneven" ;
		lat:axis = "Y" ;
	double depth(depth) ;
		depth:long_name = "depth" ;
		depth:units = "meters" ;
		depth:positive = "down" ;
		depth:point_spacing = "uneven" ;
		depth:axis = "Z" ;
	double time(time) ;
		time:long_name = "time" ;
		time:units = "months since 0001-01-01 00:00:00" ;
		time:cartesian_axis = "T" ;
		time:calendar_type = "noleap" ;
		time:calendar = "noleap" ;
	double temp(time, depth, lat, lon) ;
		temp:_FillValue = -1.e+34 ;
		temp:missing_value = -1.e+34 ;
		temp:long_name = "conservative temperature calculated using teos10 from objectively analysed mean fields for sea_water_temperature" ;
		temp:units = "degrees celsius" ;
	double salt(time, depth, lat, lon) ;
		salt:units = "1" ;
		salt:_FillValue = -1.e+34 ;
		salt:missing_value = -1.e+34 ;
		salt:long_name = "Objectively analyzed mean fields for sea_water_practical_salinity at standard depth levels." ;
}

and time is

[cftime.Datetime360Day(1, 2, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(1, 3, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(1, 4, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(1, 5, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(1, 6, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(1, 7, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(1, 8, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(1, 9, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(1, 10, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(1, 11, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(1, 12, 1, 0, 0, 0, 0, has_year_zero=True)]

[cftime.Datetime360Day(2, 1, 1, 0, 0, 0, 0, has_year_zero=True)]

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