polaris.remap.MappingFileStep.dst_from_proj
- MappingFileStep.dst_from_proj(filename, mesh_name, x_var='x', y_var='y', proj_attr=None, proj_str=None)[source]
Set the destination grid from a file with a projection grid.
- Parameters:
filename (str) – A file containing the projection grid
mesh_name (str) – The name of the projection grid
x_var (str, optional) – The name of the x coordinate in the file
y_var (str, optional) – The name of the y coordinate in the file
proj_attr (str, optional) – The name of a global attribute in the file containing the proj string for the projection
proj_str (str, optional) – A proj string defining the projection, ignored if
proj_attr
is provided