kinverarity1 / aseg_gdf2

Python code to help read ASEG GDF2 packages
https://pypi.org/project/aseg-gdf2/
MIT License
9 stars 2 forks source link

Cater for fields which contain multiple values #6

Closed kinverarity1 closed 5 years ago

kinverarity1 commented 6 years ago

e.g. the last few from this .dfn file:

DEFN 10 ST=RECD,RT=;HEIGHT:F10.2:NULL=-99999.99,UNIT=m,Laser altimeter measured height of Tx loop centre above ground
DEFN 11 ST=RECD,RT=;INVHEI:F10.2:NULL=-99999.99,UNIT=m,Calulated inversion height
DEFN 12 ST=RECD,RT=;DOI:F10.2:NULL=-99999.99,UNIT=m,Calculated depth of investigation
DEFN 13 ST=RECD,RT=;Elev:30F12.2:NULL=-9999999.99,UNIT=m,Elevation to the top of each layer
DEFN 14 ST=RECD,RT=;Con:30F15.5:NULL=-9999999.99999,UNIT=mS/m,Inverted Conductivity for each layer
DEFN 15 ST=RECD,RT=;Con_doi:30F15.5:NULL=-9999999.99999,UNIT=mS/m, Inverted conductivity for each layer, masked to the depth of investigation
DEFN 16 ST=RECD,RT=;RUnc:30F12.3:NULL=-999999.999,Relative uncertainty of conductivity layer;END DEFN
kinverarity1 commented 6 years ago

Remaining things which need to be fixed:

kinverarity1 commented 6 years ago

Get two multidimensional field data - eg list of arrays - from one call to pandas

I am thinking gdf.get_fields_data(["field1", "field2"]) -> tuple of ndarrays

kinverarity1 commented 5 years ago

Done - just regression tests and an additional kwarg on engine.df needed now