You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In making data input file , the warning statement " WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented" always exist. Does it afffect the projection results?
Expected Behavior
The Warning statment is to be fixed.
Current Behavior
D:\mtpywin\mtpy\mtpy\utils\calculator.py:371: RuntimeWarning: invalid value encountered in double_scalars
z_rel_err = error/z_amp
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
Possible Solution
I did not install GDAL software. The pypoj is used to process coordinate projection problems.
Steps to Reproduce (for bugs)
# Paste your code here##importosfrommtpy.modeling.modemimportDatafrommtpy.core.ediimportEdifrommtpy.utils.calculatorimportget_period_listimportnumpyasnp#Creat a data input fileworkdir='D:/Manuscripts/Manuscript2020/ModemInv'ifnotos.path.exists(workdir):
os.mkdir(workdir)
edipath='D:/mtpywin/mtpy/HeiheEDIwithRot12deg'edi_list=[os.path.join(edipath,ff) forffinos.listdir(edipath) if(ff.endswith('.edi'))]
period_list=get_period_list(1.e-4,0.2,10)
do=Data(edi_list=edi_list,
inv_mode='2',
save_path=workdir,
period_list=period_list,
period_buffer=2,
error_type_z=np.array([['floor_egbert','floor_egbert'], ['floor_egbert','floor_egbert']]), # add floor to apply it as an error floorerror_value_z=np.array([[1,4.5], [4.5,1]]), # can supply a 2 x 2 array for each component or a single valuemodel_epsg=4530)
do.write_data_file()
np.savetxt(os.path.join(workdir,'center_position.txt'),
np.array([do.center_point['east'], do.center_point['north']]))
np.savetxt(os.path.join(workdir,'epsg.txt'),[do.model_epsg])
## Context<!---Howhasthisissueaffectedyou? Whatareyoutryingtoaccomplish? --><!---Providingcontexthelpsuscomeupwithasolutionthatismostusefulintherealworld-->## Your Environment<!---Includeasmanyrelevantdetailsabouttheenvironmentyouexperiencedthebugin-->*Operatingsystem: windows10*MtPyversion: Ver. 1.0downloadedin2020*Pythonversion: 3.7.10<!---ifitisdatavisualizationrelated, alsoprovide-->*Matplotlibversion:
*Matplotlibbackend (`print(matplotlib.get_backend())`):
<!---ifitisgraphicaluserinterface (GUI) related-->*QTversion:
**InstalledPythonPackages:**use`pip freeze`or`conda list [-n ENVIRONMENT_NAME]`tolistalltheinstalledlibraries.
The text was updated successfully, but these errors were encountered:
In making data input file , the warning statement " WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented" always exist. Does it afffect the projection results?
Expected Behavior
The Warning statment is to be fixed.
Current Behavior
D:\mtpywin\mtpy\mtpy\utils\calculator.py:371: RuntimeWarning: invalid value encountered in double_scalars
z_rel_err = error/z_amp
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
WARNING:Data: Unable to set relative locations from 'mt_obj' - not yet implemented
Possible Solution
I did not install GDAL software. The pypoj is used to process coordinate projection problems.
Steps to Reproduce (for bugs)
The text was updated successfully, but these errors were encountered: