Skip to content

Land regional subsetting: Convert netCDF dictionary to YAML #376

@samsrabin

Description

@samsrabin

The existing land diagnostics package uses this netCDF file to define regions:

/glade/campaign/cgd/tss/people/oleson/FROM_LMWG/diag/lnd_diag4.2/code/resources/region_definitions.nc

Here's the structure:

variables:
	int region(region) ;
	float BOX_S(region) ;
		BOX_S:long_name = "Southern Boundary" ;
		BOX_S:_FillValue = -9999.f ;
	float BOX_N(region) ;
		BOX_N:long_name = "Northern Boundary" ;
		BOX_N:_FillValue = -9999.f ;
	float BOX_W(region) ;
		BOX_W:long_name = "Western Boundary" ;
		BOX_W:_FillValue = -9999.f ;
	float BOX_E(region) ;
		BOX_E:long_name = "Eastern Boundary" ;
		BOX_E:_FillValue = -9999.f ;
	char PS_ID(region, ncl1) ;
		PS_ID:long_name = "Postscript File Id" ;
		PS_ID:_FillValue = "" ;
	char PTITSTR(region, ncl2) ;
		PTITSTR:long_name = "Region Title" ;
		PTITSTR:_FillValue = "" ;
	char BOXSTR(region, ncl3) ;
		BOXSTR:long_name = "Region Lat/Lon Title" ;
		BOXSTR:_FillValue = "" ;

For git-trackability and ease of working with the region definitions, this should be converted to a YAML dictionary in the ADF repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LDFSpecific request for land diagnosticscode clean-upMade code simpler and/or easier to read.config filesConcerns the ADF config (YAML) files

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions