Old SpatialReference to new VertexGrid #2511
-
I use version 3.9.3. I recently received an old script that uses mf2005. I ran the code to understand what it does, but the spatial reference is defined with a deprecated SpatialReference. I want to know which module I should use. This is the script:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@JoshuaRendon, mf1.modelgrid.set_coord_info(xoff=xll, yoff=yll, angrot=0, epsg=3116)
grid = mf1.modelgrid You can also get a modeltime object, which has fairly robust time support, by calling: modeltime = mf1.modeltime
modeltime.start_datetime ="7/4/2000" |
Beta Was this translation helpful? Give feedback.
@JoshuaRendon,
The
modelgrid
object is the replacement to the oldSpatialReference
class. TheGrid
classes support structured, vertex, and unstructured grid representations. You can get aStructuredGrid
object from your code by simply calling:You can also get a modeltime object, which has fairly robust time support, by calling: