def write_NetCDF_georeference(origin, outfile):
 geo_ref = ensure_geo_reference(origin)
 geo_ref.write_NetCDF(outfile)
 return geo_ref

def write_NetCDF_georeference ( origin , outfile ) : geo_ref = ensure_geo_reference ( origin ) geo_ref . write_NetCDF ( outfile ) return geo_ref
write georeference info to a netcdf file .